diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java index 1d7244fe..1f24b6e8 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcSwitchServiceImpl.java @@ -194,7 +194,7 @@ public class DcSwitchServiceImpl extends ServiceImpl i List dcDeviceId = dcSwitchMapper.getDcDeviceId(deviceIp);//查询设备id DcDevice dcDevice = new DcDevice();//存放设备id if (dcDeviceId.size()>1){ - return AjaxResult.success("设备IP存在冲突,请联系技术人员"); + return AjaxResult.success("设备IP存在冲突"); }else { for (DcDevice dcDeviceValue:dcDeviceId){ dcDevice.setId(dcDeviceValue.getId());//存入设备id @@ -207,11 +207,11 @@ public class DcSwitchServiceImpl extends ServiceImpl i .filter(dcSwitch -> dcSwitch.getDeviceList().contains(deviceIdString)) .findFirst().map(DcSwitch::getSwitchIp).orElse(null); if (StringUtils.isBlank(switchIp)){ //switchIp为空不存在交换机ip - return AjaxResult.success("未查询到相关的二层交换机,请联系技术人员配置"); + return AjaxResult.success("未查询到相关的二层交换机"); } List switchList = dcSwitchMapper.getSwitchName(switchIp); if (switchList.size()!=1){ - return AjaxResult.success("二层交换机IP存在冲突,请联系技术人员"); + return AjaxResult.success("二层交换机IP存在冲突"); }else { for (DcSwitch switchListValue:switchList) { InetAddress newSwitchIp = InetAddress.getByName(switchIp);