点检修改

master
zpl 3 years ago
parent 093659ec9d
commit edcd7c3990

@ -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.equals("[")){
throw BusinessException.build("设备编号" + resInfo.append("]") + "已经维护了相同点检类型的点检计划!"); throw BusinessException.build("设备编号" + resInfo.append("]") + "已经维护了相同点检类型的点检计划!");
} }
resourceInspectResourceService.saveBatch(resourceColl); resourceInspectResourceService.saveBatch(resourceColl);

Loading…
Cancel
Save