From d7cbe984b51fb8fa509890809aa75e6416168249 Mon Sep 17 00:00:00 2001
From: ZY <zc857179121@qq.com>
Date: 星期一, 19 八月 2024 08:20:49 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/OrderMapper.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 55 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index 1ac517d..cac5835 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -39,16 +39,70 @@
<result column="update_by" property="updateBy" />
<result column="update_time" property="updateTime" />
<result column="memo" property="memo" />
+ <result column="move_status" property="moveStatus" />
+ <result column="temp1" property="temp1" />
+ <result column="temp2" property="temp2" />
+ <result column="temp3" property="temp3" />
+ <result column="ware_id" property="wareId" />
+ <result column="ware_name" property="wareName" />
</resultMap>
<update id="updateSettle">
update man_order
set settle = #{settle}
,update_time = getdate()
- ,update_by = #{userId}
+ <if test="userId != null">
+ ,update_by = #{userId}
+ </if>
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 create_time asc
+ </select>
+
+ <select id="selectComplete8" resultMap="BaseResultMap">
+ select top 5 *
+ from man_order
+ where 1=1
+ and settle = 8
+ and status = 1
+ order by 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="selectOrderMoveStatus" resultMap="BaseResultMap">
+ select top 1 *
+ from man_order
+ where 1=1
+ and move_status = 2
+ </select>
+
+ <select id="selectOrderMoveStatusInitial" resultMap="BaseResultMap">
+ select top 1 *
+ from man_order
+ where 1=1
+ and move_status = 1
+ order by update_time
+ </select>
+
</mapper>
--
Gitblit v1.9.1