From 897d4c1230099f88f44fbe90231445fefdf64fec Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Fri, 1 Nov 2024 15:28:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/service/impl/DcSwitchServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);