ludc
2024-01-28 9660ff90d9a58fb675c821d9ed31b627a59d4b76
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
<?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.CodeClassifyTemplateAttrMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="CodeClstempattrResultMap" type="com.vci.ubcs.code.entity.CodeClassifyTemplateAttr">
        <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="qrcodeFlag"/>
        <result column="SENIORQUERYATTRFLAG" property="seniorQueryAttrFlag"/>
        <result column="SYSONYMRULEOIDS" property="sysonymRuleOids"/>
        <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="versionValue"/>
        <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 1=1
    </select>
 
    <select id="selectByClassifytemplateoid" resultMap="CodeClstempattrResultMap">
        select * from PL_CODE_CLSTEMPATTR where classifytemplateoid in (${classifytemplateoid})
    </select>
 
    <select id="selectRefByOid" resultMap="CodeClstempattrResultMap">
        select  codeclstempattr0.OID                    as oid
        from PL_CODE_CLSTEMPATTR codeclstempattr0
                 left join PL_CODE_CLSTEMPLATE classifytemplateoid
                           on codeclstempattr0.classifyTemplateOid = classifytemplateoid.oid
        where codeclstempattr0.classifytemplateoid = #{oid}
    </select>
 
    <select id="selectByClassifytemplateoidRel" resultMap="CodeClstempattrResultMap">
        select PCC.*, PLT.NAME classifyTemplateOidName
        from PL_CODE_CLSTEMPATTR PCC, PL_CODE_CLSTEMPLATE PLT
        where PCC.CLASSIFYTEMPLATEOID = PLT.OID
          AND PCC.classifytemplateoid IN (${oid})
        ORDER BY PCC.ORDERNUM ASC
    </select>
 
</mapper>