优惠券记录 状态
This commit is contained in:
parent
9153cd6c6d
commit
74ffcb53ed
|
|
@ -45,7 +45,7 @@
|
||||||
from tb_user_info as a
|
from tb_user_info as a
|
||||||
left join tb_shop_user as b on a.id = b.user_id
|
left join tb_shop_user as b on a.id = b.user_id
|
||||||
left join tb_shop_activate_coupon_record as c
|
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}
|
where a.id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectPageByKeyAndIsVip" resultType="com.czg.account.entity.ShopUser">
|
<select id="selectPageByKeyAndIsVip" resultType="com.czg.account.entity.ShopUser">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue