fix(wallet): updateWallet 에서 loanPayment 저장 누락 수정
Deploy / deploy (push) Failing after 14m21s

- 기존 대출 수정 시 월 상환금(loanPayment)이 저장되지 않던 문제
  (create 는 toWallet 로 반영됐으나 update 는 개별 setter 에서 누락)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-07 23:12:10 +09:00
parent ee2bc08b1e
commit ee644515cb
@@ -615,6 +615,7 @@ public class AccountService {
wallet.setLoanMethod(isLoan ? blankToNull(req.getLoanMethod()) : null); wallet.setLoanMethod(isLoan ? blankToNull(req.getLoanMethod()) : null);
wallet.setLoanMonths(isLoan ? req.getLoanMonths() : null); wallet.setLoanMonths(isLoan ? req.getLoanMonths() : null);
wallet.setLoanStart(isLoan ? req.getLoanStart() : null); wallet.setLoanStart(isLoan ? req.getLoanStart() : null);
wallet.setLoanPayment(isLoan ? req.getLoanPayment() : null);
walletMapper.update(wallet); walletMapper.update(wallet);
return WalletResponse.from(wallet, balanceMap(memberId).getOrDefault(id, wallet.getOpeningBalance())); return WalletResponse.from(wallet, balanceMap(memberId).getOrDefault(id, wallet.getOpeningBalance()));
} }