|
@@ -120,13 +120,14 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
|
|
|
.eq("relation_id", qualityInspectionManagement.getRelationId())
|
|
|
.eq("comp_id", qualityInspectionManagement.getCompId()));
|
|
|
if (weighingManagement==null){
|
|
|
- //删除质检管理信息
|
|
|
- this.deleteById(qualityInspectionManagement.getId());
|
|
|
// weighingManagementService.deleteById(weighingManagement.getId());
|
|
|
}
|
|
|
else{
|
|
|
- throw new YException(YExceptionEnum.WEIGHT_NOT_DELETED_ERROR);
|
|
|
+ weighingManagementService.deleteById(weighingManagement.getId());
|
|
|
+// throw new YException(YExceptionEnum.WEIGHT_NOT_DELETED_ERROR);
|
|
|
}
|
|
|
+ //删除质检管理信息
|
|
|
+ this.deleteById(qualityInspectionManagement.getId());
|
|
|
}
|
|
|
}
|
|
|
/**
|