用户接口报错修复
This commit is contained in:
@@ -37,18 +37,24 @@
|
|||||||
where a.user_id = #{userInfoId}
|
where a.user_id = #{userInfoId}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectAssetsSummary" resultType="com.czg.account.dto.user.userinfo.UserInfoAssetsSummaryDTO">
|
<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.over_num, 0)) as couponNum
|
select sum(IFNULL(b.amount, 0)) as amount,
|
||||||
|
sum(IFNULL(b.account_points, 0)) as points,
|
||||||
|
sum(IFNULL(c.over_num, 0)) as couponNum
|
||||||
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_in_record as c on c.shop_id = b.shop_id
|
left join tb_shop_activate_coupon_record as c
|
||||||
where a.id=#{userId}
|
on c.shop_id = b.shop_id and c.vip_user_id = b.id and c.`status` = 'used'
|
||||||
|
where a.id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectPageByKeyAndIsVip" resultType="com.czg.account.entity.ShopUser">
|
<select id="selectPageByKeyAndIsVip" resultType="com.czg.account.entity.ShopUser">
|
||||||
select tb_shop_user.* from tb_user_info
|
select tb_shop_user.*
|
||||||
left join tb_shop_user on tb_user_info.id=tb_shop_user.user_id ${qwSql} limit ${pageOffset}, ${pageSize}
|
from tb_user_info
|
||||||
|
left join tb_shop_user on tb_user_info.id = tb_shop_user.user_id ${qwSql}
|
||||||
|
limit ${pageOffset}, ${pageSize}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectPageByKeyAndIsVip_COUNT" resultType="java.lang.Long">
|
<select id="selectPageByKeyAndIsVip_COUNT" resultType="java.lang.Long">
|
||||||
select count(1) from tb_user_info
|
select count(1)
|
||||||
left join tb_shop_user on tb_user_info.id=tb_shop_user.user_id ${qwSql}
|
from tb_user_info
|
||||||
|
left join tb_shop_user on tb_user_info.id = tb_shop_user.user_id ${qwSql}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user