userInfo返回字段修改

This commit is contained in:
张松 2025-03-27 10:14:16 +08:00
parent e26b2ee5e5
commit 3aa7f6baf8
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public class UserInfoAssetsSummaryDTO {
/**
* 总积分
*/
private Integer points;
private Integer accountPoints;
/**
* 可使用优惠券数量
*/

View File

@ -41,7 +41,7 @@
<select id="selectAssetsSummary" resultType="com.czg.account.dto.user.userinfo.UserInfoAssetsSummaryDTO">
SELECT
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
FROM tb_shop_user AS b
LEFT JOIN tb_shop_activate_coupon_record AS c