Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ehBeak committed Nov 16, 2023
1 parent 552e2e0 commit 0504e19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public class UserSettlementResponse {
public UserSettlementResponse(UserSettlementCommand command) {
this.id = command.getId();
this.name = command.getName();
this.isSettlementSender = command.getIsSettlementSender();
// this.isSettlementSender = command.getIsSettlementSender();
this.isSettlementSender = false;
this.settlementAmount = command.getSettlementAmount().setScale(0, RoundingMode.FLOOR);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public UserSettlementCommand(Long id, String name, BigDecimal realExpense, BigDe
this.name = name;
this.realExpense = realExpense;
this.ratioExpense = ratioExpense;
this.isSettlementSender = realExpense.compareTo(ratioExpense) < 0; // realExpense < ratioExpense : 보내는 사람
// this.isSettlementSender = realExpense.compareTo(ratioExpense) < 0; // realExpense < ratioExpense : 보내는 사람
this.isSettlementSender = false; // realExpense < ratioExpense : 보내는 사람
this.settlementAmount = realExpense.subtract(ratioExpense).abs();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public HouseholdSettlementCommand getRoommateSettlement(String userEmail, LocalD

}

System.out.println("settlements.size() = " + settlements.size());
System.out.println("settlements.size() = " + settlements.size()); // 여기에 값이 없음.

List<SettlementCommand> filteredSettlements = settlements.stream()
.filter(settlement -> {
Expand Down

0 comments on commit 0504e19

Please sign in to comment.