|
@@ -188,6 +188,7 @@ public class ContractMaterialAdjustServiceImpl extends BaseServiceImpl<ContractM
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public void delete(Long id) {
|
|
|
//获取调差信息,判断是否已经审批
|
|
|
ContractMaterialAdjust adjust = this.getById(id);
|
|
@@ -203,6 +204,8 @@ public class ContractMaterialAdjustServiceImpl extends BaseServiceImpl<ContractM
|
|
|
throw new ServiceException("删除失败,当前计量期不是未上报状态");
|
|
|
}
|
|
|
this.removeById(id);
|
|
|
+ adjustDetailService.remove(new LambdaQueryWrapper<ContractMaterialAdjustDetail>()
|
|
|
+ .eq(ContractMaterialAdjustDetail::getMaterialAdjustId,id));
|
|
|
|
|
|
}
|
|
|
|