提现请求参数增加salaryType字段

This commit is contained in:
tianfeng 2025-12-16 12:16:15 +08:00
parent 483dc922ef
commit d228644efe
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class UserBankWithdrawCmdExe {
String key = "UBWithdraw:" + cmd.requiredReqUserId();
ResponseAssert.isTrue(CommonErrorCode.REQUEST_LIMITING, redisService.lock(key, 60));
SalaryType salaryType = SalaryType.BD_SALARY;
SalaryType salaryType = SalaryType.of(cmd.getSalaryType());
PennyAmount availableBalance = salaryAccountGateway.getAvailableBalance(cmd.getReqUserId(), salaryType);
BigDecimal balance = availableBalance.getDollarAmount();

View File

@ -31,4 +31,6 @@ public class UserBankWithdrawCmd extends AppExtCommand {
@NotNull(message = "acceptBankCardId required.")
private Long acceptBankCardId;
private String salaryType;
}