From 37163d9ac4fdbf6961aca8f7c6d409092ceff14c Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期三, 13 九月 2023 08:56:27 +0800 Subject: [PATCH] 1、加字段对应默认值。 2、申请接口逻辑处理。 3、将codeApply模块改为jdk1.7调试。 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 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 83d12c5..4d6f43b 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 @@ -45,9 +45,9 @@ </sql> <select id="selectPlCodeClassifyPage" resultMap="plCodeClassifyResultMap"> - select * from PL_CODE_CLASSIFY where is_deleted = 0 + select * from PL_CODE_CLASSIFY where <if test="tenantId != null and tenantId != ''"> - and tenant_id = #{tenantId} + tenant_id = #{tenantId} </if> </select> @@ -241,7 +241,6 @@ SYS_CONNECT_BY_PATH(id, '#') as paths </otherwise> </choose> - from pl_code_classify plcodeclassify START WITH parentCodeClassifyOid is null CONNECT BY PRIOR OID = parentCodeClassifyOid) codeclassify0 @@ -363,7 +362,6 @@ <if test="parentOid == null or parentOid == ''"> and codeclassify0.parentcodeclassifyoid is null </if> - <if test="tenantId != null and tenantId != ''"> and codeclassify0.tenant_id = #{tenantId} </if> @@ -410,7 +408,7 @@ </foreach> </if> <if test="tenantId != null and tenantId != ''"> - codeclassify0.tenant_id = #{tenantId} + and codeclassify0.tenant_id = #{tenantId} </if> order by id asc </select> @@ -450,7 +448,6 @@ <if test="desc != null"> and codeclassify0.DESCRIPTION = #{desc} </if> - <if test="tenantId != null and tenantId != ''"> and codeclassify0.tenant_id = #{tenantId} </if> @@ -513,4 +510,11 @@ </foreach> ;END; </update> + + <select id="selectAllParents" resultMap="plCodeClassifyResultMap"> + select * from PL_CODE_CLASSIFY p + start with p.OID =#{oid} + connect by p.oid = prior p.PARENTCODECLASSIFYOID + </select> + </mapper> -- Gitblit v1.9.3