From 8fbd60d7e7fc0e35b3bff5a0c63e2d1bd80be8cf Mon Sep 17 00:00:00 2001
From: czkh <czkh@163.com>
Date: 星期四, 27 十一月 2025 08:08:40 +0800
Subject: [PATCH] #1
---
src/main/resources/mapper/OrderMapper.xml | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index cac5835..d74bcb9 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -58,6 +58,26 @@
where 1=1
and id = #{orderId}
</update>
+ <update id="updateSettleAndGroupingFlag">
+ update
+ man_order
+ set
+ settle = #{settle},
+ account_day = #{account_day} ,
+ update_time = getdate()
+ where
+ 1 = 1
+ and id = #{orderId}
+ </update>
+
+ <select id="selectWork" resultMap="BaseResultMap">
+ select top 5 *
+ from man_order
+ where 1=1
+ and settle = 2
+ and status = 1
+ order by create_time asc
+ </select>
<select id="selectComplete" resultMap="BaseResultMap">
select top 5 *
@@ -104,5 +124,17 @@
and move_status = 1
order by update_time
</select>
+ <select id="selectNotGroupingList" resultMap="BaseResultMap">
+ select
+ *
+ from
+ man_order mo
+ left join man_doc_type mdt on
+ mo.doc_type = mdt.doc_id
+ where
+ mdt.pakin = 1
+ and mo.account_day = 0
+ and mo.settle = 1
+ </select>
</mapper>
--
Gitblit v1.9.1