Commit bedeb5e7 authored by renjie's avatar renjie

生成专线bug

parent f9987e75
......@@ -31,7 +31,7 @@ public interface IpResourceRepository extends MongoRepository<IpResource, String
List<IpResource> findByOwnerInAndSpecialLine(List<String> owners, boolean specialLine);
List<IpResource> findBySpecialLine(boolean specialLine);
List<IpResource> findByRegionIn(List<String> regions);
List<IpResource> findByRegionInAndIsDeleted(List<String> regions, boolean isDeleted);
List<IpResource> findByStatusAndLockedAndLockTimestampLessThan(int status, boolean locked, long timestamp);
......
......@@ -725,7 +725,7 @@ public class IpResourceServiceImpl implements IpResourceService {
@Override
public void setSpecialLine() {
List<IpResource> ipResources = ipResourceRepository.findByRegionIn(Arrays.asList(
List<IpResource> ipResources = ipResourceRepository.findByRegionInAndIsDeleted(Arrays.asList(
"asiapa",
"hongkong",
"japan",
......@@ -752,7 +752,7 @@ public class IpResourceServiceImpl implements IpResourceService {
"oregon",
"ireland",
"london",
"ireland"));
"ireland"), false);
for (IpResource ipResource : ipResources) {
ipResource.setProxyUsername(ipResource.getAddr());
ipResource.setProxyPassword(genRandom(3, 12));
......
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