购物车只查询当天购物车,规格增加销量

This commit is contained in:
19991905653
2024-04-01 16:18:27 +08:00
parent bebbd8c3c3
commit 03a447d95b
6 changed files with 16 additions and 5 deletions

View File

@@ -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,

View File

@@ -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 !=''">