From 4bca470690b164988e15be8f3002adff21372b54 Mon Sep 17 00:00:00 2001 From: zpl Date: Tue, 24 Aug 2021 09:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equip/service/impl/ResourceInspectPlanServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) 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);