From a17f731ee4bcad459c184be5a7c3de6c3619443b Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 07 六月 2023 19:47:03 +0800 Subject: [PATCH] 代码整合 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml | 353 ++++++++++++---------------------------------------------- 1 files changed, 76 insertions(+), 277 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml index 01bf33c..38705c9 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml @@ -4,7 +4,7 @@ <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 --> <resultMap type="com.vci.ubcs.code.entity.CodeBasicSec" id="CodeBasicsecMap"> - <result property="oid" column="OID" jdbcType="VARCHAR"/> + <result property="oid" column="OID"/> <result property="revisionOid" column="REVISIONOID" jdbcType="VARCHAR"/> <result property="nameOid" column="NAMEOID" jdbcType="VARCHAR"/> <result property="btmname" column="BTMNAME" jdbcType="VARCHAR"/> @@ -36,7 +36,7 @@ <result property="getValueClass" column="GETVALUECLASS" jdbcType="VARCHAR"/> <result property="codeDateFormatStr" column="CODEDATEFORMATSTR" jdbcType="VARCHAR"/> <result property="codeSecLengthType" column="CODESECLENGTHTYPE" jdbcType="VARCHAR"/> - <result property="codeFillLength" column="CODESECLENGTH" jdbcType="VARCHAR"/> + <result property="codeSecLength" column="CODESECLENGTH" jdbcType="VARCHAR"/> <result property="codeLevelType" column="CODELEVELTYPE" jdbcType="VARCHAR"/> <result property="codeLevelValue" column="CODELEVELVALUE" jdbcType="INTEGER"/> <result property="valueCutLength" column="VALUECUTLENGTH" jdbcType="INTEGER"/> @@ -57,6 +57,7 @@ <result property="customCodeSerialClass" column="CUSTOMCODESERIALCLASS" jdbcType="VARCHAR"/> <result property="matchClassifyValueFlag" column="MATCHCLASSIFYVALUEFLAG" jdbcType="VARCHAR"/> <result property="parentClassifySecOid" column="PARENTCLASSIFYSECOID" jdbcType="VARCHAR"/> + <result property="parentClassifySecText" column="b__name" jdbcType="VARCHAR"/> <result property="nullableFlag" column="NULLABLEFLAG" jdbcType="VARCHAR"/> <result property="componentCodeFlag" column="COMPONENTCODEFLAG" jdbcType="VARCHAR"/> <result property="serialDependFlag" column="SERIALDEPENDFLAG" jdbcType="VARCHAR"/> @@ -66,312 +67,110 @@ <result property="referAttributeId" column="REFERATTRIBUTEID" jdbcType="VARCHAR"/> <result property="referBtmName" column="REFERBTMNAME" jdbcType="VARCHAR"/> <result property="referBtmId" column="REFERBTMID" jdbcType="VARCHAR"/> + <result property="referCodeClassifyOidName" column="c__name" jdbcType="VARCHAR"/> </resultMap> <select id="selectCodeBasicSecPage" resultMap="CodeBasicsecMap"> - select PL_CODE_BASICSEC.oid, - PL_CODE_BASICSEC.revisionoid, - PL_CODE_BASICSEC.nameoid, - PL_CODE_BASICSEC.btmname, - PL_CODE_BASICSEC.lastr, - PL_CODE_BASICSEC.firstr, - PL_CODE_BASICSEC.lastv, - PL_CODE_BASICSEC.firstv, - PL_CODE_BASICSEC.creator, - PL_CODE_BASICSEC.createtime, - PL_CODE_BASICSEC.lastmodifier, - PL_CODE_BASICSEC.lastmodifytime, - PL_CODE_BASICSEC.revisionrule, - PL_CODE_BASICSEC.versionrule, - PL_CODE_BASICSEC.revisionseq, - PL_CODE_BASICSEC.revisionvalue, - PL_CODE_BASICSEC.versionseq, - PL_CODE_BASICSEC.versionvalue, - PL_CODE_BASICSEC.lctid, - PL_CODE_BASICSEC.lcstatus, - PL_CODE_BASICSEC.ts, - PL_CODE_BASICSEC.id, - PL_CODE_BASICSEC.name, - PL_CODE_BASICSEC.description, - PL_CODE_BASICSEC.owner, - PL_CODE_BASICSEC.copyfromversion, - PL_CODE_BASICSEC.codefillseparator, - PL_CODE_BASICSEC.codeseclength, - PL_CODE_BASICSEC.valuecuttype, - PL_CODE_BASICSEC.codefilltype, - PL_CODE_BASICSEC.refervalueinfo, - PL_CODE_BASICSEC.referattributeid, - PL_CODE_BASICSEC.getvalueclass, - PL_CODE_BASICSEC.displayflag, - PL_CODE_BASICSEC.parentclassifysecoid, - PL_CODE_BASICSEC.serialstep, - PL_CODE_BASICSEC.serialdependflag, - PL_CODE_BASICSEC.filtersql, - PL_CODE_BASICSEC.codedateformatstr, - PL_CODE_BASICSEC.refercodeclassifyoid, - PL_CODE_BASICSEC.codeleveltype, - PL_CODE_BASICSEC.codeseclengthtype, - PL_CODE_BASICSEC.referattributename, - PL_CODE_BASICSEC.referbtmname, - PL_CODE_BASICSEC.codefillflag, - PL_CODE_BASICSEC.valuecutlength, - PL_CODE_BASICSEC.codegetvaluetype, - PL_CODE_BASICSEC.referbtmid, - PL_CODE_BASICSEC.codefilltypetext, - PL_CODE_BASICSEC.codelevelvalue, - PL_CODE_BASICSEC.codefilllength, - PL_CODE_BASICSEC.customcodeserialclass, - PL_CODE_BASICSEC.matchclassifyvalueflag, - PL_CODE_BASICSEC.sectype, - PL_CODE_BASICSEC.pkcoderule, - PL_CODE_BASICSEC.ordernum, - PL_CODE_BASICSEC.referconfig, - PL_CODE_BASICSEC.serialstart, - PL_CODE_BASICSEC.componentcodeflag, - PL_CODE_BASICSEC.serialdependorder, - PL_CODE_BASICSEC.nullableflag, - PL_CODE_BASICSEC.codefilllimit, - btm_codebasicsec_1.name as b__name, - platformbtm_codeclassify.name as c__name, - COUNT(*) OVER () "##VCI_COUNT_VCI##" + SELECT PL_CODE_BASICSEC.oid, + PL_CODE_BASICSEC.revisionoid, + PL_CODE_BASICSEC.nameoid, + PL_CODE_BASICSEC.btmname, + PL_CODE_BASICSEC.lastr, + PL_CODE_BASICSEC.firstr, + PL_CODE_BASICSEC.lastv, + PL_CODE_BASICSEC.firstv, + PL_CODE_BASICSEC.creator, + PL_CODE_BASICSEC.createtime, + PL_CODE_BASICSEC.lastmodifier, + PL_CODE_BASICSEC.lastmodifytime, + PL_CODE_BASICSEC.revisionrule, + PL_CODE_BASICSEC.versionrule, + PL_CODE_BASICSEC.revisionseq, + PL_CODE_BASICSEC.revisionvalue, + PL_CODE_BASICSEC.versionseq, + PL_CODE_BASICSEC.versionvalue, + PL_CODE_BASICSEC.lctid, + PL_CODE_BASICSEC.lcstatus, + PL_CODE_BASICSEC.ts, + PL_CODE_BASICSEC.id, + PL_CODE_BASICSEC.name, + PL_CODE_BASICSEC.description, + PL_CODE_BASICSEC.owner, + PL_CODE_BASICSEC.copyfromversion, + PL_CODE_BASICSEC.codefillseparator, + PL_CODE_BASICSEC.codeseclength, + PL_CODE_BASICSEC.valuecuttype, + PL_CODE_BASICSEC.codefilltype, + PL_CODE_BASICSEC.refervalueinfo, + PL_CODE_BASICSEC.referattributeid, + PL_CODE_BASICSEC.getvalueclass, + PL_CODE_BASICSEC.displayflag, + PL_CODE_BASICSEC.parentclassifysecoid, + PL_CODE_BASICSEC.serialstep, + PL_CODE_BASICSEC.serialdependflag, + PL_CODE_BASICSEC.filtersql, + PL_CODE_BASICSEC.codedateformatstr, + PL_CODE_BASICSEC.refercodeclassifyoid, + PL_CODE_BASICSEC.codeleveltype, + PL_CODE_BASICSEC.codeseclengthtype, + PL_CODE_BASICSEC.referattributename, + PL_CODE_BASICSEC.referbtmname, + PL_CODE_BASICSEC.codefillflag, + PL_CODE_BASICSEC.valuecutlength, + PL_CODE_BASICSEC.codegetvaluetype, + PL_CODE_BASICSEC.referbtmid, + PL_CODE_BASICSEC.codefilltypetext, + PL_CODE_BASICSEC.codelevelvalue, + PL_CODE_BASICSEC.codefilllength, + PL_CODE_BASICSEC.customcodeserialclass, + PL_CODE_BASICSEC.matchclassifyvalueflag, + PL_CODE_BASICSEC.sectype, + PL_CODE_BASICSEC.pkcoderule, + PL_CODE_BASICSEC.ordernum, + PL_CODE_BASICSEC.referconfig, + PL_CODE_BASICSEC.serialstart, + PL_CODE_BASICSEC.componentcodeflag, + PL_CODE_BASICSEC.serialdependorder, + PL_CODE_BASICSEC.nullableflag, + PL_CODE_BASICSEC.codefilllimit, + btm_codebasicsec_1.name as b__name, + platformbtm_codeclassify.name as c__name, + COUNT(*) OVER () "##VCI_COUNT_VCI##" from PL_CODE_BASICSEC left join pl_code_basicsec btm_codebasicsec_1 - on btm_codebasicsec_1.oid = PL_CODE_BASICSEC.parentclassifysecoid + on btm_codebasicsec_1.oid = PL_CODE_BASICSEC.parentclassifysecoid left join pl_code_classify platformbtm_codeclassify - on platformbtm_codeclassify.oid = PL_CODE_BASICSEC.refercodeclassifyoid + on platformbtm_codeclassify.oid = PL_CODE_BASICSEC.refercodeclassifyoid <where> <if test="codeBasicSec.oid != null and codeBasicSec.oid != ''"> and PL_CODE_BASICSEC.OID = #{codeBasicSec.oid} - </if> - <if test="codeBasicSec.revisionOid != null and codeBasicSec.revisionOid != ''"> - and PL_CODE_BASICSEC.REVISIONOID = #{codeBasicSec.revisionOid} - </if> - <if test="codeBasicSec.nameOid != null and codeBasicSec.nameOid != ''"> - and PL_CODE_BASICSEC.NAMEOID = #{codeBasicSec.nameOid} - </if> - <if test="codeBasicSec.btmname != null and codeBasicSec.btmname != ''"> - and PL_CODE_BASICSEC.BTMNAME = #{codeBasicSec.btmname} - </if> - <if test="codeBasicSec.lastR != null and codeBasicSec.lastR != ''"> - and PL_CODE_BASICSEC.LASTR = #{codeBasicSec.lastR} - </if> - <if test="codeBasicSec.firstR != null and codeBasicSec.firstR != ''"> - and PL_CODE_BASICSEC.FIRSTR = #{codeBasicSec.firstR} - </if> - <if test="codeBasicSec.lastV != null and codeBasicSec.lastv != ''"> - and PL_CODE_BASICSEC.LASTV = #{codeBasicSec.lastV} - </if> - <if test="codeBasicSec.firstV != null and codeBasicSec.firstV != ''"> - and PL_CODE_BASICSEC.FIRSTV = #{codeBasicSec.firstV} - </if> - <if test="codeBasicSec.creator != null and codeBasicSec.creator != ''"> - and PL_CODE_BASICSEC.CREATOR = #{codeBasicSec.creator} - </if> - <if test="codeBasicSec.createTime != null and codeBasicSec.createTime != ''"> - and PL_CODE_BASICSEC.CREATETIME = #{codeBasicSec.createTime} - </if> - <if test="codeBasicSec.lastModifier != null and codeBasicSec.lastModifier != ''"> - and PL_CODE_BASICSEC.LASTMODIFIER = #{codeBasicSec.lastModifier} - </if> - <if test="codeBasicSec.lastModifyTime != null and codeBasicSec.lastModifyTime != ''"> - and PL_CODE_BASICSEC.LASTMODIFYTIME = #{codeBasicSec.lastModifyTime} - </if> - <if test="codeBasicSec.revisionRule != null and codeBasicSec.revisionRule != ''"> - and PL_CODE_BASICSEC.REVISIONRULE = #{codeBasicSec.revisionRule} - </if> - <if test="codeBasicSec.versionRule != null and codeBasicSec.versionRule != ''"> - and PL_CODE_BASICSEC.VERSIONRULE = #{codeBasicSec.versionRule} - </if> - <if test="codeBasicSec.revisionSeq != null"> - and PL_CODE_BASICSEC.REVISIONSEQ = #{codeBasicSec.revisionSeq} - </if> - <if test="codeBasicSec.revisionValue != null and codeBasicSec.revisionValue != ''"> - and PL_CODE_BASICSEC.REVISIONVALUE = #{codeBasicSec.revisionValue} - </if> - <if test="codeBasicSec.versionSeq != null"> - and PL_CODE_BASICSEC.VERSIONSEQ = #{codeBasicSec.versionSeq} - </if> - <if test="codeBasicSec.versionValue != null and codeBasicSec.versionValue != ''"> - and PL_CODE_BASICSEC.VERSIONVALUE = #{codeBasicSec.versionValue} - </if> - <if test="codeBasicSec.lctid != null and codeBasicSec.lctid != ''"> - and PL_CODE_BASICSEC.LCTID = #{codeBasicSec.lctid} - </if> - <if test="codeBasicSec.lcStatus != null and codeBasicSec.lcStatus != ''"> - and PL_CODE_BASICSEC.LCSTATUS = #{codeBasicSec.lcStatus} </if> <if test="codeBasicSec.ts != null and codeBasicSec.ts != ''"> and PL_CODE_BASICSEC.TS = #{codeBasicSec.ts} </if> <if test="codeBasicSec.id != null and codeBasicSec.id != ''"> - and PL_CODE_BASICSEC.ID = #{codeBasicSec.id} + and PL_CODE_BASICSEC.ID like CONCAT(CONCAT('%', #{codeBasicSec.id}), '%') </if> <if test="codeBasicSec.name != null and codeBasicSec.name != ''"> - and PL_CODE_BASICSEC.NAME = #{codeBasicSec.name} + and PL_CODE_BASICSEC.NAME like CONCAT(CONCAT('%', #{codeBasicSec.name}), '%') </if> <if test="codeBasicSec.description != null and codeBasicSec.description != ''"> - and PL_CODE_BASICSEC.DESCRIPTION = #{codeBasicSec.description} - </if> - <if test="codeBasicSec.owner != null and codeBasicSec.owner != ''"> - and PL_CODE_BASICSEC.OWNER = #{codeBasicSec.owner} - </if> - <if test="codeBasicSec.copyFromVersion != null and codeBasicSec.copyFromVersion != ''"> - and PL_CODE_BASICSEC.COPYFROMVERSION = #{codeBasicSec.copyFromVersion} + and PL_CODE_BASICSEC.DESCRIPTION like CONCAT(CONCAT('%', #{codeBasicSec.description}), '%') </if> <if test="codeBasicSec.secType != null and codeBasicSec.sectype != ''"> - and PL_CODE_BASICSEC.SECTYPE = #{codeBasicSec.sectype} + and PL_CODE_BASICSEC.SECTYPE = #{codeBasicSec.secType} </if> <if test="codeBasicSec.pkCodeRule != null and codeBasicSec.pkCodeRule != ''"> and PL_CODE_BASICSEC.PKCODERULE = #{codeBasicSec.pkCodeRule} - </if> - <if test="codeBasicSec.orderNum != null"> - and PL_CODE_BASICSEC.ORDERNUM = #{codeBasicSec.orderNum} - </if> - <if test="codeBasicSec.getValueClass != null and codeBasicSec.getValueClass != ''"> - and PL_CODE_BASICSEC.GETVALUECLASS = #{codeBasicSec.getValueClass} - </if> - <if test="codeBasicSec.codeDateFormatStr != null and codeBasicSec.codeDateFormatStr != ''"> - and PL_CODE_BASICSEC.CODEDATEFORMATSTR = #{codeBasicSec.codeDateFormatStr} - </if> - <if test="codeBasicSec.codeSecLengthType != null and codeBasicSec.codeSecLengthType != ''"> - and PL_CODE_BASICSEC.CODESECLENGTHTYPE = #{codeBasicSec.codeSecLengthType} - </if> - <if test="codeBasicSec.codeSecLength != null and codeBasicSec.codeSecLength != ''"> - and PL_CODE_BASICSEC.CODESECLENGTH = #{codeBasicSec.codeSecLength} - </if> - <if test="codeBasicSec.codeLevelType != null and codeBasicSec.codeLevelType != ''"> - and PL_CODE_BASICSEC.CODELEVELTYPE = #{codeBasicSec.codeLevelType} - </if> - <if test="codeBasicSec.codeLevelValue != null"> - and PL_CODE_BASICSEC.CODELEVELVALUE = #{codeBasicSec.codeLevelValue} - </if> - <if test="codeBasicSec.valueCutLength != null"> - and PL_CODE_BASICSEC.VALUECUTLENGTH = #{codeBasicSec.valueCutLength} - </if> - <if test="codeBasicSec.valueCutType != null and codeBasicSec.valueCutType != ''"> - and PL_CODE_BASICSEC.VALUECUTTYPE = #{codeBasicSec.valueCutType} - </if> - <if test="codeBasicSec.codeGetValueType != null and codeBasicSec.codeGetValueType != ''"> - and PL_CODE_BASICSEC.CODEGETVALUETYPE = #{codeBasicSec.codeGetValueType} - </if> - <if test="codeBasicSec.referCodeClassifyOid != null and codeBasicSec.referCodeClassifyOid != ''"> - and PL_CODE_BASICSEC.REFERCODECLASSIFYOID = #{codeBasicSec.referCodeClassifyOid} - </if> - <if test="codeBasicSec.referConfig != null and codeBasicSec.referConfig != ''"> - and PL_CODE_BASICSEC.REFERCONFIG = #{codeBasicSec.referConfig} - </if> - <if test="codeBasicSec.referValueInfo != null and codeBasicSec.referValueInfo != ''"> - and PL_CODE_BASICSEC.REFERVALUEINFO = #{codeBasicSec.referValueInfo} - </if> - <if test="codeBasicSec.filterSql != null and codeBasicSec.filterSql != ''"> - and PL_CODE_BASICSEC.FILTERSQL = #{codeBasicSec.filterSql} - </if> - <if test="codeBasicSec.serialStart != null and scodeBasicSec.serialStart != ''"> - and PL_CODE_BASICSEC.SERIALSTART = #{codeBasicSec.serialStart} - </if> - <if test="codeBasicSec.serialStep != null"> - and PL_CODE_BASICSEC.SERIALSTEP = #{codeBasicSec.serialStep} - </if> - <if test="codeBasicSec.codeFillType != null and codeBasicSec.codeFillType != ''"> - and PL_CODE_BASICSEC.CODEFILLTYPE = #{codeBasicSec.codeFillType} - </if> - <if test="codeBasicSec.codeFillTypeText != null and codeBasicSec.codeFillTypeText != ''"> - and PL_CODE_BASICSEC.CODEFILLTYPETEXT = #{codeBasicSec.codeFillTypeText} - </if> - <if test="codeBasicSec.codeFillSeparator != null and codeBasicSec.codeFillSeparator != ''"> - and PL_CODE_BASICSEC.CODEFILLSEPARATOR = #{codeBasicSec.codeFillSeparator} - </if> - <if test="codeBasicSec.codeFillLength != null and codeBasicSec.codeFillLength != ''"> - and PL_CODE_BASICSEC.CODEFILLLENGTH = #{codeBasicSec.codeFillLength} - </if> - <if test="codeBasicSec.codeFillLimit != null"> - and PL_CODE_BASICSEC.CODEFILLLIMIT = #{codeBasicSec.codeFillLimit} - </if> - <if test="codeBasicSec.codeFillFlag != null and codeBasicSec.codeFillFlag != ''"> - and PL_CODE_BASICSEC.CODEFILLFLAG = #{codeBasicSec.codeFillFlag} - </if> - <if test="codeBasicSec.customCodeSerialClass != null and codeBasicSec.customCodeSerialClass != ''"> - and PL_CODE_BASICSEC.CUSTOMCODESERIALCLASS = #{codeBasicSec.customCodeSerialClass} - </if> - <if test="codeBasicSec.matchClassifyValueFlag != null and codeBasicSec.matchClassifyValueFlag != ''"> - and PL_CODE_BASICSEC.MATCHCLASSIFYVALUEFLAG = #{codeBasicSec.matchClassifyValueFlag} - </if> - <if test="codeBasicSec.parentClassifySecOid != null and codeBasicSec.parentClassifySecOid != ''"> - and PL_CODE_BASICSEC.PARENTCLASSIFYSECOID = #{codeBasicSec.parentClassifySecOid} - </if> - <if test="codeBasicSec.nullableFlag != null and codeBasicSec.nullableFlag != ''"> - and PL_CODE_BASICSEC.NULLABLEFLAG = #{codeBasicSec.nullableFlag} - </if> - <if test="codeBasicSec.componentCodeFlag != null and codeBasicSec.componentCodeFlag != ''"> - and PL_CODE_BASICSEC.COMPONENTCODEFLAG = #{codeBasicSec.componentCodeFlag} - </if> - <if test="codeBasicSec.serialDependFlag != null and codeBasicSec.serialDependFlag != ''"> - and PL_CODE_BASICSEC.SERIALDEPENDFLAG = #{codeBasicSec.serialDependFlag} - </if> - <if test="codeBasicSec.displayFlag != null and codeBasicSec.displayFlag != ''"> - and PL_CODE_BASICSEC.DISPLAYFLAG = #{codeBasicSec.displayFlag} - </if> - <if test="codeBasicSec.serialDependOrder != null"> - and PL_CODE_BASICSEC.SERIALDEPENDORDER = #{codeBasicSec.serialDependOrder} - </if> - <if test="codeBasicSec.referAttributeName != null and codeBasicSec.referAttributeName != ''"> - and PL_CODE_BASICSEC.REFERATTRIBUTENAME = #{codeBasicSec.referAttributeName} - </if> - <if test="codeBasicSec.referAttributeId != null and codeBasicSec.referAttributeId != ''"> - and PL_CODE_BASICSEC.REFERATTRIBUTEID = #{codeBasicSec.referAttributeId} - </if> - <if test="codeBasicSec.referBtmName != null and codeBasicSec.referBtmName != ''"> - and PL_CODE_BASICSEC.REFERBTMNAME = #{codeBasicSec.referBtmName} - </if> - <if test="codeBasicSec.referBtmId != null and codeBasicSec.referBtmId != ''"> - and PL_CODE_BASICSEC.REFERBTMID = #{codeBasicSec.referBtmId} </if> </where> </select> - <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> - insert into PL_CODE_BASICSEC(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, - LASTMODIFIER, LASTMODIFYTIME, REVISIONRULE, VERSIONRULE, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, - LCTID, LCSTATUS, TS, ID, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, SECTYPE, PKCODERULE, ORDERNUM, - GETVALUECLASS, CODEDATEFORMATSTR, CODESECLENGTHTYPE, CODESECLENGTH, CODELEVELTYPE, CODELEVELVALUE, - VALUECUTLENGTH, VALUECUTTYPE, CODEGETVALUETYPE, REFERCODECLASSIFYOID, REFERCONFIG, REFERVALUEINFO, FILTERSQL, - SERIALSTART, SERIALSTEP, CODEFILLTYPE, CODEFILLTYPETEXT, CODEFILLSEPARATOR, CODEFILLLENGTH, CODEFILLLIMIT, - CODEFILLFLAG, CUSTOMCODESERIALCLASS, MATCHCLASSIFYVALUEFLAG, PARENTCLASSIFYSECOID, NULLABLEFLAG, - COMPONENTCODEFLAG, SERIALDEPENDFLAG, DISPLAYFLAG, SERIALDEPENDORDER, REFERATTRIBUTENAME, REFERATTRIBUTEID, - REFERBTMNAME, REFERBTMID) - <foreach collection="entities" item="entity" separator="union all" index="index"> - select #{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, - #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.lastmodifier}, - #{entity.lastmodifytime}, #{entity.revisionrule}, #{entity.versionrule}, #{entity.revisionseq}, - #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, - #{entity.ts}, #{entity.id}, #{entity.name}, #{entity.description}, #{entity.owner}, - #{entity.copyfromversion}, #{entity.sectype}, #{entity.pkcoderule}, #{entity.ordernum}, - #{entity.getvalueclass}, #{entity.codedateformatstr}, #{entity.codeseclengthtype}, #{entity.codeseclength}, - #{entity.codeleveltype}, #{entity.codelevelvalue}, #{entity.valuecutlength}, #{entity.valuecuttype}, - #{entity.codegetvaluetype}, #{entity.refercodeclassifyoid}, #{entity.referconfig}, #{entity.refervalueinfo}, - #{entity.filtersql}, #{entity.serialstart}, #{entity.serialstep}, #{entity.codefilltype}, - #{entity.codefilltypetext}, #{entity.codefillseparator}, #{entity.codefilllength}, #{entity.codefilllimit}, - #{entity.codefillflag}, #{entity.customcodeserialclass}, #{entity.matchclassifyvalueflag}, - #{entity.parentclassifysecoid}, #{entity.nullableflag}, #{entity.componentcodeflag}, - #{entity.serialdependflag}, #{entity.displayflag}, #{entity.serialdependorder}, - #{entity.referattributename}, #{entity.referattributeid}, #{entity.referbtmname}, #{entity.referbtmid} - from dual - </foreach> - </insert> - - - <select id="countByCondition" resultType="java.lang.Long"> - - - </select> - - <select id="getOidByCodeclassifysecOid" resultType="java.lang.String"> SELECT OID - FROM PLATFORMBTM_CODEBASICSEC START WITH OID = #{codeClassifySecOid} + FROM PL_CODE_BASICSEC START WITH OID = #{codeClassifySecOid} CONNECT BY PRIOR PARENTCLASSIFYSECOID = OID </select> - </mapper> -- Gitblit v1.9.3