From 7f0570d20aac189f1b170942bd7100b281a1c824 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 26 四月 2023 00:07:37 +0800
Subject: [PATCH] 代码整合,新增codefixedcontroller

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeBasicSecMapper.xml |  180 ++---------------------------------------------------------
 1 files changed, 7 insertions(+), 173 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..9ee8a57 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
@@ -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"/>
@@ -66,6 +66,7 @@
         <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">
@@ -143,188 +144,24 @@
             <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>
 
@@ -360,18 +197,15 @@
         </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}
         CONNECT BY PRIOR PARENTCLASSIFYSECOID = OID
     </select>
-
 
 </mapper>

--
Gitblit v1.9.3