From 09c7256013f61cd5a9c9342d0bdcbcef3305aa57 Mon Sep 17 00:00:00 2001 From: eunhee Date: Thu, 16 Nov 2023 03:43:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/GetHouseholdSettlementService.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/connect/accountApp/domain/settlement/application/service/GetHouseholdSettlementService.java b/src/main/java/com/connect/accountApp/domain/settlement/application/service/GetHouseholdSettlementService.java index 9307403..d576d66 100644 --- a/src/main/java/com/connect/accountApp/domain/settlement/application/service/GetHouseholdSettlementService.java +++ b/src/main/java/com/connect/accountApp/domain/settlement/application/service/GetHouseholdSettlementService.java @@ -73,6 +73,14 @@ public HouseholdSettlementCommand getRoommateSettlement(String userEmail, LocalD // 1. 먼저 같은 얘들은 빼기 findEqualSettlement(keySetDesc, keySetAsc, creditorMap, debtorMap, settlements); + for (Long hi : creditorMap.keySet()) { + System.out.println("creditor " + creditorMap.get(hi)); + } + + for (Long hi : debtorMap.keySet()) { + System.out.println("debtor " + debtorMap.get(hi)); + } + //2. 제일 큰 얘들부터 비교해가며 빼주기 for (int i = 0; i < keySetDesc.size(); i++) { @@ -109,6 +117,7 @@ public HouseholdSettlementCommand getRoommateSettlement(String userEmail, LocalD .equals(user.getUserId()); }).toList(); + System.out.println("size " + filteredSettlements.size()); boolean isSender;