From a8d80ddd0aef61cbaf1dbe9fe7abec12f0835399 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 01 二月 2024 14:52:14 +0800
Subject: [PATCH] 代码合并

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
index 2305909..3af89eb 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
@@ -605,4 +605,26 @@
         and oid != #{currentOid}
     </select>
 
+    <!--鏍规嵁椤跺眰鑺傜偣oid鏌ヨ鎵�鏈夊彾瀛愯妭鐐瑰垎绫籵id-->
+    <select id="selectLeafByPid" resultType="com.vci.ubcs.code.entity.CodeClassify">
+        select *
+        from (
+                 select
+                     oid,
+                     name,
+                     id,
+                     level lvl,
+                     isparticipatecheck,
+                     nvl((select 'N'
+                          from PL_CODE_CLASSIFY pcc1
+                          where pcc.oid = pcc1.PARENTCODECLASSIFYOID
+                            and rownum &lt; 2),'Y') is_leaf
+                 from PL_CODE_CLASSIFY pcc
+                     start with pcc.oid = #{pid}
+                 connect by pcc.PARENTCODECLASSIFYOID = prior oid
+             ) plcls
+        where
+            is_leaf = 'Y'
+    </select>
+
 </mapper>

--
Gitblit v1.9.3