From f2e6e77dc5a984e2fec4416717baa7c47118fcb1 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期五, 14 四月 2023 17:26:58 +0800 Subject: [PATCH] 主题库相关的代码实现功能,包括excel导入导出,树形查看等功能 --- 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.9.3