From f3b34b0c7ba026e686d58af93ab8ae5ad6aa9f48 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 11 Mar 2021 18:27:55 +0800
Subject: [PATCH] 分销员后台1

---
 zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml |    6 +++---
 1 files changed, 3 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 ae1d3fe..1e64c24 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysOrderDao.xml
@@ -470,14 +470,14 @@
 
     <select id="selectVipOrderInfoTotal" resultType="com.matrix.system.hive.bean.SysOrder">
         select
-            sum(ZK_TOTAL) zkTotal,
+            sum(amount) zkTotal,
             count(1) times,
             MAX(pay_time) payTime,
             GROUP_CONCAT(DISTINCT t2.shop_short_name) shopName
         from sys_order t1
-        left join sys_order_item b on t1.id=b.ORDER_ID and goods_id!=5583
+        left join sys_order_flow b on t1.id=b.ORDER_ID and pay_method!='储值卡'
         left join sys_shop_info t2 on t1.SHOP_ID=t2.ID
-        where VIP_ID=#{vipId} and STATU='已付款';
+        where t1.VIP_ID=#{vipId} and STATU='已付款';
     </select>
 
     <select id="selectApiOrderListInPage" resultType="com.matrix.system.app.vo.OrderDetailVo">

--
Gitblit v1.9.1