优惠券数量不准确修复
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
<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,
|
select sum(IFNULL(b.amount, 0)) as amount,
|
||||||
sum(IFNULL(b.account_points, 0)) as points,
|
sum(IFNULL(b.account_points, 0)) as points,
|
||||||
sum(IFNULL(c.id, 0)) as couponNum
|
count(c.id) 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_coupon_record as c
|
left join tb_shop_activate_coupon_record as c
|
||||||
|
|||||||
Reference in New Issue
Block a user