From e0ffdb9ece998fb3dd5ed497ba1dff8ab6749e30 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期一, 29 十二月 2025 20:36:15 +0800
Subject: [PATCH] 海康rcs系统可能会多次上报导致库位状态不对

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

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index ee92255..81f5acf 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -155,4 +155,11 @@
         and (bay1 &gt;= #{startBay} and bay1 &lt;= #{endBay})
         and (lev1 &gt;= #{startLev} and lev1 &lt;= #{endLev})
     </select>
+
+    <select id="selectLocDetlNotExist" resultMap="BaseResultMap">
+        select * from asr_loc_mast lm
+        left join asr_loc_detl ld
+        on lm.loc_no = ld.loc_no
+        where ld.matnr is null and lm.loc_sts = 'F'
+    </select>
 </mapper>

--
Gitblit v1.9.1