From ff49166608be400f4467bfc8964bee41787bcd6a Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 24 Mar 2021 18:52:40 +0800 Subject: [PATCH] 分销设置自购返佣 --- zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml index 68b9909..4cf0397 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml @@ -130,9 +130,6 @@ and c.company_id = #{record.companyId} </if> - <if test="record.cartType != null and record.cartType !='' "> - and c.cart_type = #{record.cartType} - </if> </if> @@ -223,7 +220,7 @@ <update id="updateAllSelected" > - update shop_shopping_cart set isSelected = #{isSelected} where shop_id=#{shopId} and cart_user_id=#{openId} and art_type=#{artType} + update shop_shopping_cart set isSelected = #{isSelected} where shop_id=#{shopId} and cart_user_id=#{openId} </update> @@ -279,7 +276,8 @@ p.img_mobile, p.img_pc, u.nick_name, - s.NAME + s.NAME, + c.cart_type, from shop_shopping_cart c LEFT JOIN shop_product p ON c.cart_product_id = p.id LEFT JOIN shop_sku s ON c.cart_sku_id = s.id @@ -336,7 +334,10 @@ p.img_pc, p.buy_limit, s.NAME, - s.stock + s.stock, + s.score_count, + s.score_price, + c.cart_type from shop_shopping_cart c LEFT JOIN shop_product p ON c.cart_product_id = p.id LEFT JOIN shop_sku s ON c.cart_sku_id = s.id @@ -345,7 +346,6 @@ and p.STATUS = 1 and p.del_flag = 2 and c.cart_user_id = #{cartUserId} - and c.cart_type = #{cartType} order by c.create_time desc </select> @@ -363,7 +363,7 @@ <select id="selectUserCartCount" resultType="java.lang.Integer" > select sum(cart_number) from shop_shopping_cart c LEFT JOIN shop_product p on p.id = c.cart_product_id -where c.shop_Id=#{shopId} and p.del_flag = 2 and cart_user_id=#{openId}; +where c.shop_Id=#{shopId} and p.del_flag = 2 and cart_user_id=#{openId} </select> <!-- 根据id 锁表查询--> -- Gitblit v1.9.1