From 85d10ebf08cb41fa3ec06272e6e991cdd0a534f9 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期四, 01 六月 2023 17:54:58 +0800 Subject: [PATCH] 集团集属性映射界面加载接口bug修复 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 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 0533fb6..d1bd445 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 @@ -52,9 +52,9 @@ </select> <select id="checkHasChild" resultType="java.lang.Boolean"> - select count(oid) + <![CDATA[select count(oid) from PL_CODE_CLASSIFY - where parentCodeClassifyOid = #{oid} + where parentCodeClassifyOid = #{oid}]]> </select> <select id="selectCodeClassifyVOByTree" resultMap="plCodeClassifyResultMap"> @@ -134,14 +134,15 @@ <if test="oid != null "> codeclassify0.parentCodeClassifyOid = '${oid}' </if> - <if test="oid = null "> + <if test="oid == null "> codeclassify0.parentCodeClassifyOid is null </if> 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 oid, + level from pl_code_classify start with oid= #{oid} connect by prior PARENTCODECLASSIFYOID = oid </select> <select id="selectByFieldNamePath" resultMap="plCodeClassifyResultMap"> @@ -167,11 +168,11 @@ codeclassify0.paths as paths from (select plcodeclassify.*, <choose> - <when test="fieldName=='name'.tostring()"> - SYS_CONNECT_BY_PATH(name, '##') as paths + <when test='fieldName=="name"'> + SUBSTR(SYS_CONNECT_BY_PATH(name, '##'),3) as paths </when> <otherwise> - SYS_CONNECT_BY_PATH(id, '##') as paths + SUBSTR(SYS_CONNECT_BY_PATH(id, '##'),3) as paths </otherwise> </choose> -- Gitblit v1.9.3