From 512a2f0fb09b663b8de19b5313c8bd5899f4f74b Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 06 Apr 2021 09:44:06 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopOrderV2Dao.xml | 6 +++--- 1 files changed, 3 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 dc2fe96..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,17 +5,17 @@ <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> -- Gitblit v1.9.1