Commit bded5070 authored by renjie's avatar renjie

本地ip bug

parent 168395c9
......@@ -593,9 +593,12 @@ public class IpResourceServiceImpl implements IpResourceService {
ipResourceRepository.save(x);
}
else {
if (x.getStatus() == 0 && x.getStatus() == 1 && x.getStatus() == 2) {
if ((x.getStatus() == 0 || x.getStatus() == 1 || x.getStatus() == 2) && !x.getVendor().equals(Vendor.local)) {
x.setStatus(0);
ipResourceRepository.save(x);
} else if (x.getIpType().equals(IpType.LOCAL) && (x.getStatus() == 1 || x.getStatus() == 2) && x.getAddr().equals("本地Ip未使用") ) {
x.setStatus(4);
ipResourceRepository.save(x);
}
}
}
......
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