提现请求参数增加salaryType字段
This commit is contained in:
parent
483dc922ef
commit
d228644efe
@ -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();
|
||||
|
||||
@ -31,4 +31,6 @@ public class UserBankWithdrawCmd extends AppExtCommand {
|
||||
@NotNull(message = "acceptBankCardId required.")
|
||||
private Long acceptBankCardId;
|
||||
|
||||
private String salaryType;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user