|
@@ -339,7 +339,7 @@ public class AccountRunningWaterServiceImpl extends ServiceImpl<AccountRunningWa
|
|
|
|
|
|
@DSTransactional
|
|
@DSTransactional
|
|
@Override
|
|
@Override
|
|
- public void delete(Long id) {
|
|
|
|
|
|
+ public synchronized void delete(Long id) {
|
|
AccountRunningWater accountRunningWater = getById(id);
|
|
AccountRunningWater accountRunningWater = getById(id);
|
|
Assert.notEmpty(accountRunningWater, "获取不到该流水信息");
|
|
Assert.notEmpty(accountRunningWater, "获取不到该流水信息");
|
|
|
|
|
|
@@ -350,6 +350,10 @@ public class AccountRunningWaterServiceImpl extends ServiceImpl<AccountRunningWa
|
|
//操作余额
|
|
//操作余额
|
|
changeRemainder(accountRunningWater);
|
|
changeRemainder(accountRunningWater);
|
|
|
|
|
|
|
|
+ if (ObjectUtil.equals(accountRunningWater.getIsClaim(), 1)) {
|
|
|
|
+ throw new ServiceException("该回款已被确认,禁止删除!");
|
|
|
|
+ }
|
|
|
|
+
|
|
this.removeById(id);
|
|
this.removeById(id);
|
|
}
|
|
}
|
|
|
|
|