...
|
...
|
@@ -173,4 +173,26 @@ public class HostInfoServiceImpl implements IHostInfoService { |
|
|
return new BaseResponse();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public BaseResponse removeByIps(List<String> removeIps) {
|
|
|
BaseResponse resp = new BaseResponse();
|
|
|
String message = "";
|
|
|
if(removeIps != null && removeIps.size() > 0){
|
|
|
for(String ip : removeIps){
|
|
|
try{
|
|
|
hostInfoMapper.deleteByIp(ip);
|
|
|
}catch(Exception e){
|
|
|
logger.error("removeByIps error: ",e);
|
|
|
message = message + "removeByIps error --ip:" +ip + ";";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(!"".equals(message)){
|
|
|
resp.setCode(201);
|
|
|
resp.setMessage(message);
|
|
|
}
|
|
|
return resp;
|
|
|
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|