新增会员填充加入会员时间
userInfo增加 储值和优惠卷数 字段
This commit is contained in:
@@ -28,6 +28,15 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<!--查询剩余商品优惠卷数量-->
|
||||
<select id="countCouponNum" resultType="INTEGER">
|
||||
SELECT
|
||||
sum(over_num)
|
||||
FROM
|
||||
tb_activate_in_record record
|
||||
INNER JOIN tb_shop_user vip ON record.vip_user_id = vip.id AND vip.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="queryByVipIdAndShopId" resultType="com.chaozhanggui.system.cashierservice.entity.TbProduct">
|
||||
SELECT
|
||||
tb_product.*, sum(tb_activate_in_record.over_num) as limitNumber
|
||||
|
||||
Reference in New Issue
Block a user