|
@@ -325,6 +325,12 @@ public class AccountRunningWaterServiceImpl extends ServiceImpl<AccountRunningWa
|
|
|
AccountRunningWater accountRunningWater = getById(id);
|
|
|
Assert.notEmpty(accountRunningWater, "获取不到该流水信息");
|
|
|
|
|
|
+ //如果流水已经被到账认领禁止删除
|
|
|
+ long claimCount = accountService.getClaimCount(id);
|
|
|
+ if(claimCount>0){
|
|
|
+ throw new ServiceException("改流水已被认领,禁止删除!");
|
|
|
+ }
|
|
|
+
|
|
|
//回滚余额 修改操作类型 收入变支出 支出变收入
|
|
|
String status = "10".equals(accountRunningWater.getStatus()) ? "20" : "10";
|
|
|
accountRunningWater.setStatus(status);
|