From 8ef9e366be48dc5e8e52617ea8ed48b37a0e1f74 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 29 二月 2024 14:33:58 +0800 Subject: [PATCH] 在线部署功能上传,标准申请接口bug修改 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml index 201be73..6b61fbb 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml @@ -8,11 +8,17 @@ <select id="selectCodeAllCodePage" resultMap="CodeAllcodeResultMap"> select * from PL_CODE_ALLCODE - <where> - <if test="tenantId != null and tenantId != ''"> - TENANT_ID = #{tenantId} - </if> - </where> + </select> + <select id="selectGroupByClassify" resultMap="CodeAllcodeResultMap"> + select codeRuleOid, + serialUnit, + nvl(max(unFillSerial),0) unFillSerial + from (select codeClassifyOid, + codeRuleOid, + serialUnit, + to_number(replace(unFillSerial, ${replaceString}, '')) unFillSerial + from PL_CODE_ALLCODE where codeClassifyOid in (${codeClassifyOid})) + group by codeRuleOid, serialUnit </select> </mapper> -- Gitblit v1.9.3