From cc3682641685022d2f0400b30408cf3cb5a0a93d Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 18 十二月 2023 17:31:04 +0800
Subject: [PATCH] 主数据管理:高级查询,状态查询,快速查询,当查询出多页时,点击分页的页码能够保留上一次的查询条件进行分页,点击分类树节点时则置空查询条件。

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/SystemClassifyRoleMapper.xml |   12 +++++++++++-
 1 files changed, 11 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..51bbd28 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,14 @@
           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}
+        connect by prior classifyoid = classparentoid)
+    </select>
+
 </mapper>

--
Gitblit v1.9.3