From ef19ce2bc384c00b590ebdbd4e8c14ebfa9f0188 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期四, 24 十月 2024 14:49:14 +0800
Subject: [PATCH] 去掉日志打印

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

diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index 2bc2a3c..be78b61 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -63,6 +63,12 @@
         and order_no = #{orderNo}
         and settle != #{status}
     </update>
+    <update id="updateStatusByOrderNo">
+        update man_order set account_day = #{status},update_time = getdate(),update_by = #{userId} where order_no = #{orderNo}
+    </update>
+    <update id="updatePendingSettleByOrderNo">
+        update man_order set settle = #{status},update_time = getdate() where order_no = #{orderNo} and settle = 1
+    </update>
 
     <select id="selectComplete" resultMap="BaseResultMap">
         select
@@ -91,5 +97,18 @@
             and order_no = #{orderNo}
         </if>
     </select>
+    <select id="selectStockUpOrderDetl" resultType="java.lang.String">
+        select
+            DISTINCT md.brand
+        from
+            man_order mo
+                left join man_order_detl md on
+                mo.order_no = md.order_no
+        where
+            mo.doc_type = 21
+          and mo.account_day = 1
+          and md.inspect = 0
+          and mo.settle = 1
+    </select>
 
 </mapper>

--
Gitblit v1.9.1