userInfo返回字段修改
This commit is contained in:
parent
e26b2ee5e5
commit
3aa7f6baf8
|
|
@ -16,7 +16,7 @@ public class UserInfoAssetsSummaryDTO {
|
||||||
/**
|
/**
|
||||||
* 总积分
|
* 总积分
|
||||||
*/
|
*/
|
||||||
private Integer points;
|
private Integer accountPoints;
|
||||||
/**
|
/**
|
||||||
* 可使用优惠券数量
|
* 可使用优惠券数量
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -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
|
SELECT
|
||||||
IFNULL(SUM(b.amount), 0) AS amount,
|
IFNULL(SUM(b.amount), 0) AS amount,
|
||||||
IFNULL(SUM(b.account_points), 0) AS points,
|
IFNULL(SUM(b.account_points), 0) AS accountPoints,
|
||||||
COUNT(DISTINCT c.id) AS couponNum
|
COUNT(DISTINCT c.id) AS couponNum
|
||||||
FROM tb_shop_user AS b
|
FROM tb_shop_user AS b
|
||||||
LEFT JOIN tb_shop_activate_coupon_record AS c
|
LEFT JOIN tb_shop_activate_coupon_record AS c
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue