ADMIN_SALARY类型更改
This commit is contained in:
parent
7063e0cc8b
commit
f8673b3e6b
@ -104,7 +104,7 @@ public class SalaryExchangeGoldCmdExe {
|
|||||||
String key = "USEGold:" + cmd.getReqUserId();
|
String key = "USEGold:" + cmd.getReqUserId();
|
||||||
ResponseAssert.isTrue(CommonErrorCode.REQUEST_LIMITING, redisService.lock(key, 60));
|
ResponseAssert.isTrue(CommonErrorCode.REQUEST_LIMITING, redisService.lock(key, 60));
|
||||||
|
|
||||||
BigDecimal balance = salaryAccountGateway.getAvailableBalance(cmd.getReqUserId(), SalaryType.BD_SALARY).getDollarAmount();
|
BigDecimal balance = salaryAccountGateway.getAvailableBalance(cmd.getReqUserId(), SalaryType.of(cmd.getSalaryType())).getDollarAmount();
|
||||||
ResponseAssert.isFalse(WalletErrorCode.INSUFFICIENT_BALANCE,
|
ResponseAssert.isFalse(WalletErrorCode.INSUFFICIENT_BALANCE,
|
||||||
!ArithmeticUtils.gte(balance, cmd.getAmount()));
|
!ArithmeticUtils.gte(balance, cmd.getAmount()));
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,7 @@ public class SalaryTransferGoldCmdExe {
|
|||||||
String key = "USTransferGold:" + cmd.requiredReqUserId();
|
String key = "USTransferGold:" + cmd.requiredReqUserId();
|
||||||
ResponseAssert.isTrue(CommonErrorCode.REQUEST_LIMITING, redisService.lock(key, 60));
|
ResponseAssert.isTrue(CommonErrorCode.REQUEST_LIMITING, redisService.lock(key, 60));
|
||||||
|
|
||||||
BigDecimal balance = salaryAccountGateway.getAvailableBalance(cmd.getReqUserId(), SalaryType.BD_SALARY).getDollarAmount();
|
BigDecimal balance = salaryAccountGateway.getAvailableBalance(cmd.getReqUserId(), SalaryType.of(cmd.getSalaryType())).getDollarAmount();
|
||||||
|
|
||||||
ResponseAssert.isTrue(WalletErrorCode.INSUFFICIENT_BALANCE,
|
ResponseAssert.isTrue(WalletErrorCode.INSUFFICIENT_BALANCE,
|
||||||
ArithmeticUtils.gte(balance, cmd.getAmount()));
|
ArithmeticUtils.gte(balance, cmd.getAmount()));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user