fix: 购物车角标数量修复
This commit is contained in:
parent
4955db3333
commit
cff2c0e38a
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue