From b11b45122d2b6903e8970e8d55712f7a6a657e22 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 10 一月 2024 00:01:10 +0800
Subject: [PATCH] defaultReferDataGrid接口修改,实现兼容高级查询sql拼接;修改流水处理接口,增加流水处理跳出判断

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml |    7 +++----
 1 files changed, 3 insertions(+), 4 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 1a108c6..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,16 +10,15 @@
         select * from PL_CODE_ALLCODE
     </select>
     <select id="selectGroupByClassify" resultMap="CodeAllcodeResultMap">
-        select codeClassifyOid,
-               codeRuleOid,
+        select codeRuleOid,
                serialUnit,
-               max(unFillSerial) unFillSerial
+               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 codeClassifyOid, codeRuleOid, serialUnit
+        group by codeRuleOid, serialUnit
     </select>
 
 </mapper>

--
Gitblit v1.9.3