From 1cd37ba9db4b4b52b441978dfcaa37610418d98b Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期一, 25 九月 2023 09:32:20 +0800
Subject: [PATCH] 1、增加标准请码界面,授权了的才能查询到,编码分类树查询接口。

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml
index 8c7470e..b71ab12 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml
@@ -70,7 +70,7 @@
                pc.SYSTEMID,
                p.oid CLASSIFYOID,
                p.id CLASSIFYID,
-               case when pc.selected is null then false else  pc.SELECTED end SELECTED,
+               case when pc.selected is null then false when pc.selected = 0 then false else  pc.SELECTED end SELECTED,
                p.PARENTCODECLASSIFYOID CLASSPARENTOID
         from PL_CODE_CLASSIFY p ,
              PL_CODE_SYSTEM_CLASSIFY_ROLE pc
@@ -79,4 +79,15 @@
           and '${systemId}' = pc.SYSTEMID(+)
     </select>
 
+    <select id="getListClassifyRole" resultType="com.vci.ubcs.code.entity.CodeClassify">
+        select *
+        from PL_CODE_CLASSIFY
+        where oid in( select classifyoid
+                      from PL_CODE_SYSTEM_CLASSIFY_ROLE
+                               start with classifyid = #{library}
+            and SYSTEMID=#{systemId}
+            and SYSTEMOID = #{systemOid}
+        connect by prior classifyoid = classparentoid)
+    </select>
+
 </mapper>

--
Gitblit v1.9.3