From 7b157aa56608423c9e7de63e12240e8044b3afd9 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期一, 17 四月 2023 16:51:06 +0800
Subject: [PATCH] 元数据管理ver初始
---
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