拒绝审核修改

This commit is contained in:
张松 2025-04-16 16:56:38 +08:00
parent c7a05f4e62
commit 73f08a50a8
1 changed files with 17 additions and 7 deletions

View File

@ -890,13 +890,23 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
}
private void backCashAmount(CashOut entity) {
updateByUserId(entity);
UserMoneyDetails userMoneyDetails = new UserMoneyDetails(
entity.getUserId(), entity.getSysUserId(), null, "[提现退款]", 4, 1, 2,
new BigDecimal(entity.getMoney()), "提现失败,自动退款" + entity.getMoney() + "", 1, entity.getId());
userMoneyDetailsService.save(userMoneyDetails);
//归还余额
userMoneyService.updateAmount(1, entity.getUserId(), Convert.toDouble(entity.getMoney()));
if (entity.getUserType() == 2) {
SysUserMoneyDetails details = new SysUserMoneyDetails(
entity.getUserId(), entity.getUserId(), null, "提现失败存入余额", 4, 1, 2,
new BigDecimal(entity.getMoney()), "提现失败存入余额" + entity.getMoney() + "", 1);
sysUserMoneyDetailsService.save(details);
sysUserMoneyService.updateSysMoney(1, entity.getUserId(), Double.parseDouble(entity.getMoney()));
}else {
updateByUserId(entity);
UserMoneyDetails userMoneyDetails = new UserMoneyDetails(
entity.getUserId(), entity.getSysUserId(), null, "[提现退款]", 4, 1, 2,
new BigDecimal(entity.getMoney()), "提现失败,自动退款" + entity.getMoney() + "", 1, entity.getId());
userMoneyDetailsService.save(userMoneyDetails);
//归还余额
userMoneyService.updateAmount(1, entity.getUserId(), Convert.toDouble(entity.getMoney()));
}
}
/**