ludc
2023-04-26 7f0570d20aac189f1b170942bd7100b281a1c824
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vci.ubcs.code.mapper.CodeClstempattrMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="CodeClstempattrResultMap" type="com.vci.ubcs.code.entity.CodeClstempattrEntity">
        <result column="OID" property="oid"/>
        <result column="REVISIONOID" property="revisionOid"/>
        <result column="NAMEOID" property="nameOid"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="LASTR" property="lastR"/>
        <result column="FIRSTR" property="firstR"/>
        <result column="LASTV" property="lastV"/>
        <result column="FIRSTV" property="firstV"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createTime"/>
        <result column="LASTMODIFIER" property="lastModifier"/>
        <result column="LASTMODIFYTIME" property="lastModifyTime"/>
        <result column="REVISIONRULE" property="revisionRule"/>
        <result column="VERSIONRULE" property="versionRule"/>
        <result column="REVISIONSEQ" property="revisionSeq"/>
        <result column="REVISIONVALUE" property="revisionValue"/>
        <result column="VERSIONSEQ" property="versionSeq"/>
        <result column="VERSIONVALUE" property="versionValue"/>
        <result column="LCTID" property="lctid"/>
        <result column="LCSTATUS" property="lcStatus"/>
        <result column="TS" property="ts"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="OWNER" property="owner"/>
        <result column="COPYFROMVERSION" property="copyFromVersion"/>
        <result column="CLASSIFYTEMPLATEOID" property="classifytemplateoid"/>
        <result column="ATTRIBUTEDATATYPE" property="attributedatatype"/>
        <result column="KEYATTRFLAG" property="keyattrflag"/>
        <result column="QUERYATTRFLAG" property="queryattrflag"/>
        <result column="SENIORQUERYATTRFLAG" property="seniorqueryattrflag"/>
        <result column="SAMEREPEATATTRFLAG" property="samerepeatattrflag"/>
        <result column="SORTATTRFLAG" property="sortattrflag"/>
        <result column="QRCODEFLAG" property="qrcodeflag"/>
        <result column="BARCODEFLAG" property="barcodeflag"/>
        <result column="COMPONENTRULE" property="componentrule"/>
        <result column="VERIFYRULE" property="verifyrule"/>
        <result column="CLASSIFYINVOKELEVEL" property="classifyinvokelevel"/>
        <result column="CLASSIFYINVOKEATTR" property="classifyinvokeattr"/>
        <result column="CLASSIFYINVOKEATTRNAME" property="classifyinvokeattrname"/>
        <result column="CLASSIFYINVOKEEDITFLAG" property="classifyinvokeeditflag"/>
        <result column="ORDERNUM" property="ordernum"/>
        <result column="FORMDISPLAYFLAG" property="formdisplayflag"/>
        <result column="TABLEDISPLAYFLAG" property="tabledisplayflag"/>
        <result column="ATTRIBUTEGROUP" property="attributegroup"/>
        <result column="ENUMID" property="enumid"/>
        <result column="ENUMNAME" property="enumname"/>
        <result column="ENUMEDITFLAG" property="enumeditflag"/>
        <result column="REFERBTMID" property="referbtmid"/>
        <result column="REFERBTMNAME" property="referbtmname"/>
        <result column="REFERCONFIG" property="referconfig"/>
        <result column="REQUIREFLAG" property="requireflag"/>
        <result column="READONLYFLAG" property="readonlyflag"/>
        <result column="CONTROLLENGTH" property="controllength"/>
        <result column="FORMDISPLAYSTYLE" property="formdisplaystyle"/>
        <result column="TABLEDISPLAYSTYLE" property="tabledisplaystyle"/>
        <result column="FORMHREF" property="formhref"/>
        <result column="TABLEHREF" property="tablehref"/>
        <result column="PRECISIONLENGTH" property="precisionlength"/>
        <result column="SCALELENGTH" property="scalelength"/>
        <result column="VALUEAREA" property="valuearea"/>
        <result column="CODEDATEFORMAT" property="codedateformat"/>
        <result column="TABLEDISPLAYJS" property="tabledisplayjs"/>
        <result column="TEXTAREAFLAG" property="textareaflag"/>
        <result column="IMAGEFLAG" property="imageflag"/>
        <result column="DEFAULTVALUE" property="defaultvalue"/>
        <result column="PREFIXVALUE" property="prefixvalue"/>
        <result column="SUFFIXVALUE" property="suffixvalue"/>
        <result column="FILTERSOURCEATTR" property="filtersourceattr"/>
        <result column="FILTERSOURCEATTRNAME" property="filtersourceattrname"/>
        <result column="ENUMSTRING" property="enumstring"/>
        <result column="ATTRTABLEWIDTH" property="attrtablewidth"/>
        <result column="EXPLAIN" property="explain"/>
        <result column="LIBRARYIDENTIFICATION" property="libraryidentification"/>
        <result column="PARENTCODE" property="parentcode"/>
        <result column="PARENTNAME" property="parentname"/>
        <result column="PARENTQUERYATTR" property="parentqueryattr"/>
    </resultMap>
 
 
    <select id="selectCodeClstempattrPage" resultMap="CodeClstempattrResultMap">
        select * from PL_CODE_CLSTEMPATTR where is_deleted = 0
    </select>
 
    <select id="selectByClassifytemplateoid" resultMap="CodeClstempattrResultMap">
        select * from PL_CODE_CLSTEMPATTR where classifytemplateoid in (${classifytemplateoid})
    </select>
 
    <select id="selectRefByOid" resultType="com.vci.ubcs.code.entity.CodeClstempattrEntity">
        select codeclstempattr0.EXPLAIN                as explain,
               codeclstempattr0.SAMEREPEATATTRFLAG     as samerepeatattrflag,
               codeclstempattr0.LASTMODIFIER           as lastmodifier,
               codeclstempattr0.ATTRTABLEWIDTH         as attrtablewidth,
               codeclstempattr0.CONTROLLENGTH          as controllength,
               codeclstempattr0.CLASSIFYTEMPLATEOID    as classifytemplateoid,
               codeclstempattr0.VERIFYRULE             as verifyrule,
               codeclstempattr0.ENUMNAME               as enumname,
               codeclstempattr0.TABLEDISPLAYFLAG       as tabledisplayflag,
               codeclstempattr0.PARENTQUERYATTR        as parentqueryattr,
               codeclstempattr0.ID                     as id,
               codeclstempattr0.FILTERSOURCEATTRNAME   as filtersourceattrname,
               codeclstempattr0.VALUEAREA              as valuearea,
               codeclstempattr0.TABLEDISPLAYSTYLE      as tabledisplaystyle,
               codeclstempattr0.TABLEDISPLAYJS         as tabledisplayjs,
               codeclstempattr0.FORMDISPLAYFLAG        as formdisplayflag,
               codeclstempattr0.DEFAULTVALUE           as defaultvalue,
               codeclstempattr0.FORMHREF               as formhref,
               codeclstempattr0.BTMNAME                as btmname,
               codeclstempattr0.READONLYFLAG           as readonlyflag,
               codeclstempattr0.NAME                   as name,
               codeclstempattr0.COMPONENTRULE          as componentrule,
               codeclstempattr0.SORTATTRFLAG           as sortattrflag,
               codeclstempattr0.REFERBTMNAME           as referbtmname,
               codeclstempattr0.ENUMID                 as enumid,
               codeclstempattr0.FORMDISPLAYSTYLE       as formdisplaystyle,
               codeclstempattr0.SCALELENGTH            as scalelength,
               codeclstempattr0.PARENTNAME             as parentname,
               codeclstempattr0.PRECISIONLENGTH        as precisionlength,
               codeclstempattr0.PREFIXVALUE            as prefixvalue,
               codeclstempattr0.FILTERSOURCEATTR       as filtersourceattr,
               codeclstempattr0.TEXTAREAFLAG           as textareaflag,
               codeclstempattr0.BARCODEFLAG            as barcodeflag,
               codeclstempattr0.DESCRIPTION            as description,
               codeclstempattr0.KEYATTRFLAG            as keyattrflag,
               codeclstempattr0.QRCODEFLAG             as qrcodeflag,
               codeclstempattr0.OID                    as oid,
               codeclstempattr0.CLASSIFYINVOKELEVEL    as classifyinvokelevel,
               codeclstempattr0.CLASSIFYINVOKEATTRNAME as classifyinvokeattrname,
               codeclstempattr0.CLASSIFYINVOKEATTR     as classifyinvokeattr,
               codeclstempattr0.REFERBTMID             as referbtmid,
               codeclstempattr0.CLASSIFYINVOKEEDITFLAG as classifyinvokeeditflag,
               codeclstempattr0.CODEDATEFORMAT         as codedateformat,
               codeclstempattr0.SENIORQUERYATTRFLAG    as seniorqueryattrflag,
               codeclstempattr0.OWNER                  as owner,
               codeclstempattr0.ATTRIBUTEDATATYPE      as attributedatatype,
               codeclstempattr0.CREATOR                as creator,
               codeclstempattr0.CREATETIME             as createtime,
               codeclstempattr0.ENUMEDITFLAG           as enumeditflag,
               codeclstempattr0.ATTRIBUTEGROUP         as attributegroup,
               codeclstempattr0.PARENTCODE             as parentcode,
               codeclstempattr0.SUFFIXVALUE            as suffixvalue,
               codeclstempattr0.ORDERNUM               as ordernum,
               codeclstempattr0.REFERCONFIG            as referconfig,
               codeclstempattr0.REQUIREFLAG            as requireflag,
               codeclstempattr0.LIBRARYIDENTIFICATION  as libraryidentification,
               codeclstempattr0.ENUMSTRING             as enumstring,
               codeclstempattr0.IMAGEFLAG              as imageflag,
               codeclstempattr0.LASTMODIFYTIME         as lastmodifytime,
               codeclstempattr0.TABLEHREF              as tablehref,
               codeclstempattr0.QUERYATTRFLAG          as queryattrflag,
               codeclstempattr0.TS                     as ts,
               classifytemplateoid.name                as classifyTemplateOidName
        from platformbtm_codeclstempattr codeclstempattr0
                 left join platformbtm_codeclstemplate classifytemplateoid
                           on codeclstempattr0.classifyTemplateOid = classifytemplateoid.oid
        where codeclstempattr0.classifytemplateoid = #{oid}
    </select>
 
 
</mapper>