From f02c15e434ffbc248b55d9d14e104c7d8556062b Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 28 四月 2023 11:42:42 +0800
Subject: [PATCH] 1、主要完成主题库定义的模板分类的接口移植。 2、主要对界面字数多了换行问题进行了修改。

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClstemplateMapper.xml |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClstemplateMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClstemplateMapper.xml
index 521b9e1..d5e83b0 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClstemplateMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClstemplateMapper.xml
@@ -37,7 +37,7 @@
 
 
     <select id="selectPlCodeClstemplatePage" resultMap="plCodeClstemplateResultMap">
-        select * from PL_CODE_CLSTEMPLATE where is_deleted = 0
+        select * from PL_CODE_CLSTEMPLATE where is_deleted = 0 order by revisionSeq
     </select>
 
     <select id="selectAllLevelChildOid" resultType="java.lang.String" >
@@ -45,7 +45,57 @@
     </select>
 
     <select id="countAllLevelChildOid" resultType="java.lang.Integer" >
-        select count(OID) countsize from platformbtm_codeclstemplate START WITH codeClassifyOid = #{oid} CONNECT BY PRIOR codeClassifyOid = OID
+        select count(OID) countsize from PL_CODE_CLSTEMPLATE START WITH codeClassifyOid = #{oid} CONNECT BY PRIOR codeClassifyOid = OID
+    </select>
+    <select id="getNextRevision" resultType="map" >
+        select max(revisionSeq) + 1 revisionSeq,
+               max(revisionSeq) + 1 revisionVal,
+               max(VersionSeq) + 1 VersionSeq,
+               max(VersionSeq) + 1 VersionVal
+        from PL_CODE_CLSTEMPLATE
+        where nameoid = #{nameoid}
+    </select>
+
+    <select id="selectCodeClassifyTemplateDOByTree" resultMap="plCodeClstemplateResultMap">
+        SELECT codeclstemplate0.CODECLASSIFYOID AS codeclassifyoid,
+               codeclstemplate0.LASTMODIFIER    AS lastmodifier,
+               codeclstemplate0.REVISIONSEQ     AS revisionseq,
+               codeclstemplate0.VERSIONVALUE    AS versionvalue,
+               codeclstemplate0.DESCRIPTION     AS description,
+               codeclstemplate0.OID             AS oid,
+               codeclstemplate0.VERSIONSEQ      AS versionseq,
+               --codeclstemplate0.CHECKINBY       AS checkinby,
+               codeclstemplate0.BTMTYPENAME     AS btmtypename,
+               codeclstemplate0.REVISIONRULE    AS revisionrule,
+               codeclstemplate0.ID              AS id,
+               codeclstemplate0.OWNER           AS owner,
+               --codeclstemplate0.CHECKOUTBY      AS checkoutby,
+               codeclstemplate0.BTMTYPEID       AS btmtypeid,
+               codeclstemplate0.CREATOR         AS creator,
+               codeclstemplate0.CREATETIME      AS createtime,
+               codeclstemplate0.FIRSTV        AS isfirstv,
+               codeclstemplate0.REVISIONOID     AS revisionoid,
+               codeclstemplate0.BTMNAME         AS btmname,
+               --codeclstemplate0.CHECKOUTTIME    AS checkouttime,
+               codeclstemplate0.REVISIONVALUE   AS revisionvalue,
+               codeclstemplate0.VERSIONRULE     AS versionrule,
+               codeclstemplate0.NAME            AS name,
+               codeclstemplate0.LASTR         AS islastr,
+               codeclstemplate0.LASTMODIFYTIME  AS lastmodifytime,
+               codeclstemplate0.COPYFROMVERSION AS copyfromversion,
+               codeclstemplate0.NAMEOID         AS nameoid,
+               codeclstemplate0.LCSTATUS        AS lcstatus,
+               codeclstemplate0.LASTV         AS islastv,
+               --codeclstemplate0.CHECKINTIME     AS checkintime,
+               codeclstemplate0.FIRSTR        AS isfirstr,
+               codeclstemplate0.TS              AS ts,
+               codeclassifyoid.name             AS codeClassifyOidName
+        FROM PL_CODE_CLSTEMPLATE codeclstemplate0
+                 LEFT JOIN PL_CODE_CLASSIFY codeclassifyoid
+                           ON codeclstemplate0.codeClassifyOid = codeclassifyoid.oid
+        WHERE codeclstemplate0.codeclassifyoid = #{codeclassifyoid}
+          and codeclstemplate0.lcstatus = #{lcstatus}
+          AND (codeclstemplate0.lastr = '1' AND codeclstemplate0.lastv = '1')
     </select>
 
 </mapper>

--
Gitblit v1.9.3