From 4c363b4be7800cca818e698bd85d95dd74703bbc Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 14 四月 2023 18:12:40 +0800
Subject: [PATCH] 代码漏传
---
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 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 761683d..32e88c9 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
@@ -137,10 +137,23 @@
codeclassify0.parentCodeClassifyOid = #{oid}
</if>
<if test="oid = null or oid = ''">
- codeclassify0.parentCodeClassifyOid = is null
+ codeclassify0.parentCodeClassifyOid is null
</if>
</where>
CONNECT BY PRIOR codeclassify0.OID = codeclassify0.parentCodeClassifyOid
</select>
+ <select id="selectAllLevelParentByOid" resultType="java.util.HashMap">
+ select oid,level from pl_code_classify start with oid= #{oid} connect by prior PARENTCODECLASSIFYOID = oid
+ </select>
+
+ <select id="selectByFieldPath" resultType="java.util.HashMap">
+ select *
+ from (select oid, SYS_CONNECT_BY_PATH(id, '/') as paths
+ from pl_code_classify
+ START WITH parentCodeClassifyOid is null
+ CONNECT BY PRIOR OID = parentCodeClassifyOid) a
+ where a.paths = #{fieldPath}
+ </select>
+
</mapper>
--
Gitblit v1.10.0