会员 mainShopId
This commit is contained in:
@@ -8,14 +8,12 @@
|
||||
set amount=amount + #{money},
|
||||
update_time=#{time}
|
||||
where id = #{id}
|
||||
and shop_id = #{shopId}
|
||||
</update>
|
||||
<update id="decrAccount">
|
||||
update tb_shop_user
|
||||
set amount=amount - #{money},
|
||||
update_time=#{time}
|
||||
where id = #{id}
|
||||
and shop_id = #{shopId}
|
||||
and amount - #{money} >= 0
|
||||
</update>
|
||||
|
||||
@@ -30,6 +28,7 @@
|
||||
and a.is_vip=#{isVip}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectVipCard" resultType="com.czg.account.dto.shopuser.ShopUserVipCardDTO">
|
||||
select tb_shop_info.logo, tb_shop_info.shop_name shopName, tb_shop_user.amount, tb_shop_user.shop_id shopId
|
||||
from tb_shop_user
|
||||
|
||||
Reference in New Issue
Block a user