From 293eb5045df36215f224f705a4adbb3e09570f51 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 06 Apr 2021 09:44:02 +0800 Subject: [PATCH] 20210406 签到活动1 --- zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml index 328dd6a..02ebd34 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml @@ -953,6 +953,7 @@ c.su_name as STAFF_NAME, d.SHOP_NAME, a.blood, + a.company_id, a.sfCard, a.link, a.marry, @@ -1359,11 +1360,10 @@ e.shop_short_name shopName, sum(IFNULL(b.gift_money, 0) + IFNULL(b.real_money, 0)) totalBalance, sum(IFNULL(b.gift_money, 0)) giftBalance, - sum(IFNULL(d.goods_cash, 0) + IFNULL(d.proj_cash, 0) + IFNULL(d.card_cash, 0)) totalShopping + (select sum(IFNULL(d.goods_cash, 0) + IFNULL(d.proj_cash, 0) + IFNULL(d.card_cash, 0)) from achieve_new d where d.vip_id=a.id) totalShopping from sys_vip_info a left join money_card_use b on a.ID = b.vip_id and b.status='有效' left join sys_vip_level c on a.LEVEL_ID = c.ID - left join achieve_new d on a.ID = d.vip_id left join sys_shop_info e on a.SHOP_ID=e.ID where a.ID=#{id} </select> -- Gitblit v1.9.1