fix: 购物车角标数目不准确修复

This commit is contained in:
张松
2024-12-16 09:32:55 +08:00
parent 331e1ddc00
commit 9543878cd1
3 changed files with 13 additions and 5 deletions

View File

@@ -537,9 +537,10 @@
shop_id = #{shopId}
AND product_id = #{productId}
AND `status` = 'create'
and master_id = #{masterId}
AND created_at > DATE_SUB(NOW(), INTERVAL 1 DAY)
AND (master_id = #{masterId} OR master_id IS NULL)
and table_id = #{tableId}
and trade_day = #{day}
AND use_type = #{useType}
group by shop_id,product_id
</select>