From 6766d8988e304577fb660991659688006f41493e Mon Sep 17 00:00:00 2001
From: 姜友瑶 <935090232@qq.com>
Date: Sat, 02 Jul 2022 16:13:40 +0800
Subject: [PATCH] 肽妍切换数据库
---
zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
index d58c6c5..c7df75e 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
@@ -187,7 +187,7 @@
left JOIN sys_users c on c.su_id=a.STAFF_ID
left JOIN sys_users e on e.su_id=a.cashier_id
left JOIN sys_shop_info d on d.ID=a.SHOP_ID
- where 1=1 and (b.IS_DELETE is null or b.IS_DELETE = '')
+ where 1=1
<if test="record!=null">
<if test="record.keyWordVo != null and record.keyWordVo!='' ">
and (b.PHONE like concat('%',#{record.keyWordVo},'%')
@@ -275,7 +275,7 @@
LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
left JOIN sys_users c on c.su_id=a.STAFF_ID
left JOIN sys_shop_info d on d.ID=a.SHOP_ID
- where 1=1 and (b.IS_DELETE is null or b.IS_DELETE = '')
+ where 1=1
<if test="record!=null">
<if test="record.keyWordVo != null and record.keyWordVo!='' ">
and (b.PHONE like concat('%',#{record.keyWordVo},'%')
@@ -360,6 +360,27 @@
where a.id=#{id}
</select>
+ <!-- 根据id查询 -->
+ <select id="selectByIds" resultMap="SysOrderMap">
+ select
+ a.*,
+ c.su_name as STAFF_NAME, e.su_name as cashierName,
+ d.SHOP_NAME,
+ d.shop_short_name,
+ b.PHONE,
+ b.VIP_NAME
+ from sys_order a
+ LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
+ left JOIN sys_users c on c.su_id=a.STAFF_ID
+ left JOIN sys_users e on e.su_id=a.cashier_id
+ left JOIN sys_shop_info d on d.ID=a.SHOP_ID
+ where a.id in
+ <foreach collection="list" index="index" item="item" open="("
+ separator="," close=")">
+ #{item}
+ </foreach>
+ </select>
+
<!-- 根据对象查询 -->
<select id="selectByModel" resultMap="SysOrderMap">
--
Gitblit v1.9.1