From 401da88caef79968c8c0b1cb15487c4a554761ec Mon Sep 17 00:00:00 2001
From: zhangchao <zc857179121@qq.com>
Date: 星期三, 23 十月 2024 14:37:04 +0800
Subject: [PATCH] 测试环境暂时注释
---
src/main/resources/mapper/OrderMapper.xml | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/OrderMapper.xml b/src/main/resources/mapper/OrderMapper.xml
index 1ac517d..99eecd5 100644
--- a/src/main/resources/mapper/OrderMapper.xml
+++ b/src/main/resources/mapper/OrderMapper.xml
@@ -46,9 +46,38 @@
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>
+ <update id="updateSettle2">
+ update man_order
+ set settle = #{settle}
+ ,update_time = getdate()
+ ,plt_type = #{plt}
+ 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="selectorderNoL" resultMap="BaseResultMap">
+ select top 10 *
+ from man_order
+ where 1=1
+ <if test="orderNo != null">
+ and order_no = #{orderNo}
+ </if>
+ </select>
+
</mapper>
--
Gitblit v1.9.1