|
@@ -199,7 +199,7 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
|
|
|
|
|
|
List<UserWithdrawal> userWithdrawals = baseMapper.selectList(Wrappers.<UserWithdrawal>lambdaQuery()
|
|
|
.in(UserWithdrawal::getId, ids)
|
|
|
- .ne(UserWithdrawal::getAuthStatus, AuthStatusEnum.DOING));
|
|
|
+ .eq(UserWithdrawal::getAuthStatus, AuthStatusEnum.DOING));
|
|
|
|
|
|
//先判断三方余额是否充足
|
|
|
//总提现金额
|
|
@@ -274,6 +274,15 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
|
|
|
build.setTransNo(transNo.toString());
|
|
|
build.setErrorMsg(withdraw.getMsg());
|
|
|
res = HttpResponseResult.failed("结算" + authOperaReq.getId() + "失败,失败原因:" + withdraw.getMsg());
|
|
|
+
|
|
|
+ //审核不通过,账户解冻
|
|
|
+ UserAccountRecordDto accountRecordDto = new UserAccountRecordDto(
|
|
|
+ build.getUserId(), build.getAmount(), InOrOutEnum.OUT, AccountBizTypeEnum.WITHDRAWAL,
|
|
|
+ build.getId(), "老师结算", null
|
|
|
+ );
|
|
|
+ accountRecordDto.setFrozenType(FrozenTypeEnum.FROZEN_BACK);
|
|
|
+ accountRecordDto.setSaveRecord(false);
|
|
|
+ userAccountService.accountChange(accountRecordDto);
|
|
|
}
|
|
|
} else {
|
|
|
//审核不通过,账户解冻
|