From 6a6f4b59e9eaf37cc569f215e9b39e5076ee4da3 Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Wed, 07 Jul 2021 21:55:31 +0800
Subject: [PATCH] 新增客户资料导出

---
 zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml
index 04cba28..a282ab6 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml
@@ -5,20 +5,21 @@
 <mapper namespace="com.matrix.system.shopXcx.dao.ShopOrderV2Dao">
 
 	<select id="selectReceivedOrderCount" resultType="java.lang.Integer">
-		select count(*)  from shop_order where user_id = #{openId} and order_status in (4,5)
+		select count(*)  from shop_order where user_id = #{userId} and order_status in (4,5)
 	</select>
 
 	<select id="countOrderAmount" resultType="java.lang.Double">
-		select IFNULL(sum(IFNULL( order_money, 0 )),0)  from shop_order where user_id = #{openId} and order_status in (4,5)
+		select IFNULL(sum(IFNULL( order_money, 0 )),0)  from shop_order where user_id = #{userId} and order_status in (4,5)
 	</select>
 
 	<select id="countBuyZdcp" resultType="java.lang.Integer">
 		select count(*) from shop_order a
 						  left join shop_order_details b on a.id=b.order_id
-		where a.user_id=#{openId}
+		where a.user_id=#{userId}
 		  and  order_status in (4,5)
 		  and find_in_set(b.p_id,#{productIds})
 	</select>
 
 
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1