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