From e9b405657b6117a8dcfcf8505cfd5d6eccd39cc8 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 30 五月 2023 18:32:57 +0800
Subject: [PATCH] code服务中部分do转vo时显示值转换改为缓存中拿值

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeShowFieldConfigMapper.xml |  384 ------------------------------------------------------
 1 files changed, 4 insertions(+), 380 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeShowFieldConfigMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeShowFieldConfigMapper.xml
index 6afa54d..cbb3e04 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeShowFieldConfigMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeShowFieldConfigMapper.xml
@@ -3,395 +3,19 @@
 <mapper namespace="com.vci.ubcs.code.mapper.CodeShowFieldConfigMapper">
 
     <resultMap type="com.vci.ubcs.code.entity.CodeShowFieldConfig" id="PlCodeShowfieldconfigMap">
-        <result property="oid" column="OID" jdbcType="VARCHAR"/>
-        <result property="revisionOid" column="REVISIONOID" jdbcType="VARCHAR"/>
-        <result property="nameOid" column="NAMEOID" jdbcType="VARCHAR"/>
-        <result property="btmname" column="BTMNAME" jdbcType="VARCHAR"/>
-        <result property="lastR" column="LASTR" jdbcType="VARCHAR"/>
-        <result property="firstR" column="FIRSTR" jdbcType="VARCHAR"/>
-        <result property="lastV" column="LASTV" jdbcType="VARCHAR"/>
-        <result property="firstV" column="FIRSTV" jdbcType="VARCHAR"/>
-        <result property="creator" column="CREATOR" jdbcType="VARCHAR"/>
-        <result property="createTime" column="CREATETIME" jdbcType="VARCHAR"/>
-        <result property="revisionSeq" column="REVISIONSEQ" jdbcType="INTEGER"/>
-        <result property="revisionValue" column="REVISIONVALUE" jdbcType="VARCHAR"/>
-        <result property="versionSeq" column="VERSIONSEQ" jdbcType="INTEGER"/>
-        <result property="versionValue" column="VERSIONVALUE" jdbcType="VARCHAR"/>
-        <result property="lctid" column="LCTID" jdbcType="VARCHAR"/>
-        <result property="lcStatus" column="LCSTATUS" jdbcType="VARCHAR"/>
-        <result property="ts" column="TS" jdbcType="VARCHAR"/>
-        <result property="name" column="NAME" jdbcType="VARCHAR"/>
-        <result property="description" column="DESCRIPTION" jdbcType="VARCHAR"/>
-        <result property="owner" column="OWNER" jdbcType="VARCHAR"/>
-        <result property="copyFromVersion" column="COPYFROMVERSION" jdbcType="VARCHAR"/>
+        <id column="OID" property="oid"/>
         <result property="orderNum" column="ORDERNUM" jdbcType="INTEGER"/>
         <result property="field" column="FIELD" jdbcType="VARCHAR"/>
         <result property="title" column="TITLE" jdbcType="VARCHAR"/>
         <result property="fieldType" column="FIELDTYPE" jdbcType="VARCHAR"/>
         <result property="sort" column="SORT" jdbcType="VARCHAR"/>
-        <result property="sortField" column="SORTFIELD" jdbcType="VARCHAR"/>
+        <result property="attrSortField" column="ATTRSORTFIELD" jdbcType="VARCHAR"/>
         <result property="width" column="WIDTH" jdbcType="INTEGER"/>
-        <result property="fixedText" column="FIXEDTEXT" jdbcType="VARCHAR"/>
+        <result property="fixedPosition" column="FIXEDPOSITION" jdbcType="VARCHAR"/>
         <result property="templet" column="TEMPLET" jdbcType="VARCHAR"/>
+        <result property="isQuery" column="ISQUERY" jdbcType="VARCHAR"/>
     </resultMap>
 
