Pago-TW / pago-backend

The backend application for Pago, developed using Spring Boot.
0 stars 0 forks source link

[Bug] POST /wallet/withdraw - 未將 bank_account_id 寫入資料庫造成提領成功後,回傳的值有缺 #44

Closed sh1un closed 1 year ago

sh1un commented 1 year ago

Bug Report

Description

如標題所示

Screenshots

Suggested Soulutions

  1. 要把前端傳進來的 bank_account_id 寫入 transaction_record
  2. 有了 bank_account_id 就可以查詢到對應的銀行機構(bankName)、帳號(accountNumber)
  3. 在 TransactionServiceImpl.java 中的 getTransactionRecordResponseDtoByTransactionRecord 方法內,把銀行機構、帳號 set 進去
  4. 注意 TransactionRecordResponseDto.java 要回傳的 Json 結構,應將銀行機構、帳號,放在 deatil 物件內

APIs

Additional context

Add any other context or screenshots about the feature request here.

sh1un commented 1 year ago

@ycday LGTM