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