-    <!--鏌ヨ鍗曚釜-->
-    <select id="queryById" resultMap="PlCodeShowfieldconfigMap">
-        select
-          OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET
-        from PL_CODE_SHOWFIELDCONFIG
-        where OID = #{oid}
-    </select>
-
-    <!--鏌ヨ鎸囧畾琛屾暟鎹�-->
-    <select id="queryAllByLimit" resultMap="PlCodeShowfieldconfigMap">
-        select
-          OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET
-        from PL_CODE_SHOWFIELDCONFIG
-        <where>
-            <if test="oid != null and oid != ''">
-                and OID = #{oid}
-            </if>
-            <if test="revisionoid != null and revisionoid != ''">
-                and REVISIONOID = #{revisionoid}
-            </if>
-            <if test="nameoid != null and nameoid != ''">
-                and NAMEOID = #{nameoid}
-            </if>
-            <if test="btmname != null and btmname != ''">
-                and BTMNAME = #{btmname}
-            </if>
-            <if test="lastr != null and lastr != ''">
-                and LASTR = #{lastr}
-            </if>
-            <if test="firstr != null and firstr != ''">
-                and FIRSTR = #{firstr}
-            </if>
-            <if test="lastv != null and lastv != ''">
-                and LASTV = #{lastv}
-            </if>
-            <if test="firstv != null and firstv != ''">
-                and FIRSTV = #{firstv}
-            </if>
-            <if test="creator != null and creator != ''">
-                and CREATOR = #{creator}
-            </if>
-            <if test="createtime != null and createtime != ''">
-                and CREATETIME = #{createtime}
-            </if>
-            <if test="revisionseq != null">
-                and REVISIONSEQ = #{revisionseq}
-            </if>
-            <if test="revisionvalue != null and revisionvalue != ''">
-                and REVISIONVALUE = #{revisionvalue}
-            </if>
-            <if test="versionseq != null">
-                and VERSIONSEQ = #{versionseq}
-            </if>
-            <if test="versionvalue != null and versionvalue != ''">
-                and VERSIONVALUE = #{versionvalue}
-            </if>
-            <if test="lctid != null and lctid != ''">
-                and LCTID = #{lctid}
-            </if>
-            <if test="lcstatus != null and lcstatus != ''">
-                and LCSTATUS = #{lcstatus}
-            </if>
-            <if test="ts != null and ts != ''">
-                and TS = #{ts}
-            </if>
-            <if test="name != null and name != ''">
-                and NAME = #{name}
-            </if>
-            <if test="description != null and description != ''">
-                and DESCRIPTION = #{description}
-            </if>
-            <if test="owner != null and owner != ''">
-                and OWNER = #{owner}
-            </if>
-            <if test="copyfromversion != null and copyfromversion != ''">
-                and COPYFROMVERSION = #{copyfromversion}
-            </if>
-            <if test="ordernum != null">
-                and ORDERNUM = #{ordernum}
-            </if>
-            <if test="field != null and field != ''">
-                and FIELD = #{field}
-            </if>
-            <if test="title != null and title != ''">
-                and TITLE = #{title}
-            </if>
-            <if test="fieldtype != null and fieldtype != ''">
-                and FIELDTYPE = #{fieldtype}
-            </if>
-            <if test="sort != null and sort != ''">
-                and SORT = #{sort}
-            </if>
-            <if test="sortfield != null and sortfield != ''">
-                and SORTFIELD = #{sortfield}
-            </if>
-            <if test="width != null">
-                and WIDTH = #{width}
-            </if>
-            <if test="fixedtext != null and fixedtext != ''">
-                and FIXEDTEXT = #{fixedtext}
-            </if>
-            <if test="templet != null and templet != ''">
-                and TEMPLET = #{templet}
-            </if>
-        </where>
-        limit #{pageable.offset}, #{pageable.pageSize}
-    </select>
-
-    <!--缁熻鎬昏鏁�-->
-    <select id="count" resultType="java.lang.Long">
-        select count(1)
-        from PL_CODE_SHOWFIELDCONFIG
-        <where>
-            <if test="oid != null and oid != ''">
-                and OID = #{oid}
-            </if>
-            <if test="revisionoid != null and revisionoid != ''">
-                and REVISIONOID = #{revisionoid}
-            </if>
-            <if test="nameoid != null and nameoid != ''">
-                and NAMEOID = #{nameoid}
-            </if>
-            <if test="btmname != null and btmname != ''">
-                and BTMNAME = #{btmname}
-            </if>
-            <if test="lastr != null and lastr != ''">
-                and LASTR = #{lastr}
-            </if>
-            <if test="firstr != null and firstr != ''">
-                and FIRSTR = #{firstr}
-            </if>
-            <if test="lastv != null and lastv != ''">
-                and LASTV = #{lastv}
-            </if>
-            <if test="firstv != null and firstv != ''">
-                and FIRSTV = #{firstv}
-            </if>
-            <if test="creator != null and creator != ''">
-                and CREATOR = #{creator}
-            </if>
-            <if test="createtime != null and createtime != ''">
-                and CREATETIME = #{createtime}
-            </if>
-            <if test="revisionseq != null">
-                and REVISIONSEQ = #{revisionseq}
-            </if>
-            <if test="revisionvalue != null and revisionvalue != ''">
-                and REVISIONVALUE = #{revisionvalue}
-            </if>
-            <if test="versionseq != null">
-                and VERSIONSEQ = #{versionseq}
-            </if>
-            <if test="versionvalue != null and versionvalue != ''">
-                and VERSIONVALUE = #{versionvalue}
-            </if>
-            <if test="lctid != null and lctid != ''">
-                and LCTID = #{lctid}
-            </if>
-            <if test="lcstatus != null and lcstatus != ''">
-                and LCSTATUS = #{lcstatus}
-            </if>
-            <if test="ts != null and ts != ''">
-                and TS = #{ts}
-            </if>
-            <if test="name != null and name != ''">
-                and NAME = #{name}
-            </if>
-            <if test="description != null and description != ''">
-                and DESCRIPTION = #{description}
-            </if>
-            <if test="owner != null and owner != ''">
-                and OWNER = #{owner}
-            </if>
-            <if test="copyfromversion != null and copyfromversion != ''">
-                and COPYFROMVERSION = #{copyfromversion}
-            </if>
-            <if test="ordernum != null">
-                and ORDERNUM = #{ordernum}
-            </if>
-            <if test="field != null and field != ''">
-                and FIELD = #{field}
-            </if>
-            <if test="title != null and title != ''">
-                and TITLE = #{title}
-            </if>
-            <if test="fieldtype != null and fieldtype != ''">
-                and FIELDTYPE = #{fieldtype}
-            </if>
-            <if test="sort != null and sort != ''">
-                and SORT = #{sort}
-            </if>
-            <if test="sortfield != null and sortfield != ''">
-                and SORTFIELD = #{sortfield}
-            </if>
-            <if test="width != null">
-                and WIDTH = #{width}
-            </if>
-            <if test="fixedtext != null and fixedtext != ''">
-                and FIXEDTEXT = #{fixedtext}
-            </if>
-            <if test="templet != null and templet != ''">
-                and TEMPLET = #{templet}
-            </if>
-        </where>
-    </select>
-
-    <!--鏂板鎵�鏈夊垪-->
-    <insert id="insert" keyProperty="oid" useGeneratedKeys="true">
-        insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET)
-        values (#{revisionoid}, #{nameoid}, #{btmname}, #{lastr}, #{firstr}, #{lastv}, #{firstv}, #{creator}, #{createtime}, #{revisionseq}, #{revisionvalue}, #{versionseq}, #{versionvalue}, #{lctid}, #{lcstatus}, #{ts}, #{name}, #{description}, #{owner}, #{copyfromversion}, #{ordernum}, #{field}, #{title}, #{fieldtype}, #{sort}, #{sortfield}, #{width}, #{fixedtext}, #{templet})
-    </insert>
-
-    <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true">
-        insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET)
-        values
-        <foreach collection="entities" item="entity" separator=",">
-        (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.field}, #{entity.title}, #{entity.fieldtype}, #{entity.sort}, #{entity.sortfield}, #{entity.width}, #{entity.fixedtext}, #{entity.templet})
-        </foreach>
-    </insert>
-
-    <insert id="insertOrUpdateBatch" keyProperty="oid" useGeneratedKeys="true">
-        insert into PL_CODE_SHOWFIELDCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, FIELD, TITLE, FIELDTYPE, SORT, SORTFIELD, WIDTH, FIXEDTEXT, TEMPLET)
-        values
-        <foreach collection="entities" item="entity" separator=",">
-            (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.field}, #{entity.title}, #{entity.fieldtype}, #{entity.sort}, #{entity.sortfield}, #{entity.width}, #{entity.fixedtext}, #{entity.templet})
-        </foreach>
-        on duplicate key update
-        REVISIONOID = values(REVISIONOID),
-        NAMEOID = values(NAMEOID),
-        BTMNAME = values(BTMNAME),
-        LASTR = values(LASTR),
-        FIRSTR = values(FIRSTR),
-        LASTV = values(LASTV),
-        FIRSTV = values(FIRSTV),
-        CREATOR = values(CREATOR),
-        CREATETIME = values(CREATETIME),
-        REVISIONSEQ = values(REVISIONSEQ),
-        REVISIONVALUE = values(REVISIONVALUE),
-        VERSIONSEQ = values(VERSIONSEQ),
-        VERSIONVALUE = values(VERSIONVALUE),
-        LCTID = values(LCTID),
-        LCSTATUS = values(LCSTATUS),
-        TS = values(TS),
-        NAME = values(NAME),
-        DESCRIPTION = values(DESCRIPTION),
-        OWNER = values(OWNER),
-        COPYFROMVERSION = values(COPYFROMVERSION),
-        ORDERNUM = values(ORDERNUM),
-        FIELD = values(FIELD),
-        TITLE = values(TITLE),
-        FIELDTYPE = values(FIELDTYPE),
-        SORT = values(SORT),
-        SORTFIELD = values(SORTFIELD),
-        WIDTH = values(WIDTH),
-        FIXEDTEXT = values(FIXEDTEXT),
-        TEMPLET = values(TEMPLET)
-    </insert>
-
-    <!--閫氳繃涓婚敭淇敼鏁版嵁-->
-    <update id="update">
-        update PL_CODE_SHOWFIELDCONFIG
-        <set>
-            <if test="revisionoid != null and revisionoid != ''">
-                REVISIONOID = #{revisionoid},
-            </if>
-            <if test="nameoid != null and nameoid != ''">
-                NAMEOID = #{nameoid},
-            </if>
-            <if test="btmname != null and btmname != ''">
-                BTMNAME = #{btmname},
-            </if>
-            <if test="lastr != null and lastr != ''">
-                LASTR = #{lastr},
-            </if>
-            <if test="firstr != null and firstr != ''">
-                FIRSTR = #{firstr},
-            </if>
-            <if test="lastv != null and lastv != ''">
-                LASTV = #{lastv},
-            </if>
-            <if test="firstv != null and firstv != ''">
-                FIRSTV = #{firstv},
-            </if>
-            <if test="creator != null and creator != ''">
-                CREATOR = #{creator},
-            </if>
-            <if test="createtime != null and createtime != ''">
-                CREATETIME = #{createtime},
-            </if>
-            <if test="revisionseq != null">
-                REVISIONSEQ = #{revisionseq},
-            </if>
-            <if test="revisionvalue != null and revisionvalue != ''">
-                REVISIONVALUE = #{revisionvalue},
-            </if>
-            <if test="versionseq != null">
-                VERSIONSEQ = #{versionseq},
-            </if>
-            <if test="versionvalue != null and versionvalue != ''">
-                VERSIONVALUE = #{versionvalue},
-            </if>
-            <if test="lctid != null and lctid != ''">
-                LCTID = #{lctid},
-            </if>
-            <if test="lcstatus != null and lcstatus != ''">
-                LCSTATUS = #{lcstatus},
-            </if>
-            <if test="ts != null and ts != ''">
-                TS = #{ts},
-            </if>
-            <if test="name != null and name != ''">
-                NAME = #{name},
-            </if>
-            <if test="description != null and description != ''">
-                DESCRIPTION = #{description},
-            </if>
-            <if test="owner != null and owner != ''">
-                OWNER = #{owner},
-            </if>
-            <if test="copyfromversion != null and copyfromversion != ''">
-                COPYFROMVERSION = #{copyfromversion},
-            </if>
-            <if test="ordernum != null">
-                ORDERNUM = #{ordernum},
-            </if>
-            <if test="field != null and field != ''">
-                FIELD = #{field},
-            </if>
-            <if test="title != null and title != ''">
-                TITLE = #{title},
-            </if>
-            <if test="fieldtype != null and fieldtype != ''">
-                FIELDTYPE = #{fieldtype},
-            </if>
-            <if test="sort != null and sort != ''">
-                SORT = #{sort},
-            </if>
-            <if test="sortfield != null and sortfield != ''">
-                SORTFIELD = #{sortfield},
-            </if>
-            <if test="width != null">
-                WIDTH = #{width},
-            </if>
-            <if test="fixedtext != null and fixedtext != ''">
-                FIXEDTEXT = #{fixedtext},
-            </if>
-            <if test="templet != null and templet != ''">
-                TEMPLET = #{templet},
-            </if>
-        </set>
-        where OID = #{oid}
-    </update>
-
-    <!--閫氳繃涓婚敭鍒犻櫎-->
-    <delete id="deleteById">
-        delete from PL_CODE_SHOWFIELDCONFIG where OID = #{oid}
-    </delete>
 
 </mapper>
 

--
Gitblit v1.9.3