会员列表接口修改
This commit is contained in:
@@ -31,15 +31,22 @@
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectVipCard" resultType="com.czg.account.dto.shopuser.ShopUserVipCardDTO">
|
||||
select b.logo, b.shop_name shopName, a.amount, a.shop_id shopId
|
||||
from tb_shop_user as a
|
||||
left join tb_shop_info as b on a.shop_id = b.id
|
||||
where a.user_id = #{userInfoId}
|
||||
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
|
||||
left join tb_shop_info on tb_shop_user.shop_id = tb_shop_info.id
|
||||
${qwSql}
|
||||
limit ${pageOffset}, ${pageSize}
|
||||
</select>
|
||||
<select id="selectVipCard_COUNT" resultType="com.czg.account.dto.shopuser.ShopUserVipCardDTO">
|
||||
select count(1)
|
||||
from tb_shop_user
|
||||
left join tb_shop_info on tb_shop_user.shop_id = tb_shop_info.id
|
||||
${qwSql}
|
||||
</select>
|
||||
<select id="selectAssetsSummary" resultType="com.czg.account.dto.user.userinfo.UserInfoAssetsSummaryDTO">
|
||||
select sum(IFNULL(b.amount, 0)) as amount,
|
||||
sum(IFNULL(b.account_points, 0)) as points,
|
||||
sum(IFNULL(c.id, 0)) as couponNum
|
||||
sum(IFNULL(c.id, 0)) as couponNum
|
||||
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
|
||||
@@ -57,4 +64,5 @@
|
||||
from tb_user_info
|
||||
left join tb_shop_user on tb_user_info.id = tb_shop_user.user_id ${qwSql}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user