From e2fcff4309336fd50bcbf3e35a81b1ff08b36dec Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期三, 08 十月 2025 09:55:49 +0800
Subject: [PATCH] *

---
 src/main/resources/mapper/WrkMastStaMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/WrkMastStaMapper.xml b/src/main/resources/mapper/WrkMastStaMapper.xml
index 6650f59..af85b0f 100644
--- a/src/main/resources/mapper/WrkMastStaMapper.xml
+++ b/src/main/resources/mapper/WrkMastStaMapper.xml
@@ -82,6 +82,22 @@
         </if>
     </select>
 
+    <select id="selectAllWrkCount108" resultType="Integer">
+        select count(1) from asr_wrk_mast_sta
+        where 1=1
+        and type = 1
+        and (sta_end = 108 or sta_start = 108)
+    </select>
+
+    <select id="selectAllWrkCount108Y" resultType="Integer">
+        select count(1) from asr_wrk_mast_sta
+        where 1=1
+--         and type = 1
+        and ((sta_end &lt;= 108 or sta_start &lt;= 108)
+        or (sta_end = 118 or sta_start = 118)
+        or (sta_end = 122 or sta_start = 122))
+    </select>
+
     <select id="selectAllWrkStsCount" resultType="Integer">
         select count(1) from asr_wrk_mast_sta
         where 1=1
@@ -93,6 +109,17 @@
         </if>
     </select>
 
+    <select id="selectAllWrkStsCountWrkMastSta" resultMap="BaseResultMap">
+        select top 1 * from asr_wrk_mast_sta
+        where 1=1
+        <if test="type!=null">
+            and type = #{type}
+        </if>
+        <if test="wrkSts!=null">
+            and wrk_sts = #{wrkSts}
+        </if>
+    </select>
+
 
 
 

--
Gitblit v1.9.1