From 99091a8cbb8e098575c75a7c640b568addbcc29d Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Sun, 09 Oct 2022 21:41:13 +0800 Subject: [PATCH] Merge branch 'score_shop' --- zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 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 6b6dfc9..c7df75e 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml @@ -14,7 +14,7 @@ <result property="orderNo" column="ORDER_NO"/> <result property="activity" column="ACTIVITY"/> <result property="total" column="TOTAL"/> - <result property="cashierName" column="cashierName"/> + <result property="statu" column="STATU"/> <result property="zkTotal" column="ZK_TOTAL"/> @@ -31,7 +31,7 @@ <result property="arrears" column="arrears"/> <result property="payTime" column="pay_time"/> <result property="cashierId" column="cashier_id"/> - + <result property="cashierName" column="cashierName"/> <!-- 扩展字段 --> <result property="shopName" column="SHOP_NAME"/> <result property="shopShortName" column="SHOP_SHORT_NAME"/> @@ -347,7 +347,7 @@ <select id="selectById" resultMap="SysOrderMap"> select a.*, - c.su_name as STAFF_NAME, + c.su_name as STAFF_NAME, e.su_name as cashierName, d.SHOP_NAME, d.shop_short_name, b.PHONE, @@ -355,10 +355,32 @@ 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=#{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