From fcf47692a8115c53855e5f7a593238306cd59e69 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期四, 25 十二月 2025 14:40:24 +0800
Subject: [PATCH] 1.新增拍照 2.初始化

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

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 54bace6..6cb9a59 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -59,6 +59,7 @@
 <!--        <result column="Pdc_type" property="PdcType" />-->
         <result column="ctn_no" property="ctnNo" />
         <result column="full_plt" property="fullPlt" />
+        <result column="pic" property="pic" />
 
     </resultMap>
 
@@ -85,6 +86,9 @@
 
     <select id="selectPakInStep1" resultMap="BaseResultMap">
         select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
+    </select>
+    <select id="selectPakInStepBarcode" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast where  barcode = #{barcode}
     </select>
 
     <select id="selectPakInStep11" resultMap="BaseResultMap">
@@ -113,6 +117,10 @@
 
     <select id="selectLocMove" resultMap="BaseResultMap">
         select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_time,wrk_no
+    </select>
+
+    <select id="selectLocMove111" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=111 and crn_no=#{crnNo} order by io_time,wrk_no
     </select>
 
     <select id="selectLocMoving" resultMap="BaseResultMap">
@@ -179,4 +187,15 @@
         and source_sta_no = #{sourceStaNo}
         order by io_time,wrk_no
     </select>
+    <select id="selectPakoutEmpty" resultMap="BaseResultMap">
+        select top 1 * from dbo.asr_wrk_mast where  io_type = 110 and sta_no = #{staNo} order by io_time,wrk_no
+    </select>
+
+    <select id="selectLaneWrkMastIn" resultMap="BaseResultMap">
+        select * from dbo.asr_wrk_mast where wrk_sts=2 and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
+    </select>
+
+    <select id="selectLaneWrkMastOut" resultMap="BaseResultMap">
+        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13) and io_type>100 order by io_pri desc,io_time,wrk_no asc
+    </select>
 </mapper>

--
Gitblit v1.9.1