From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期四, 03 四月 2025 14:35:02 +0800 Subject: [PATCH] 添加非密字段显示 --- 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