fix: 购物车角标数量修复

This commit is contained in:
张松 2024-12-16 16:41:02 +08:00
parent 4955db3333
commit cff2c0e38a
1 changed files with 4 additions and 2 deletions

View File

@ -537,9 +537,11 @@
shop_id = #{shopId}
AND product_id = #{productId}
AND `status` = 'create'
AND created_at > DATE_SUB(NOW(), INTERVAL 1 DAY)
AND created_at > UNIX_TIMESTAMP(NOW() - INTERVAL 1 DAY) * 1000
AND (master_id = #{masterId} OR master_id IS NULL)
and table_id = #{tableId}
<if test="table_id != null and table_id != ''">
and table_id = #{tableId}
</if>
AND use_type = #{useType}
group by shop_id,product_id
</select>