购物车只查询当天购物车,规格增加销量
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
</select>
|
||||
<select id="selectByMaskerId" resultType="com.chaozhanggui.system.cashierservice.entity.TbCashierCart">
|
||||
select *
|
||||
from tb_cashier_cart where master_id = #{masterId} and shop_id = #{shopId} and status = #{status} order by id desc
|
||||
from tb_cashier_cart where master_id = #{masterId} and shop_id = #{shopId} and status = #{status} and trade_day = #{day} order by id desc
|
||||
</select>
|
||||
<select id="selectCartList" resultType="com.chaozhanggui.system.cashierservice.entity.po.CartPo">
|
||||
select shop_Id as shopId,master_id as masterId,uuid,
|
||||
|
||||
@@ -333,8 +333,11 @@
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByskuId">
|
||||
update tb_product_sku set real_sales_number = real_sales_number + #{num} where id = #{productSkuId}
|
||||
</update>
|
||||
|
||||
<select id="selectByShopIdAndProductIdAndSpec" resultMap="ResultMapWithBLOBs">
|
||||
<select id="selectByShopIdAndProductIdAndSpec" resultMap="ResultMapWithBLOBs">
|
||||
select * from tb_product_sku where shop_id=#{shopId} and product_id=#{productId}
|
||||
|
||||
<if test="spec != null and spec !=''">
|
||||
|
||||
Reference in New Issue
Block a user