提现 bug 修复

This commit is contained in:
GYJ 2025-01-07 09:05:52 +08:00
parent 696ee71b8a
commit 48300f1dac
1 changed files with 3 additions and 2 deletions

View File

@ -554,7 +554,6 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
cashOut.setState(0); cashOut.setState(0);
cashOut.setRate(0.00); cashOut.setRate(0.00);
cashOut.setUserType(1);
cashOut.setCreateAt(DateUtil.now()); cashOut.setCreateAt(DateUtil.now());
cashOut.setWithdrawType(WithdrawTypeEnum.MANUAL.getValue()); cashOut.setWithdrawType(WithdrawTypeEnum.MANUAL.getValue());
@ -703,7 +702,9 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
if (isAgree == 0 && StrUtil.isBlank(cashOut.getRefund())) { if (isAgree == 0 && StrUtil.isBlank(cashOut.getRefund())) {
throw new SqxException("请输入拒绝原因!"); throw new SqxException("请输入拒绝原因!");
} }
CashOut entity = baseMapper.selectOne(new LambdaQueryWrapper<CashOut>().eq(CashOut::getUserId, cashOut.getUserId()).eq(CashOut::getId, cashOut.getId())); CashOut entity = baseMapper.selectOne(new LambdaQueryWrapper<CashOut>()
.eq(CashOut::getUserId, Long.parseLong(cashOut.getUserId().toString()))
.eq(CashOut::getId, cashOut.getId()));
if (entity == null) { if (entity == null) {
throw new SqxException("提现申请不存在!"); throw new SqxException("提现申请不存在!");
} }