diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java index 3acc29fb..8aff0f5a 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceInspectPlanServiceImpl.java @@ -209,6 +209,12 @@ public class ResourceInspectPlanServiceImpl extends ServiceImpl resourceInspectTasks = resourceInspectTaskService.selectList(resourceInspectTask); + if (resourceInspectTasks != null && resourceInspectTasks.size() > 0){ + throw BusinessException.build("当前计划已创建任务,不允许删除!"); + } // 设备清单表数据删除 ResourceInspectResource resourceInspectResource = new ResourceInspectResource(); resourceInspectResource.setResourceInspectPlanBo(handle);