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/OrderMapper.xml |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index f422abc..59206b3 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -42,4 +42,59 @@
 
     </resultMap>
 
+    <update id="updateTel">
+        update man_order
+        set tel = #{tel}
+        where 1=1
+        and id = #{orderId}
+    </update>
+
+    <update id="updateSettle">
+        update man_order
+        set settle = #{settle}
+        ,update_time = getdate()
+        <if test="userId != null">
+            ,update_by = #{userId}
+        </if>
+        where 1=1
+        and id = #{orderId}
+    </update>
+
+    <update id="updateSettle2">
+        update man_order
+        set settle = #{settle}
+        ,update_time = getdate()
+        ,plt_type = #{plt}
+        ,in_time = #{inTime}
+        where 1=1
+        and id = #{orderId}
+    </update>
+
+    <select id="selectComplete" resultMap="BaseResultMap">
+        select TOP 5 *
+        from man_order
+        where 1=1
+        and settle = 4
+        and status = 1
+        order by newID(), create_time asc
+    </select>
+
+    <select id="selectorderNoL" resultMap="BaseResultMap">
+        select top 10 *
+        from man_order
+        where 1=1
+        <if test="orderNo != null">
+            and order_no = #{orderNo}
+        </if>
+    </select>
+
+    <select id="selectThreeCode" parameterType="string" resultType="string">
+        select top 50 three_code
+        from three_code_view
+        where 1=1
+        <if test="threeCode != null">
+           and three_code like '%' + #{threeCode} + '%'
+        </if>
+    </select>
+
 </mapper>

--
Gitblit v1.9.1