Commit faf22d75 authored by renjie's avatar renjie

删除ip bug

parent 8b12e0e8
......@@ -511,7 +511,7 @@ public class IpResourceServiceImpl implements IpResourceService {
}
if (ipResource.getStatus() == 6)
ipResourceRepository.delete(ipResource);
else if (ipResource.getStatus() == 3 && StringUtils.isNotBlank(ipResource.getAddr())) {
else if (StringUtils.isNotBlank(ipResource.getAddr()) && ipResource.getIpType() == IpType.VENDOR) {
ResponseEntity<String> result = restTemplate.exchange(URL + "/intelligroup/ipresources?accountId=browser&ip={ip}",
HttpMethod.DELETE, httpEntity, String.class, ipResource.getAddr());
DeleteIpResultDto deleteIpResultDto = JSON.parseObject(result.getBody(), DeleteIpResultDto.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment