From 3e4ca9accd2be4240308565bb21469f3abb86023 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 17 十一月 2023 15:02:13 +0800
Subject: [PATCH] #

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

diff --git a/src/main/resources/mapper/TaskWrkMapper.xml b/src/main/resources/mapper/TaskWrkMapper.xml
index f855a7a..c318b92 100644
--- a/src/main/resources/mapper/TaskWrkMapper.xml
+++ b/src/main/resources/mapper/TaskWrkMapper.xml
@@ -33,6 +33,13 @@
         and task_no = #{taskNo}
     </select>
 
+    <select id="selectByStartPoint" resultMap="BaseResultMap">
+        select top 1 * from wcs_task_wrk
+        where 1=1
+        and io_type=3
+        and start_point = #{startPoint}
+    </select>
+
     <select id="selectByWrkNo" resultMap="BaseResultMap">
         select top 1 * from wcs_task_wrk
         where 1=1
@@ -49,6 +56,12 @@
         order by io_pri desc,create_time,wrk_no ASC
     </select>
 
+    <select id="selectReceive" resultMap="BaseResultMap">
+        select * from wcs_task_wrk
+        where 1=1
+        and status = 1
+    </select>
+
     <select id="selectPakOutIoType" resultMap="BaseResultMap">
         select * from dbo.wcs_task_wrk
         where crn_no=#{crnNo}
@@ -56,6 +69,15 @@
         order by io_pri desc,create_time,wrk_no ASC
     </select>
 
+    <select id="selectCrnStaWorking" resultMap="BaseResultMap">
+        select * from dbo.wcs_task_wrk
+        where crn_no=#{crnNo}
+        and target_point=#{targetPoint}
+        and wrk_sts=12
+        and io_type = 2
+        order by io_pri desc,create_time,wrk_no ASC
+    </select>
+
     <select id="selectPakOut" resultMap="BaseResultMap">
         select * from dbo.wcs_task_wrk
         where crn_no=#{crnNo}

--
Gitblit v1.9.1