设备不能维护同一类型的点检计划

master
zpl 3 years ago
parent d14d4692f0
commit e39e3ac2b3

@ -149,7 +149,7 @@ public class ResourceInspectPlanServiceImpl extends ServiceImpl<ResourceInspectP
equip.setHandle(HandleEnum.RESOURCE_INSPECT_RESOURCE.getHandle(site,handle,resourceHandle)); equip.setHandle(HandleEnum.RESOURCE_INSPECT_RESOURCE.getHandle(site,handle,resourceHandle));
resourceColl.add(equip); resourceColl.add(equip);
} }
if (!resInfo.equals("[")){ if (!resInfo.toString().equals("[")){
throw BusinessException.build("设备编号" + resInfo.append("]") + "已经维护了相同点检类型的点检计划!"); throw BusinessException.build("设备编号" + resInfo.append("]") + "已经维护了相同点检类型的点检计划!");
} }
resourceInspectResourceService.saveBatch(resourceColl); resourceInspectResourceService.saveBatch(resourceColl);

Loading…
Cancel
Save