2018-08-30 21:21:00 +08:00
|
|
|
|
package com.nis.web.service.basics;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
import java.util.List;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
import java.util.Map.Entry;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
|
2018-10-25 16:44:04 +08:00
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.beust.jcommander.internal.Lists;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.domain.Page;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.domain.SysDataDictionaryItem;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.domain.basics.AsnIpCfg;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.domain.basics.PolicyGroupInfo;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.domain.configuration.CfgIndexInfo;
|
|
|
|
|
|
import com.nis.domain.maat.GroupReuseAddBean;
|
|
|
|
|
|
import com.nis.domain.maat.GroupReuseCfg;
|
|
|
|
|
|
import com.nis.domain.maat.MaatCfg.IpCfg;
|
|
|
|
|
|
import com.nis.domain.maat.MaatCfg.NumBoundaryCfg;
|
|
|
|
|
|
import com.nis.domain.maat.MaatCfg.StringCfg;
|
|
|
|
|
|
import com.nis.domain.maat.ToMaatResult;
|
|
|
|
|
|
import com.nis.domain.specific.ConfigGroupInfo;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.exceptions.MaatConvertException;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.util.ConfigServiceUtil;
|
|
|
|
|
|
import com.nis.util.Constants;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.util.DictUtils;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.web.dao.CrudDao;
|
|
|
|
|
|
import com.nis.web.dao.basics.AsnIpCfgDao;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.web.dao.basics.PolicyGroupInfoDao;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.web.dao.specific.SpecificServiceCfgDao;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
import com.nis.web.security.UserUtils;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
import com.nis.web.service.CrudService;
|
|
|
|
|
|
@Service
|
|
|
|
|
|
public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
private AsnIpCfgDao asnIpCfgDao;
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
private SpecificServiceCfgDao specificServiceCfgDao;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
@Autowired
|
|
|
|
|
|
private PolicyGroupInfoDao policyGroupInfoDao;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @param page
|
|
|
|
|
|
* @param entity
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public Page<AsnIpCfg> findPage(Page<AsnIpCfg> page, AsnIpCfg entity) {
|
|
|
|
|
|
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
|
|
|
|
|
entity.setPage(page);
|
|
|
|
|
|
List<AsnIpCfg> list=asnIpCfgDao.findPage(entity);
|
|
|
|
|
|
page.setList(list);
|
|
|
|
|
|
return page;
|
|
|
|
|
|
}
|
|
|
|
|
|
public AsnIpCfg get(Long id ) {
|
|
|
|
|
|
return asnIpCfgDao.get(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
|
|
|
|
|
public void save(List<AsnIpCfg> entitys){
|
|
|
|
|
|
this.saveBatch(entitys, AsnIpCfgDao.class);
|
|
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
|
|
|
|
|
public void update(AsnIpCfg entity){
|
|
|
|
|
|
Date editTime=new Date();
|
|
|
|
|
|
entity.setEditTime(editTime);
|
|
|
|
|
|
entity.setEditorId(entity.getCurrentUser().getId());
|
|
|
|
|
|
if(entity.getAsnIpGroup()==null) {
|
|
|
|
|
|
throw new RuntimeException("asn group name not found!");
|
|
|
|
|
|
}
|
|
|
|
|
|
ConfigGroupInfo groupInfo=specificServiceCfgDao.getConfigGroupInfoByGroupId(entity.getAsnIpGroup());
|
|
|
|
|
|
if(groupInfo.getIsIssued()==0) {//未下发,可修改
|
|
|
|
|
|
asnIpCfgDao.update(entity);
|
|
|
|
|
|
}else {
|
|
|
|
|
|
throw new RuntimeException("asn group is issued, cannot update asn ip!");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-10-26 18:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
2018-11-05 19:03:15 +08:00
|
|
|
|
public void saveAsnIpBatch(Map<String,List<AsnIpCfg>> cfgs,int total) {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
List<AsnIpCfg> toDelAsnIpCfgs=Lists.newArrayList();
|
|
|
|
|
|
List<AsnIpCfg> toSaveAsnIpCfgs=Lists.newArrayList();
|
|
|
|
|
|
List<SysDataDictionaryItem> isImportAll=DictUtils.getDictList("IS_ASN_IP_IMPORT_ALL");
|
2018-11-05 19:03:15 +08:00
|
|
|
|
List<Integer> idList=ConfigServiceUtil.getId(3, total);
|
|
|
|
|
|
int ind=0;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
for(Entry<String,List<AsnIpCfg>> entry:cfgs.entrySet()) {
|
2018-11-05 16:26:02 +08:00
|
|
|
|
Long asnNo=Long.parseLong(entry.getKey());
|
2018-10-26 18:57:20 +08:00
|
|
|
|
ConfigGroupInfo configGroupInfo=this.getConfigGroupInfoByAsnNo(asnNo);
|
|
|
|
|
|
if(configGroupInfo==null) {//不存在则新增
|
|
|
|
|
|
PolicyGroupInfo info=new PolicyGroupInfo();
|
2018-11-05 16:26:02 +08:00
|
|
|
|
info.setAsnNo(Long.parseLong(entry.getKey()));
|
2018-10-26 18:57:20 +08:00
|
|
|
|
info.setDescription("Create by import excel");
|
|
|
|
|
|
info.setGroupName("Import"+asnNo);
|
|
|
|
|
|
info.setGroupType(4);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
configGroupInfo=this.saveAsnGroup(info);
|
2018-10-26 18:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
for(AsnIpCfg cfg:entry.getValue()) {
|
|
|
|
|
|
cfg.setAsnIpGroup(configGroupInfo.getGroupId());
|
2018-11-05 19:03:15 +08:00
|
|
|
|
cfg.setRegionId(idList.get(ind));
|
2018-10-26 18:57:20 +08:00
|
|
|
|
if(configGroupInfo.getIsIssued()==0)
|
|
|
|
|
|
cfg.setIsValid(Constants.VALID_NO);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
else {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
cfg.setIsValid(Constants.VALID_YES);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
ind++;
|
2018-10-26 18:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
if(isImportAll.get(0).getItemCode().equals("1")) {//全量下发,删除已有的
|
2018-10-30 15:28:11 +08:00
|
|
|
|
if(configGroupInfo.getIsIssued()==1) {//已下发
|
2018-10-26 18:57:20 +08:00
|
|
|
|
List<AsnIpCfg> _toDelAsnIpCfgs=this.getByAsnGroup(configGroupInfo.getGroupId(), configGroupInfo.getAsnId());
|
|
|
|
|
|
toDelAsnIpCfgs.addAll(_toDelAsnIpCfgs);
|
|
|
|
|
|
}
|
|
|
|
|
|
this.deleteByAsnGroup(configGroupInfo.getGroupId(), configGroupInfo.getAsnId());
|
|
|
|
|
|
}
|
|
|
|
|
|
toSaveAsnIpCfgs.addAll(entry.getValue());
|
|
|
|
|
|
}
|
|
|
|
|
|
this.save(toSaveAsnIpCfgs);
|
|
|
|
|
|
if(toDelAsnIpCfgs.size()>0) {
|
|
|
|
|
|
asnIPRegionSendToMaat(toDelAsnIpCfgs,Constants.VALID_NO);
|
|
|
|
|
|
}
|
|
|
|
|
|
if(toSaveAsnIpCfgs.size()>0) {
|
|
|
|
|
|
asnIPRegionSendToMaat(toSaveAsnIpCfgs,Constants.VALID_YES);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* asn ip分组复用新增
|
|
|
|
|
|
* @param asnIpCfgs
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void asnIPRegionSendToMaat(List<AsnIpCfg> asnIpCfgs,Integer valid) {
|
|
|
|
|
|
GroupReuseAddBean maatBean = new GroupReuseAddBean();
|
|
|
|
|
|
List<GroupReuseCfg> groupReuseList=new ArrayList<>();
|
|
|
|
|
|
GroupReuseCfg groupReuseCfg=new GroupReuseCfg();
|
|
|
|
|
|
List<IpCfg> ipRegionList = groupReuseCfgAddRemoveConvert(asnIpCfgs,valid,null);
|
|
|
|
|
|
List<StringCfg> strRegionList = new ArrayList<>();
|
|
|
|
|
|
List<NumBoundaryCfg> numRegionList = new ArrayList<>();
|
|
|
|
|
|
groupReuseCfg.setIpRegionList(ipRegionList);
|
|
|
|
|
|
groupReuseCfg.setStrRegionList(strRegionList);
|
|
|
|
|
|
groupReuseCfg.setNumRegionList(numRegionList);
|
|
|
|
|
|
groupReuseList.add(groupReuseCfg);
|
|
|
|
|
|
maatBean.setGroupReuseCfgList(groupReuseList);
|
|
|
|
|
|
maatBean.setAuditTime(new Date());
|
|
|
|
|
|
maatBean.setCreatorName(UserUtils.getUser().getName());
|
|
|
|
|
|
maatBean.setVersion(Constants.MAAT_VERSION);
|
|
|
|
|
|
if(valid==Constants.VALID_YES) {
|
|
|
|
|
|
maatBean.setOpAction(Constants.INSERT_ACTION);
|
|
|
|
|
|
//调用服务接口下发配置数据
|
|
|
|
|
|
String json=gsonToJson(maatBean);
|
|
|
|
|
|
logger.info("asn ip复用域新增配置下发配置参数:"+json);
|
|
|
|
|
|
//调用服务接口下发配置
|
|
|
|
|
|
ToMaatResult result =ConfigServiceUtil.postGroupReuseSources(json);
|
|
|
|
|
|
logger.info("asn ip复用域新增配置响应信息:"+result.getMsg());
|
|
|
|
|
|
}else {
|
|
|
|
|
|
maatBean.setOpAction(Constants.UPDATE_ACTION);
|
|
|
|
|
|
//调用服务接口下发配置数据
|
|
|
|
|
|
String json=gsonToJson(maatBean);
|
|
|
|
|
|
logger.info("asn ip复用域删除配置下发配置参数:"+json);
|
|
|
|
|
|
//调用服务接口下发配置
|
|
|
|
|
|
ToMaatResult result = ConfigServiceUtil.put(json,3);
|
|
|
|
|
|
logger.info("asn ip复用域删除配置响应信息:"+result.getMsg());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
2018-11-05 19:03:15 +08:00
|
|
|
|
public ConfigGroupInfo saveAsnGroup(PolicyGroupInfo entity) throws MaatConvertException{
|
2018-10-26 18:57:20 +08:00
|
|
|
|
entity.setIsValid(1);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
ConfigGroupInfo group=new ConfigGroupInfo();
|
2018-10-26 18:57:20 +08:00
|
|
|
|
//新增
|
|
|
|
|
|
Date createTime=new Date();
|
|
|
|
|
|
entity.setCreatorId(UserUtils.getUser().getId());
|
|
|
|
|
|
entity.setCreateTime(createTime);
|
|
|
|
|
|
//asn类型从综合服务获取groupId
|
|
|
|
|
|
if(4==entity.getGroupType().intValue()) {
|
|
|
|
|
|
int serviceGroupId=0;
|
|
|
|
|
|
List<Integer> groupIds= ConfigServiceUtil.getId(2,1);
|
|
|
|
|
|
if(groupIds.size()>0) {
|
|
|
|
|
|
serviceGroupId=groupIds.get(0).intValue();
|
|
|
|
|
|
}else {
|
|
|
|
|
|
throw new MaatConvertException("Get asn group id failed");
|
|
|
|
|
|
}
|
|
|
|
|
|
entity.setServiceGroupId(serviceGroupId);
|
|
|
|
|
|
//新增协议分组
|
|
|
|
|
|
group.setGroupId(serviceGroupId);
|
|
|
|
|
|
group.setGroupName(entity.getGroupName());
|
|
|
|
|
|
group.setIsIssued(0);
|
|
|
|
|
|
group.setGroupType(entity.getGroupType());
|
|
|
|
|
|
group.setAsnId(entity.getAsnNo());
|
|
|
|
|
|
specificServiceCfgDao.insertConfigGroupInfo(group);
|
|
|
|
|
|
policyGroupInfoDao.insert(entity);
|
|
|
|
|
|
}
|
2018-11-05 19:03:15 +08:00
|
|
|
|
return group;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
|
|
|
|
|
public void saveAsnIpCfg(CfgIndexInfo entity) {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
Date createTime=new Date();
|
2018-08-30 21:21:00 +08:00
|
|
|
|
ConfigGroupInfo groupInfo=specificServiceCfgDao.getConfigGroupInfoByGroupId(entity.getAsnIpGroup().intValue());
|
2018-09-27 14:27:47 +08:00
|
|
|
|
if(groupInfo==null) {
|
|
|
|
|
|
throw new RuntimeException("ConfigGroupInfo is null!");
|
|
|
|
|
|
}
|
2018-11-05 19:03:15 +08:00
|
|
|
|
List<Integer> idList=ConfigServiceUtil.getId(3, entity.getAsnIpCfgs().size());
|
|
|
|
|
|
int index=0;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
if(groupInfo.getIsIssued()==1) {//如果已经下发,则需要下到综合服务中
|
|
|
|
|
|
if(entity.getAsnIpCfgs()!=null) {
|
|
|
|
|
|
for(AsnIpCfg cfg:entity.getAsnIpCfgs()) {
|
2018-10-25 16:44:04 +08:00
|
|
|
|
if(StringUtils.isNotBlank(entity.getCfgDesc())) {
|
|
|
|
|
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
|
|
|
|
|
}else {
|
|
|
|
|
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId","cfgDesc"});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-10-26 18:57:20 +08:00
|
|
|
|
cfg.setCreateTime(createTime);
|
2018-08-30 21:21:00 +08:00
|
|
|
|
cfg.setCreatorId(entity.getCurrentUser().getId());
|
|
|
|
|
|
cfg.setAsnIpGroup(entity.getAsnIpGroup());
|
|
|
|
|
|
cfg.setIsValid(Constants.VALID_YES);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
cfg.setRegionId(idList.get(index));
|
|
|
|
|
|
index++;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
this.save(entity.getAsnIpCfgs());
|
2018-10-26 18:57:20 +08:00
|
|
|
|
asnIPRegionSendToMaat(entity.getAsnIpCfgs(),Constants.VALID_YES);
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}else {
|
|
|
|
|
|
if(entity.getAsnIpCfgs()!=null) {
|
|
|
|
|
|
for(AsnIpCfg cfg:entity.getAsnIpCfgs()) {
|
|
|
|
|
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
2018-10-26 18:57:20 +08:00
|
|
|
|
cfg.setCreateTime(createTime);
|
2018-08-30 21:21:00 +08:00
|
|
|
|
cfg.setCreatorId(entity.getCurrentUser().getId());
|
|
|
|
|
|
cfg.setAsnIpGroup(entity.getAsnIpGroup().intValue());
|
|
|
|
|
|
cfg.setIsValid(Constants.VALID_NO);
|
2018-11-05 19:03:15 +08:00
|
|
|
|
cfg.setRegionId(idList.get(index));
|
|
|
|
|
|
index++;
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
this.save(entity.getAsnIpCfgs());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
|
|
|
|
|
public void delete(Integer functionId,Integer isValid,String ids) {
|
|
|
|
|
|
for(String id:ids.split(",")) {
|
|
|
|
|
|
Long.parseLong(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
List<AsnIpCfg> issuedList=new ArrayList<>();
|
|
|
|
|
|
List<AsnIpCfg> asnIpCfgList= asnIpCfgDao.getByIds(ids);
|
|
|
|
|
|
|
|
|
|
|
|
for(AsnIpCfg asnIpCfg:asnIpCfgList) {
|
|
|
|
|
|
if(asnIpCfg.getIsValid()==Constants.VALID_YES) {//代表下发过了
|
|
|
|
|
|
asnIpCfg.setIsValid(isValid);
|
|
|
|
|
|
issuedList.add(asnIpCfg);
|
|
|
|
|
|
Integer groupId=asnIpCfg.getAsnIpGroup();
|
|
|
|
|
|
List result=asnIpCfgDao.findOtherIps(groupId, asnIpCfg.getCfgId().intValue());
|
|
|
|
|
|
if(result==null||result.size()==0) {
|
|
|
|
|
|
throw new RuntimeException("Cant not delete ip from asn group, there is only one ip left in the group!");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if(issuedList.size()>0) {
|
|
|
|
|
|
//已经下发过的,调用分组复用配置删除接口
|
2018-10-26 18:57:20 +08:00
|
|
|
|
asnIPRegionSendToMaat(issuedList,Constants.VALID_NO);
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
asnIpCfgDao.updateValid(isValid, ids);
|
|
|
|
|
|
}
|
2018-10-26 18:57:20 +08:00
|
|
|
|
// public List<ConfigGroupInfo> findPolicyGroupInfosByType(Integer groupId) {
|
|
|
|
|
|
// // TODO Auto-generated method stub
|
|
|
|
|
|
// return asnIpCfgDao.findPolicyGroupInfosByType(groupId);
|
|
|
|
|
|
// }
|
2018-09-03 13:02:24 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 选中组中是否含有只剩一个未删除IP的组
|
|
|
|
|
|
* @param serviceGroupIds
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
2018-09-28 11:49:53 +08:00
|
|
|
|
public boolean hasLastIp(String serviceGroupIds,String ids) {
|
2018-09-03 13:02:24 +08:00
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
for(String groupId:serviceGroupIds.split(",")) {
|
|
|
|
|
|
Long.parseLong(groupId);
|
|
|
|
|
|
}
|
2018-09-28 11:49:53 +08:00
|
|
|
|
List<Integer> countList=asnIpCfgDao.countValidIPs(serviceGroupIds,ids);
|
|
|
|
|
|
if(countList.size()==0) {
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
2018-09-03 13:02:24 +08:00
|
|
|
|
for(Integer count:countList) {
|
2018-09-28 11:49:53 +08:00
|
|
|
|
if(count==0) {
|
2018-09-03 13:02:24 +08:00
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2018-11-05 16:26:02 +08:00
|
|
|
|
public ConfigGroupInfo getConfigGroupInfoByAsnNo(Long asnNo) {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
return asnIpCfgDao.getInfoByAsnNo(asnNo);
|
|
|
|
|
|
}
|
2018-11-05 16:26:02 +08:00
|
|
|
|
public List<AsnIpCfg> getByAsnGroup(Integer groupId,Long asnNo) {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
if(groupId==null||asnNo==null) {
|
|
|
|
|
|
throw new RuntimeException("groupId or asnNo is null!");
|
|
|
|
|
|
}
|
2018-11-05 16:26:02 +08:00
|
|
|
|
return asnIpCfgDao.getByAsnGroup(groupId.longValue(),asnNo.longValue());
|
2018-10-26 18:57:20 +08:00
|
|
|
|
}
|
2018-11-05 16:26:02 +08:00
|
|
|
|
public void deleteByAsnGroup(Integer groupId,Long asnNo) {
|
2018-10-26 18:57:20 +08:00
|
|
|
|
if(groupId==null||asnNo==null) {
|
|
|
|
|
|
throw new RuntimeException("groupId or asnNo is null!");
|
|
|
|
|
|
}
|
2018-11-05 16:26:02 +08:00
|
|
|
|
asnIpCfgDao.deleteByAsnGroup(groupId.longValue(),asnNo.longValue());
|
2018-10-26 18:57:20 +08:00
|
|
|
|
}
|
2018-08-30 21:21:00 +08:00
|
|
|
|
}
|