From 18e957852e3163107c9bdcd37162f0fc9fcbfb00 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期三, 13 十二月 2023 10:55:18 +0800
Subject: [PATCH] Merge branch 'tzskasrs-1' of http://47.97.1.152:5880/r/zy-asrs into tzskasrs-1

---
 src/main/resources/mapper/LocRuleMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/LocRuleMapper.xml b/src/main/resources/mapper/LocRuleMapper.xml
index 781ad78..5a1f5bb 100644
--- a/src/main/resources/mapper/LocRuleMapper.xml
+++ b/src/main/resources/mapper/LocRuleMapper.xml
@@ -37,9 +37,17 @@
     </select>
 
     <select id="selectByMixed" resultMap="BaseResultMap">
-        select top 1 * from asr_loc_rule
+        select * from asr_loc_rule
         where mixed = #{mixed}
         and status = 1
     </select>
 
+    <update id="updateKeepGoByMatnr">
+        update asr_loc_rule set keep_go = #{keepGo} where matnr = #{matnr}
+    </update>
+
+    <update id="updateKeepGoByMixed">
+        update asr_loc_rule set keep_go = #{keepGo} where mixed = 1
+    </update>
+
 </mapper>

--
Gitblit v1.9.1