From 80e2ce2ab5dc1ca0c6099745d38ca577f5b2f257 Mon Sep 17 00:00:00 2001 From: xiejun <xiejun@vci-tech.com> Date: 星期四, 26 十二月 2024 16:44:26 +0800 Subject: [PATCH] 集成获取mdm分发通用数据格式接口集成 日志输出到日志文件中 --- 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