jdbc加入批量插入转换参数rewriteBatchedStatements=true
取消修改基础service中没必要调用的代码
This commit is contained in:
@@ -243,15 +243,18 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
||||
}
|
||||
long end=System.currentTimeMillis();
|
||||
this.save(cfgs);
|
||||
splitAndSend(toAddRegionAsnIpCfgs,Constants.VALID_YES);
|
||||
// splitAndSend(toAddRegionAsnIpCfgs,Constants.VALID_YES);
|
||||
asnIPRegionSendToMaat(toAddRegionAsnIpCfgs,Constants.VALID_YES);
|
||||
cfgs.clear();
|
||||
toAddRegionAsnIpCfgs.clear();
|
||||
}
|
||||
/**
|
||||
* 分割IP region分次下发
|
||||
* 由于在Controller中分割,此方法不需要调用,直接使用asnIPRegionSendToMaat方法即可
|
||||
* @param asnIpCfgs
|
||||
* @param valid
|
||||
*/
|
||||
@Deprecated
|
||||
public void splitAndSend(List<AsnIpCfg> asnIpCfgs,Integer valid){
|
||||
if(asnIpCfgs!=null&&asnIpCfgs.size()>0) {
|
||||
// List<AsnIpCfg> asnIpCfgs=Lists.newArrayList(list.size());
|
||||
@@ -393,7 +396,8 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
||||
}
|
||||
}
|
||||
this.save(entity.getAsnIpCfgs());
|
||||
splitAndSend(entity.getAsnIpCfgs(),Constants.VALID_YES);
|
||||
asnIPRegionSendToMaat(entity.getAsnIpCfgs(),Constants.VALID_YES);
|
||||
// splitAndSend(entity.getAsnIpCfgs(),Constants.VALID_YES);
|
||||
}else {
|
||||
if(entity.getAsnIpCfgs()!=null) {
|
||||
for(AsnIpCfg cfg:entity.getAsnIpCfgs()) {
|
||||
@@ -430,7 +434,8 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
||||
}
|
||||
asnIpCfgDao.delete(ids);
|
||||
//已经下发过的,调用分组复用配置删除接口
|
||||
splitAndSend(issuedList,Constants.VALID_NO);
|
||||
// splitAndSend(issuedList,Constants.VALID_NO);
|
||||
asnIPRegionSendToMaat(issuedList,Constants.VALID_NO);
|
||||
|
||||
}
|
||||
// public List<ConfigGroupInfo> findPolicyGroupInfosByType(Integer groupId) {
|
||||
|
||||
Reference in New Issue
Block a user