From 5b00928c8570a3ba21a1170b4642ef88635d90da Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期二, 21 四月 2026 22:45:22 +0800
Subject: [PATCH] 1.对入库拍照功能解耦

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

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 70838c9..502d583 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -86,6 +86,17 @@
         order by io_time,wrk_no asc
     </select>
 
+    <select id="selectPendingInboundCameraCapture" resultMap="BaseResultMap">
+        select top 5 *
+        from asr_wrk_mast
+        where io_type = 1
+        and (
+            memo = #{pending}
+            or (memo = #{running} and dateadd(mi, 5, modi_time) &lt;= getdate())
+        )
+        order by io_time, wrk_no
+    </select>
+
     <select id="selectWrkMast" resultMap="BaseResultMap">
         select top 1 *
         from asr_wrk_mast

--
Gitblit v1.9.1