From 7cacad7b27a8d2031187e111a30183cba55518fe Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 09 Aug 2021 14:13:11 +0800
Subject: [PATCH] fix
---
gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml b/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml
index dac82a6..480e24e 100644
--- a/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml
+++ b/gc-order/src/main/resources/mapper/order/JhyOrderMapper.xml
@@ -71,4 +71,17 @@
</where>
group by status
</select>
+
+ <select id="selectJhyOrderListByStatus" resultType="com.xzx.gc.entity.JhyOrder">
+ select * from xzx_jhy_order
+ where user_id=#{userId} and status in
+ <foreach collection="list" index="index" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </select>
+
+ <select id="selectJhyOrderNoWaitAndCancel" resultType="com.xzx.gc.entity.JhyOrder">
+ select * from xzx_jhy_order
+ where status not in (1, 2, 5) and user_id=#{userId}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1