修复ddos定时任务界面BUG;

修复基础协议定时任务图标不显示bug;
所有业务增加定时任务逻辑

Conflicts:
	src/main/java/com/nis/web/service/configuration/AvContentCfgService.java
This commit is contained in:
duandongmei
2019-04-21 19:02:33 +08:00
parent 7fdd0f7568
commit 3016a82c17
14 changed files with 408 additions and 258 deletions

View File

@@ -305,6 +305,9 @@ public class AppCfgService extends BaseService {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -372,6 +375,10 @@ public class AppCfgService extends BaseService {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -1061,6 +1068,12 @@ public class AppCfgService extends BaseService {
areaIpRegionList = map.get("dstList"); areaIpRegionList = map.get("dstList");
} }
} }
if (isAudit != 1) {
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
// 构造提交综合服务参数格式,一条配置提交一次综合服务 // 构造提交综合服务参数格式,一条配置提交一次综合服务
if (isAudit == 1) { if (isAudit == 1) {
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();
@@ -1853,6 +1866,9 @@ public class AppCfgService extends BaseService {
appCfgDao.updateCfgValid(cfg); appCfgDao.updateCfgValid(cfg);
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }

View File

@@ -124,6 +124,9 @@ public class AvCfgService extends BaseService{
}else{ }else{
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>"); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isAudit==1) { if(isAudit==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -145,6 +148,9 @@ public class AvCfgService extends BaseService{
} }
avCfgDao.updateAvFileSample(entity); avCfgDao.updateAvFileSample(entity);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isAudit==1) { if(isAudit==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -358,6 +364,8 @@ public class AvCfgService extends BaseService{
entity.setEditorId(UserUtils.getUser().getId()); entity.setEditorId(UserUtils.getUser().getId());
entity.setEditTime(new Date()); entity.setEditTime(new Date());
avCfgDao.updateAvFileSampleValid(entity); avCfgDao.updateAvFileSampleValid(entity);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
@@ -368,6 +376,10 @@ public class AvCfgService extends BaseService{
//修改数据库审核状态信息 //修改数据库审核状态信息
avCfgDao.auditAvFileSample(entity); avCfgDao.auditAvFileSample(entity);
List<AvFileSampleCfg> list = new ArrayList<AvFileSampleCfg>(); List<AvFileSampleCfg> list = new ArrayList<AvFileSampleCfg>();
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//一条配置提交一次综合服务 //一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
list.add(entity); list.add(entity);

View File

@@ -211,13 +211,6 @@ public class AvContentCfgService extends BaseService{
entity.setCompileId(compileId); entity.setCompileId(compileId);
entity.setCreateTime(new Date()); entity.setCreateTime(new Date());
entity.setCreatorId(entity.getCurrentUser().getId()); entity.setCreatorId(entity.getCurrentUser().getId());
avContentCfgDao.insertCfgIndexInfo(entity);
/* if(entity.getVoipIps()!=null){
for (AvVoipIpCfg voipIp : entity.getVoipIps()) {
entity.setVoipIp(voipIp);
avContentCfgDao.insertAvVoipIp(entity);
}
}*/
if(entity.getIpPortList()!=null){ if(entity.getIpPortList()!=null){
for(IpPortCfg cfg:entity.getIpPortList()){ for(IpPortCfg cfg:entity.getIpPortList()){
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"}); BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
@@ -249,13 +242,14 @@ public class AvContentCfgService extends BaseService{
logger.info("获取编译ID出错"); logger.info("获取编译ID出错");
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage()); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
auditAvVoip(entity,entity.getIsAudit(), Constants.INSERT_ACTION); auditAvVoip(entity,entity.getIsAudit(), Constants.INSERT_ACTION);
} }
}else{ }else{
entity.setEditTime(new Date()); entity.setEditTime(new Date());
entity.setEditorId(entity.getCurrentUser().getId()); entity.setEditorId(entity.getCurrentUser().getId());
@@ -303,6 +297,8 @@ public class AvContentCfgService extends BaseService{
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -427,6 +423,9 @@ public class AvContentCfgService extends BaseService{
AreaIpCfg areaIpCfg=new AreaIpCfg(); AreaIpCfg areaIpCfg=new AreaIpCfg();
BeanUtils.copyProperties(entity, areaIpCfg); BeanUtils.copyProperties(entity, areaIpCfg);
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg); areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
/** /**
@@ -533,8 +532,10 @@ public class AvContentCfgService extends BaseService{
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();
@@ -1475,6 +1476,8 @@ public class AvContentCfgService extends BaseService{
logger.info("获取编译ID出错"); logger.info("获取编译ID出错");
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage()); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -1521,6 +1524,8 @@ public class AvContentCfgService extends BaseService{
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -1566,6 +1571,9 @@ public class AvContentCfgService extends BaseService{
AreaIpCfg areaIpCfg=new AreaIpCfg(); AreaIpCfg areaIpCfg=new AreaIpCfg();
BeanUtils.copyProperties(entity, areaIpCfg); BeanUtils.copyProperties(entity, areaIpCfg);
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg); areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
/** /**
@@ -1648,7 +1656,10 @@ public class AvContentCfgService extends BaseService{
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();

View File

@@ -170,6 +170,9 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>"); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -237,6 +240,9 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -297,7 +303,8 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
bgpCfgDao.updateCfgValid(cfg); bgpCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -391,6 +398,10 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){

View File

@@ -93,12 +93,12 @@ public class DdosCfgService extends BaseService{
if(ppsThreadshold==null) { if(ppsThreadshold==null) {
entity.setPpsThreadshold(0l); entity.setPpsThreadshold(0l);
} }
entity.setIsValid(0);
entity.setIsAudit(0);
//新增 //新增
if(entity.getCfgId()==null){ if(entity.getCfgId()==null){
entity.setCreatorId(UserUtils.getUser().getId()); entity.setCreatorId(UserUtils.getUser().getId());
entity.setCreateTime(createTime); entity.setCreateTime(createTime);
entity.setIsValid(0);
entity.setIsAudit(0);
if(entity.getCompileId()==null||entity.getCompileId().intValue()==0) { if(entity.getCompileId()==null||entity.getCompileId().intValue()==0) {
//调用服务接口获取compileId //调用服务接口获取compileId
List<Integer> compileIds = new ArrayList<Integer>(); List<Integer> compileIds = new ArrayList<Integer>();
@@ -120,6 +120,8 @@ public class DdosCfgService extends BaseService{
}else { }else {
throw new RuntimeException("Could not get compileId!"); throw new RuntimeException("Could not get compileId!");
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -128,12 +130,12 @@ public class DdosCfgService extends BaseService{
//修改 //修改
}else{ }else{
Date editTime=new Date(); Date editTime=new Date();
entity.setIsValid(0);
entity.setIsAudit(0);
entity.setEditorId(UserUtils.getUser().getId()); entity.setEditorId(UserUtils.getUser().getId());
entity.setEditTime(editTime); entity.setEditTime(editTime);
ddosCfgDao.update(entity); ddosCfgDao.update(entity);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -160,6 +162,8 @@ public class DdosCfgService extends BaseService{
entity.setEditorId(UserUtils.getUser().getId()); entity.setEditorId(UserUtils.getUser().getId());
entity.setEditTime(new Date()); entity.setEditTime(new Date());
ddosCfgDao.update(entity); ddosCfgDao.update(entity);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
/** /**
@@ -288,7 +292,10 @@ public class DdosCfgService extends BaseService{
entity=this.getDdosIpCfg(entity.getCfgId(),entity.getCompileId()); entity=this.getDdosIpCfg(entity.getCfgId(),entity.getCompileId());
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
if(entity.getIsAudit()==1){ if(entity.getIsAudit()==1){
List<DdosIpCfg> ipList=new ArrayList<DdosIpCfg>(); List<DdosIpCfg> ipList=new ArrayList<DdosIpCfg>();
ipList.add(entity); ipList.add(entity);

View File

@@ -483,6 +483,10 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -526,6 +530,8 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -568,12 +574,12 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
public void auditDomainCfg(CfgIndexInfo entity,Integer isAudit,Integer opAction) throws MaatConvertException{ public void auditDomainCfg(CfgIndexInfo entity,Integer isAudit,Integer opAction) throws MaatConvertException{
// TODO Auto-generated method stub
//修改数据库审核状态信息 //修改数据库审核状态信息
entity.setTableName(CfgIndexInfo.getTablename()); entity.setTableName(CfgIndexInfo.getTablename());
entity.setIsAudit(isAudit); entity.setIsAudit(isAudit);
@@ -629,6 +635,10 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){

View File

@@ -172,6 +172,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
logger.info("获取编译ID出错"); logger.info("获取编译ID出错");
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage()); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -228,6 +230,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -276,6 +280,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
fileTransferCfgDao.updateCfgValid(cfg); fileTransferCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
@@ -361,7 +367,10 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();
@@ -485,6 +494,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpCfgDao.saveAreaIpCfg(areaIpCfg); areaIpCfgDao.saveAreaIpCfg(areaIpCfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -553,6 +564,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpCfgDao.deleteAreaIpCfgByCfgId(areaIpCfg); areaIpCfgDao.deleteAreaIpCfgByCfgId(areaIpCfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -585,6 +598,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
,"cfgId" ,"cfgId"
}); });
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg); areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -626,6 +641,10 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
List<NumBoundaryCfg> numRegionList = new ArrayList(); List<NumBoundaryCfg> numRegionList = new ArrayList();
List<DigestCfg> digestRegionList = new ArrayList(); List<DigestCfg> digestRegionList = new ArrayList();
List<IpCfg> areaIpRegionList = new ArrayList(); List<IpCfg> areaIpRegionList = new ArrayList();
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
if(isAudit==1){ if(isAudit==1){
Map<String,List> map = cfgConvert(digestRegionList,list,5,entity,groupRelationList); Map<String,List> map = cfgConvert(digestRegionList,list,5,entity,groupRelationList);
@@ -775,6 +794,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
if(!StringUtil.isEmpty(entity.getIsValid()) && entity.getIsValid()==1) { if(!StringUtil.isEmpty(entity.getIsValid()) && entity.getIsValid()==1) {
isValid=1; isValid=1;
} }
entity.setIsValid(0);
entity.setIsAudit(0);
if(entity.getCfgId()==null){ if(entity.getCfgId()==null){
Integer compileId = 0; Integer compileId = 0;
try { try {
@@ -833,6 +854,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -841,8 +864,6 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
}else{ }else{
// 审核未通过状态的配置 修改后状态改为未审核 // 审核未通过状态的配置 修改后状态改为未审核
entity.setIsValid(0);
entity.setIsAudit(0);
entity.setEditTime(new Date()); entity.setEditTime(new Date());
entity.setEditorId(entity.getCurrentUser().getId()); entity.setEditorId(entity.getCurrentUser().getId());
fileTransferCfgDao.updateCfgIndex(entity); fileTransferCfgDao.updateCfgIndex(entity);
@@ -899,6 +920,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
@@ -955,6 +978,8 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
fileTransferCfgDao.updateCfgValid(cfg); fileTransferCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -1041,7 +1066,10 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();

View File

@@ -205,6 +205,10 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
logger.info("获取编译ID出错"); logger.info("获取编译ID出错");
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage()); throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -284,6 +288,9 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -349,7 +356,8 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
// 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -464,6 +472,11 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
} }
} }
if (isAudit != 1) {
// 处理定时任务【如果有定时任务则删除旧的,新增新的】
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();

View File

@@ -200,6 +200,8 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
@@ -275,6 +277,8 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
@@ -343,7 +347,8 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -484,6 +489,10 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
} }
} }
if (isAudit != 1) {
// 处理定时任务【如果有定时任务则删除旧的,新增新的】
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();

View File

@@ -197,7 +197,7 @@ public class IpCfgService extends CrudService<IpCfgDao, BaseIpCfg> {
} }
} }
// TODO 处理定时任务【如果有定时任务则新增】 //处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity); handelScheduleCfg(entity, entity.getIndexTable(), entity);
if (isValid == 1) { if (isValid == 1) {
@@ -280,7 +280,7 @@ public class IpCfgService extends CrudService<IpCfgDao, BaseIpCfg> {
} }
} }
// TODO 处理定时任务【如果有定时任务则删除旧的,新增新的】 //处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity); handelScheduleCfg(entity, entity.getIndexTable(), entity);
if (isValid == 1) { if (isValid == 1) {
@@ -329,7 +329,7 @@ public class IpCfgService extends CrudService<IpCfgDao, BaseIpCfg> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
ipCfgDao.updateCfgValid(cfg); ipCfgDao.updateCfgValid(cfg);
} }
// TODO 处理定时任务【如果有定时任务则删除旧的,新增新的】 //处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity); handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
@@ -663,7 +663,7 @@ public class IpCfgService extends CrudService<IpCfgDao, BaseIpCfg> {
} }
if (isAudit != 1) { if (isAudit != 1) {
// 处理定时任务【如果有定时任务则删除旧的,新增新的】 // 处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity); handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }

View File

@@ -177,6 +177,9 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -241,6 +244,8 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -288,7 +293,8 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
mailCfgDao.updateCfgValid(cfg); mailCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -373,7 +379,10 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();

View File

@@ -288,6 +288,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -367,7 +369,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -432,7 +435,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -546,7 +550,10 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();
@@ -764,6 +771,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -814,7 +823,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -862,7 +872,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -935,7 +946,10 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){
maatCfg.initDefaultValue(); maatCfg.initDefaultValue();
@@ -1057,6 +1071,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -1110,7 +1126,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpCfgDao.saveAreaIpCfg(cfg); areaIpCfgDao.saveAreaIpCfg(cfg);
} }
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
if(isValid==1) { if(isValid==1) {
entity.setIsAudit(1); entity.setIsAudit(1);
entity.setIsValid(1); entity.setIsValid(1);
@@ -1164,7 +1181,8 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
cfg.setTableName(AreaIpCfg.getTablename()); cfg.setTableName(AreaIpCfg.getTablename());
websiteCfgDao.updateCfgValid(cfg); websiteCfgDao.updateCfgValid(cfg);
} }
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
} }
} }
@@ -1243,6 +1261,10 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
areaIpRegionList=map.get("dstList"); areaIpRegionList=map.get("dstList");
} }
} }
if(isAudit!=1){
//处理定时任务
handelScheduleCfg(entity, entity.getIndexTable(), entity);
}
//构造提交综合服务参数格式,一条配置提交一次综合服务 //构造提交综合服务参数格式,一条配置提交一次综合服务
if(isAudit==1){ if(isAudit==1){

View File

@@ -463,7 +463,7 @@
</td> </td>
<td class="schedulerFlag"> <td class="schedulerFlag">
<c:choose> <c:choose>
<c:when test="${not empty indexCfg.schedule }"> <c:when test="${not empty cfg.schedule }">
<span isScheduler="yes"> <span isScheduler="yes">
<i class="icon-clock icon-state-danger"></i> <i class="icon-clock icon-state-danger"></i>
</span> </span>

View File

@@ -76,7 +76,9 @@ $(function(){
} }
loading('onloading...'); loading('onloading...');
//将disable属性的元素删除 //将disable属性的元素删除
$("#cron.disabled").remove(); $("#cron").find(".disabled").each(function(){
$(this).remove();
});
form.submit(); form.submit();
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",