白名单增加各个操作的定时任务处理;
各种批量操作增加定时任务的处理;
This commit is contained in:
@@ -128,6 +128,8 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
}
|
||||
}
|
||||
}
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(httpUrlCfgs, entity.getTableName());
|
||||
}
|
||||
if(!StringUtil.isEmpty(auditHttpCompileIds)) {
|
||||
commonPolicyDao.auditCfgBatch("cfg_index_info", entity,auditHttpCompileIds,null);
|
||||
@@ -138,6 +140,8 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
commonPolicyDao.deleteHttpUrlCfg("http_url_cfg", entity,deleteHttpCompileIds);
|
||||
}
|
||||
commonPolicyDao.auditCfgBatch( entity.getTableName(), entity,compileIds,null);
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(list, entity.getTableName());
|
||||
}
|
||||
|
||||
if(cfgList!=null){
|
||||
@@ -269,14 +273,26 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
* @param isUpdateCfg
|
||||
* @throws ClassNotFoundException
|
||||
*/
|
||||
public void auditCallBackData(List auditList,List compileIds,List ids,BaseCfg entity){
|
||||
public void auditCallBackData(List auditList,List notAuditList,List compileIds,List ids,BaseCfg entity){
|
||||
long start=System.currentTimeMillis();
|
||||
long end=System.currentTimeMillis();
|
||||
if(!StringUtil.isEmpty(compileIds) && !StringUtil.isEmpty(entity.getTableName())) {
|
||||
commonPolicyDao.auditCfgBatch( "cfg_index_info", entity,compileIds,null);
|
||||
if(entity.getIsAudit()!=1) {
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(auditList, entity.getTableName());
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(notAuditList, entity.getTableName());
|
||||
}
|
||||
}
|
||||
if(!StringUtil.isEmpty(ids) && !StringUtil.isEmpty(entity.getTableName())) {
|
||||
commonPolicyDao.auditCfgBatch( entity.getTableName(), entity,ids,null);
|
||||
if(entity.getIsAudit()!=1) {
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(auditList, entity.getTableName());
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(notAuditList, entity.getTableName());
|
||||
}
|
||||
if(entity.getTableName().equals("pxy_obj_trusted_ca_cert")) {
|
||||
commonPolicyDao.auditCfgBatch("pxy_obj_trusted_ca_crl", entity,ids,null);
|
||||
}
|
||||
@@ -334,6 +350,8 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
// 2.更新配置审核状态(主表)
|
||||
if(!StringUtil.isEmpty(compileIds) && !StringUtil.isEmpty(entity.getTableName())) {
|
||||
commonPolicyDao.auditCfgBatch( entity.getTableName(), entity,compileIds,null); // 批量审核并修改配置审核状态(主表)
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(list, entity.getTableName());
|
||||
}
|
||||
|
||||
// 3.更新域配置审核状态(子表)
|
||||
@@ -364,11 +382,15 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
}else {
|
||||
compileIds.add(cfg.getCompileId());
|
||||
}
|
||||
cfg.setIsValid(-1);
|
||||
cfg.setIsAudit(0);
|
||||
}
|
||||
|
||||
// 2.更新配置状态(主表)
|
||||
if(!StringUtil.isEmpty(compileIds) && !StringUtil.isEmpty(entity.getTableName())) {
|
||||
commonPolicyDao.deleteCfgBatch(entity.getTableName(), entity,compileIds); // 批量修改配置状态(主表)
|
||||
//更新各配置定时任务信息
|
||||
handelScheduleCfg(list, entity.getTableName());
|
||||
}
|
||||
|
||||
// 3.更新域配置状态(子表)
|
||||
|
||||
Reference in New Issue
Block a user