调整删除asn ip验证,只有下发过的asn ip需要ajax后台判断。调整ajax判断sql
This commit is contained in:
@@ -178,14 +178,17 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
||||
* @param serviceGroupIds
|
||||
* @return
|
||||
*/
|
||||
public boolean hasLastIp(String serviceGroupIds) {
|
||||
public boolean hasLastIp(String serviceGroupIds,String ids) {
|
||||
// TODO Auto-generated method stub
|
||||
for(String groupId:serviceGroupIds.split(",")) {
|
||||
Long.parseLong(groupId);
|
||||
}
|
||||
List<Integer> countList=asnIpCfgDao.countValidIPs(serviceGroupIds);
|
||||
List<Integer> countList=asnIpCfgDao.countValidIPs(serviceGroupIds,ids);
|
||||
if(countList.size()==0) {
|
||||
return true;
|
||||
}
|
||||
for(Integer count:countList) {
|
||||
if(count==1) {
|
||||
if(count==0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user