From a17a3616fb0b59d61cda0f97c5005c18d97cdbee Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Mon, 22 Mar 2021 12:46:28 +0800 Subject: [PATCH] 积分商城13 --- 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 2beb6dd..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 cart_type=#{cartType} + 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} and cart_type=#{cartType}; +where c.shop_Id=#{shopId} and p.del_flag = 2 and cart_user_id=#{openId} </select> <!-- 根据id 锁表查询--> -- Gitblit v1.9.1