From b3fcc1eda7f6305e9ae128b6ca51cf6d9f3f90c1 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期四, 25 十二月 2025 09:58:49 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/nc/NccScZkmxbWmsMapper.xml |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/nc/NccScZkmxbWmsMapper.xml b/src/main/resources/mapper/nc/NccScZkmxbWmsMapper.xml
index a2f3e42..2cc6d0d 100644
--- a/src/main/resources/mapper/nc/NccScZkmxbWmsMapper.xml
+++ b/src/main/resources/mapper/nc/NccScZkmxbWmsMapper.xml
@@ -76,9 +76,29 @@
         DR,TS,wms_flag
     </sql>
 
-    <select id="selectZk" resultType="java.lang.String">
+    <select id="selectZkIn" resultType="java.lang.String">
         select distinct VBILLCODE
-        from ncc_sale_xsfhmx_wms
-        where wms_flag != 1 and fstatusflag = 2 limit 100
+        from ncc_sc_zkmxb_wms
+        where wms_flag != 1 and DJZT = 4 and dr =0 and bdr =0
+        <if test="ids != null">
+            and RKCKBM in
+            <foreach item="id" collection="ids" separator="," open="(" close=")" index="">
+                #{id}
+            </foreach>
+        </if>
+        limit 100
+    </select>
+
+    <select id="selectZkOut" resultType="java.lang.String">
+        select distinct VBILLCODE
+        from ncc_sc_zkmxb_wms
+        where wms_flag != 1 and DJZT = 4  and dr =0 and bdr =0
+        <if test="ids != null">
+            and CKCKBM in
+            <foreach item="id" collection="ids" separator="," open="(" close=")" index="">
+                #{id}
+            </foreach>
+        </if>
+        limit 100
     </select>
 </mapper>

--
Gitblit v1.9.1