Skip to content

Commit

Permalink
🚑 최대인원수 기준으로 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Apr 3, 2024
1 parent 188292d commit 9ddb429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/eum/bank/service/DealService.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public Deal rollbackDeal(Long dealId, String accountNumber, String password) {
// 거래 상태가 AFTER_DEAL 일 경우 실제 지원자수 * 예치금만큼 가용금액 플러스
// 거래 상태가 BEFORE_DEAL 일 경우 최대 지원자수 * 예치금만큼 가용금액 플러스
if (deal.getStatus().equals(AFTER_DEAL)) {
accountService.changeAvailableBudget(senderAccount, deal.getDeposit() * deal.getRealPeopleNum(), INCREASE);
accountService.changeAvailableBudget(senderAccount, deal.getDeposit() * deal.getMaxPeopleNum(), INCREASE);
dealReceiverRepository.deleteByDeal(deal);
}else if (deal.getStatus().equals(BEFORE_DEAL)){
accountService.changeAvailableBudget(senderAccount, deal.getDeposit() * deal.getMaxPeopleNum(), INCREASE);
Expand Down

0 comments on commit 9ddb429

Please sign in to comment.