优惠券记录 状态

This commit is contained in:
wangw 2025-03-05 17:21:09 +08:00
parent 9153cd6c6d
commit 74ffcb53ed
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
from tb_user_info as a
left join tb_shop_user as b on a.id = b.user_id
left join tb_shop_activate_coupon_record as c
on c.shop_id = b.shop_id and c.shop_user_id = b.id and c.`status` = 'used'
on c.shop_id = b.shop_id and c.shop_user_id = b.id and c.`status` = 1
where a.id = #{userId}
</select>
<select id="selectPageByKeyAndIsVip" resultType="com.czg.account.entity.ShopUser">