cloudroam
2024-11-01 381afd9e82b6e8610aeb00b8d4c0ff138195bb2d
src/main/java/com/mzl/flower/service/impl/wallet/WalletWithdrawRecordServiceImpl.java
@@ -188,6 +188,7 @@
    public void updateWallet(WalletWithdrawRecordDTO walletWithdrawRecordDTO) {
        WalletWithdrawRecordDO withdrawRecordDO = walletWithdrawRecordMapper.selectById(walletWithdrawRecordDTO.getId());
        final String approveState = withdrawRecordDO.getApproveState();
        if (withdrawRecordDO == null) {
            throw new ValidationException("提现记录信息不存在");
        }
@@ -219,7 +220,7 @@
            try {
                if (recordLock.tryLock(10, 30, TimeUnit.SECONDS)) {
                    try {
                        if(!walletWithdrawRecordDTO.getApproveState().equals(Constants.WALLET_APPROVE_STATE.WAITING)){
                        if(!approveState.equals(Constants.WALLET_APPROVE_STATE.WAITING.name())){
                            String msg =  "重复通过";
                            throw new ValidationException(msg);
                        }