From f02c15e434ffbc248b55d9d14e104c7d8556062b Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期五, 28 四月 2023 11:42:42 +0800 Subject: [PATCH] 1、主要完成主题库定义的模板分类的接口移植。 2、主要对界面字数多了换行问题进行了修改。 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 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 32e88c9..f1fa535 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 @@ -87,12 +87,11 @@ on codeclassify0.codeKeyAttrRepeatOid = codekeyattrrepeatoid.oid left join pl_code_resemblerule coderesembleruleoid on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid - where <where> <if test="oid != null and oid != ''"> - codeclassify0.parentcodeclassifyoid = #{oid} + codeclassify0.parentcodeclassifyoid = '${oid}' </if> - <if test="oid = null or oid = ''"> + <if test="oid = null"> codeclassify0.parentcodeclassifyoid is null </if> </where> @@ -132,14 +131,12 @@ left join pl_code_resemblerule coderesembleruleoid on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid START WITH - <where> - <if test="oid != null and oid != ''"> - codeclassify0.parentCodeClassifyOid = #{oid} + <if test="oid != null "> + codeclassify0.parentCodeClassifyOid = '${oid}' </if> - <if test="oid = null or oid = ''"> + <if test="oid = null "> codeclassify0.parentCodeClassifyOid is null </if> - </where> CONNECT BY PRIOR codeclassify0.OID = codeclassify0.parentCodeClassifyOid </select> @@ -156,4 +153,12 @@ where a.paths = #{fieldPath} </select> + <select id="selectAllLevelParents" resultType="java.util.HashMap"> + select oid, id, name, btmtypeid, btmtypename + from PL_CODE_CLASSIFY + where btmtypeid is not null + start with oid = #{oid} + connect by prior PARENTCODECLASSIFYOID = oid + </select> + </mapper> -- Gitblit v1.9.3