存酒接口

This commit is contained in:
张松 2025-02-27 10:15:17 +08:00
parent 58122a28b5
commit 357fe60a55
1 changed files with 7 additions and 6 deletions

View File

@ -37,12 +37,7 @@
${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,
@ -64,5 +59,11 @@
from tb_user_info
left join tb_shop_user on tb_user_info.id = tb_shop_user.user_id ${qwSql}
</select>
<select id="selectVipCard_COUNT" resultType="java.lang.Long">
select count(1)
from tb_shop_user
left join tb_shop_info on tb_shop_user.shop_id = tb_shop_info.id
${qwSql}
</select>
</mapper>