Skip to content

Commit

Permalink
로그 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
ehBeak committed Nov 15, 2023
1 parent 43b18c3 commit e5e27c7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,20 @@ public HouseholdSettlementCommand getRoommateSettlement(String userEmail, LocalD

List<SettlementCommand> filteredSettlements = settlements.stream()
.filter(settlement -> {
return settlement.getGiverId().equals(user.getUserId()) || settlement.getSenderId().equals(user.getUserId());
System.out.println("settlement.getSenderId() = " + settlement.getSenderId());
System.out.println("settlement.getGiverId() = " + settlement.getGiverId());
System.out.println("settlement.getSettlementAmount() = " + settlement.getSettlementAmount());
return (settlement.getGiverId().equals(user.getUserId()) || settlement.getSenderId().equals(user.getUserId()));
}).toList();

System.out.println("size " + filteredSettlements.size());

boolean isSender;

System.out.println(" =========");
if (filteredSettlements.get(0).getSenderId().equals(user.getUserId())) {
if (filteredSettlements.isEmpty()) {
isSender = false;
} else if (filteredSettlements.get(0).getSenderId().equals(user.getUserId())) {
isSender = true;
} else {
isSender = false;
Expand Down

0 comments on commit e5e27c7

Please sign in to comment.