ADMIN_SALARY类型更改

This commit is contained in:
tianfeng 2025-12-12 11:45:11 +08:00
parent 7063e0cc8b
commit f8673b3e6b
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public class SalaryExchangeGoldCmdExe {
String key = "USEGold:" + cmd.getReqUserId();
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,
!ArithmeticUtils.gte(balance, cmd.getAmount()));

View File

@ -83,7 +83,7 @@ public class SalaryTransferGoldCmdExe {
String key = "USTransferGold:" + cmd.requiredReqUserId();
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,
ArithmeticUtils.gte(balance, cmd.getAmount()));