Commit f95ec053 authored by Administrator's avatar Administrator

Merge branch 'staging' into 'master'

Staging

See merge request !111
parents 240a27eb 61371356
......@@ -511,7 +511,7 @@ public class IpResourceServiceImpl implements IpResourceService {
}
if (ipResource.getStatus() == 6)
ipResourceRepository.delete(ipResource);
else if (ipResource.getStatus() == 3) {
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