|
@@ -67,11 +67,14 @@ public class BizDeductionServiceImpl extends ServiceImpl<BizDeductionMapper, Biz
|
|
|
|
|
|
private boolean updateById(BizDeduction deduction, List<SysFileStorage> files) {
|
|
|
boolean result = super.updateById(deduction);
|
|
|
+ if(!result){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
SysFileStorage delConditions = new SysFileStorage();
|
|
|
delConditions.setMasterTableName("biz_deduction");
|
|
|
delConditions.setMasterId(deduction.getId());
|
|
|
fileStorageService.physicalDelete(delConditions);
|
|
|
- result = result && fileStorageService.saveBatch(files);
|
|
|
+ result = fileStorageService.saveBatch(files);
|
|
|
return result;
|
|
|
}
|
|
|
|