| | |
| | | <result property="isSelected" column="isSelected" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="cartType" column="cart_type" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | <result property="isSelected" column="isSelected" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="cartType" column="cart_type" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | cart_number, |
| | | isSelected, |
| | | shop_id, |
| | | company_id, |
| | | cart_type |
| | | company_id |
| | | |
| | | </sql> |
| | | |
| | |
| | | #{item.cartNumber}, |
| | | #{item.isSelected}, |
| | | #{item.shopId}, |
| | | #{item.companyId}, |
| | | #{item.cartType} |
| | | #{item.companyId} |
| | | |
| | | </sql> |
| | | |
| | |
| | | and c.company_id = #{record.companyId} |
| | | </if> |
| | | |
| | | <if test="record.cartType != null and record.cartType !='' "> |
| | | and c.cart_type = #{record.cartType} |
| | | </if> |
| | | |
| | | </if> |
| | | |
| | |
| | | |
| | | <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> |
| | | |
| | |
| | | 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> |
| | | |
| | |
| | | <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 锁表查询--> |