From de363dc9abbc7b1bf72cca19861497a99108f304 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Fri, 18 Dec 2020 00:05:35 +0800
Subject: [PATCH] modify vip_detail.html
---
zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 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 7569362..237c65c 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
@@ -465,4 +465,14 @@
</sql>
+ <select id="selectVipOrderInfoTotal" resultType="com.matrix.system.hive.bean.SysOrder">
+ select
+ sum(ZK_TOTAL) zkTotal,
+ count(1) times,
+ MAX(pay_time) payTime,
+ GROUP_CONCAT(DISTINCT t2.shop_short_name) shopName
+ from sys_order t1
+ left join sys_shop_info t2 on t1.SHOP_ID=t2.ID
+ where VIP_ID=#{vipId} and STATU='已付款';
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1