From 47f1f14d7788b0baf4578d3aaa5b9f989ee65210 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 31 一月 2024 16:36:52 +0800
Subject: [PATCH] 首页统计功能查询判断为空增加

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 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 523d622..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
@@ -9,5 +9,16 @@
     <select id="selectCodeAllCodePage" resultMap="CodeAllcodeResultMap">
         select * from PL_CODE_ALLCODE
     </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