From 3677c6501ed94234f406d6444bab46e90824dac8 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 24 二月 2025 09:58:16 +0800
Subject: [PATCH] *

---
 src/main/resources/mapper/WrkMastStaMapper.xml |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/WrkMastStaMapper.xml b/src/main/resources/mapper/WrkMastStaMapper.xml
index 429d50c..af85b0f 100644
--- a/src/main/resources/mapper/WrkMastStaMapper.xml
+++ b/src/main/resources/mapper/WrkMastStaMapper.xml
@@ -33,7 +33,7 @@
     <select id="selectByWrkNo" resultMap="BaseResultMap">
         select top 1 * from asr_wrk_mast_sta
         where 1=1
-        and wrk_no = #{wrkNo}
+        and wrk_no = #{workNo}
     </select>
 
     <select id="selectNoInterfere" resultMap="BaseResultMap">
@@ -74,7 +74,7 @@
         order by line_number,id
     </select>
 
-    <select id="selectAllWrkCount" resultMap="Integer">
+    <select id="selectAllWrkCount" resultType="Integer">
         select count(1) from asr_wrk_mast_sta
         where 1=1
         <if test="type!=null">
@@ -82,6 +82,45 @@
         </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
+        <if test="type!=null">
+            and type = #{type}
+        </if>
+        <if test="wrkSts!=null">
+            and wrk_sts = #{wrkSts}
+        </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>
+
+
 
 
 </mapper>

--
Gitblit v1.9.1