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 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 51 insertions(+), 6 deletions(-)
diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index db8816d..be78b61 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -52,18 +52,63 @@
where 1=1
and id = #{orderId}
</update>
+ <update id="updateSettleByOrderNo">
+ update man_order
+ set settle = #{status}
+ ,update_time = getdate()
+ <if test="userId != null">
+ ,update_by = #{userId}
+ </if>
+ where 1=1
+ 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 top 5 *
- from man_order
- where 1=1
- and settle = 4
- and status = 1
- order by create_time asc
+ select
+ top 5 mo.*
+ from
+ man_order mo
+ inner join man_doc_type mt on
+ mo.doc_type = mt.doc_id
+ where
+ mt.pakout = 1
+ and mo.settle = 4
+ and mo.status = 1
+ order by
+ mo.create_time asc
</select>
<insert id="addToLogTable">
INSERT INTO man_order_log SELECT * FROM man_order WHERE id = #{id}
</insert>
+ <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="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