From 0c5db9c4a128999d58e1a300b21a757b04908ada Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期一, 21 十月 2024 09:34:56 +0800
Subject: [PATCH] #

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

diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index fc74982..c77eaff 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -92,7 +92,7 @@
     </select>
 
     <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 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) and (wrk_no not in (select wrk_no from asr_bas_devp)) order by io_pri desc,io_time,wrk_no ASC
     </select>
 
     <select id="selectPakInStep111" resultMap="BaseResultMap">

--
Gitblit v1.9.1