功能修改

master
zpl 3 years ago
parent 2b99ad1016
commit 4bca470690

@ -209,6 +209,12 @@ public class ResourceInspectPlanServiceImpl extends ServiceImpl<ResourceInspectP
if (inspectPlanById == null){ if (inspectPlanById == null){
throw BusinessException.build("点检计划删除失败!"); throw BusinessException.build("点检计划删除失败!");
} }
ResourceInspectTask resourceInspectTask = new ResourceInspectTask();
resourceInspectTask.setResourceInspectPlanBo(inspectPlanById.getHandle());
List<ResourceInspectTask> resourceInspectTasks = resourceInspectTaskService.selectList(resourceInspectTask);
if (resourceInspectTasks != null && resourceInspectTasks.size() > 0){
throw BusinessException.build("当前计划已创建任务,不允许删除!");
}
// 设备清单表数据删除 // 设备清单表数据删除
ResourceInspectResource resourceInspectResource = new ResourceInspectResource(); ResourceInspectResource resourceInspectResource = new ResourceInspectResource();
resourceInspectResource.setResourceInspectPlanBo(handle); resourceInspectResource.setResourceInspectPlanBo(handle);

Loading…
Cancel
Save