fix: 购物车角标数量修复
This commit is contained in:
@@ -537,9 +537,11 @@
|
|||||||
shop_id = #{shopId}
|
shop_id = #{shopId}
|
||||||
AND product_id = #{productId}
|
AND product_id = #{productId}
|
||||||
AND `status` = 'create'
|
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 (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}
|
AND use_type = #{useType}
|
||||||
group by shop_id,product_id
|
group by shop_id,product_id
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user