From b86d97b09d1aca57291004c1a2bc014f90702918 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 26 一月 2024 16:14:39 +0800
Subject: [PATCH] 提交代码

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeALlCodeMapper.xml |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 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 e656cac..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
@@ -1,16 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.vci.ubcs.code.mapper.CodeAllcodeMapper">
+<mapper namespace="com.vci.ubcs.code.mapper.CodeAllCodeMapper">
 
     <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="CodeAllcodeResultMap" type="com.vci.ubcs.code.entity.CodeAllcode">
+    <resultMap id="CodeAllcodeResultMap" type="com.vci.ubcs.code.entity.CodeAllCode">
     </resultMap>
 
-
-    <select id="selectCodeAllcodePage" resultMap="CodeAllcodeResultMap">
+    <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