From 3534b13391b2a6152d0f91b72fda343b13a947cb Mon Sep 17 00:00:00 2001 From: ludc <ludc@vci-tech.com> Date: 星期三, 22 一月 2025 15:55:27 +0800 Subject: [PATCH] 分类码段码值管理查询去除null的情况,分类码段生成编码时去除码值为null的情况 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml | 5 ++--- 1 files changed, 2 insertions(+), 3 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 bed4943..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 @@ -10,8 +10,7 @@ select * from PL_CODE_ALLCODE </select> <select id="selectGroupByClassify" resultMap="CodeAllcodeResultMap"> - select codeClassifyOid, - codeRuleOid, + select codeRuleOid, serialUnit, nvl(max(unFillSerial),0) unFillSerial from (select codeClassifyOid, @@ -19,7 +18,7 @@ serialUnit, to_number(replace(unFillSerial, ${replaceString}, '')) unFillSerial from PL_CODE_ALLCODE where codeClassifyOid in (${codeClassifyOid})) - group by codeClassifyOid, codeRuleOid, serialUnit + group by codeRuleOid, serialUnit </select> </mapper> -- Gitblit v1.9.3