Skip to content

Commit

Permalink
Merge pull request #300 from team9502/dev
Browse files Browse the repository at this point in the history
fix: ์ž”์—ฌ ํฌ์ธํŠธ ์‘๋‹ต๊ฐ’์— ์ถ”๊ฐ€ [๋ฐฐํฌ]
  • Loading branch information
EUNCHAEv1006 authored Jul 3, 2024
2 parents 29697e8 + 3020289 commit 4be718f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ public class PointSummaryResponseDTO {

@Schema(description = "์‚ฌ์šฉํ•œ ํฌ์ธํŠธ")
private int totalUsed;

@Schema(description = "์ž”์—ฌ ํฌ์ธํŠธ")
private int totalBalance;
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public PointSummaryResponseDTO getPointSummary(UserDetailsImpl userDetails) {
.stream()
.mapToInt(UsedPoint::getUpAmount)
.sum();
int totalBalance = point.getPoint();

return new PointSummaryResponseDTO(totalSaved, totalUsed);
return new PointSummaryResponseDTO(totalSaved, totalUsed, totalBalance);
}

@Transactional(readOnly = true)
Expand Down

0 comments on commit 4be718f

Please sign in to comment.