兑换记录
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
select goods.*, count(record.id) as boughtCount
|
select goods.*, count(record.id) as boughtCount
|
||||||
from mk_points_goods goods
|
from mk_points_goods goods
|
||||||
left join mk_points_goods_record record
|
left join mk_points_goods_record record
|
||||||
on record.points_goods_id = goods.id and record.user_id = #{userId} and record.status != '已退款'
|
on record.points_goods_id = goods.id and record.user_id = #{userId} and record.status != '已退款' and record.is_del = 0
|
||||||
where goods.shop_id = #{shopId}
|
where goods.shop_id = #{shopId}
|
||||||
and goods.del_flag = 0
|
and goods.del_flag = 0
|
||||||
and goods.status = 1
|
and goods.status = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user