From 4da4e775e421eb7c8359f989d0b98c35f27b3b80 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期三, 29 十月 2025 08:20:23 +0800
Subject: [PATCH] 聚乳酸出库后刷新界面

---
 src/main/resources/mapper/LocMastMapper.xml |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index e3fde58..c2b1d9a 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -86,17 +86,23 @@
             #{loc}
         </foreach>
     </select>
-    <select id="selectNodeDByLev" resultMap="BaseResultMap">
-        SELECT * FROM asr_node_loc_DT_D_view WHERE lev1 = #{lev}
+
+    <select id="selectNodeByLev" resultMap="BaseResultMap">
+        SELECT * FROM asr_node_loc_view
+        <where>
+            <choose>
+                <when test="area == 'A'.toString()">
+                    loc_no like 'A0%' AND lev1 = #{lev}
+                </when>
+                <otherwise>
+                    loc_no like CONCAT(#{area}, '%0%')
+                </otherwise>
+            </choose>
+        </where>
     </select>
-    <select id="selectNodeCByLev" resultMap="BaseResultMap">
-        SELECT * FROM asr_node_loc_DT_C_view WHERE lev1 = #{lev}
-    </select>
-    <select id="selectNodeBByLev"  resultMap="BaseResultMap">
-        SELECT * FROM asr_node_loc_DT_B_view WHERE lev1 = #{lev}
-    </select>
-    <select id="selectNodeEByLev" resultMap="BaseResultMap">
-        SELECT * FROM asr_node_loc_DT_E_view
+
+    <select id="selectLocStatus" resultMap="BaseResultMap">
+        SELECT * FROM asr_node_loc_view WHERE loc_no = #{locno}
     </select>
 
 

--
Gitblit v1.9.1