ftp、mail、website三个模块中审核接口调用maat配置接口

This commit is contained in:
duandongmei
2018-06-08 15:21:04 +08:00
parent 00c8c59236
commit 623a1fdd09
3 changed files with 6 additions and 5 deletions

View File

@@ -282,7 +282,7 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
String json=gsonToJson(maatBean); String json=gsonToJson(maatBean);
logger.info("ftp配置下发配置参数"+json); logger.info("ftp配置下发配置参数"+json);
//调用服务接口下发配置 //调用服务接口下发配置
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json); ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
logger.info("ftp配置下发响应信息"+result.getMsg()); logger.info("ftp配置下发响应信息"+result.getMsg());
}else if(isAudit==3){ }else if(isAudit==3){

View File

@@ -307,7 +307,7 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
String json=gsonToJson(maatBean); String json=gsonToJson(maatBean);
logger.info("mail配置下发配置参数"+json); logger.info("mail配置下发配置参数"+json);
//调用服务接口下发配置 //调用服务接口下发配置
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json); ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
logger.info("mail配置下发响应信息"+result.getMsg()); logger.info("mail配置下发响应信息"+result.getMsg());
}else if(isAudit==3){ }else if(isAudit==3){

View File

@@ -417,7 +417,7 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
String json=gsonToJson(maatBean); String json=gsonToJson(maatBean);
logger.info("http配置下发配置参数"+json); logger.info("http配置下发配置参数"+json);
//调用服务接口下发配置 //调用服务接口下发配置
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json); ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
logger.info("http配置下发响应信息"+result.getMsg()); logger.info("http配置下发响应信息"+result.getMsg());
}else if(isAudit==3){ }else if(isAudit==3){
@@ -631,7 +631,7 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
String json=gsonToJson(maatBean); String json=gsonToJson(maatBean);
logger.info("ssl配置下发配置参数"+json); logger.info("ssl配置下发配置参数"+json);
//调用服务接口下发配置 //调用服务接口下发配置
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json); ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
logger.info("ssl配置下发响应信息"+result.getMsg()); logger.info("ssl配置下发响应信息"+result.getMsg());
}else if(isAudit==3){ }else if(isAudit==3){
@@ -812,6 +812,7 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
cfg.setTableName(IpPortCfg.getTablename()); cfg.setTableName(IpPortCfg.getTablename());
websiteCfgDao.auditCfg(cfg); websiteCfgDao.auditCfg(cfg);
if(isAudit==1){ if(isAudit==1){
entity.setAreaEffectiveIds("0");
Map<String,List> map = cfgConvert(ipRegionList,entity.getIpPortList(),1,entity,groupRelationList); Map<String,List> map = cfgConvert(ipRegionList,entity.getIpPortList(),1,entity,groupRelationList);
groupRelationList=map.get("groupList"); groupRelationList=map.get("groupList");
ipRegionList=map.get("dstList"); ipRegionList=map.get("dstList");
@@ -868,7 +869,7 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
String json=gsonToJson(maatBean); String json=gsonToJson(maatBean);
logger.info("dns配置下发配置参数"+json); logger.info("dns配置下发配置参数"+json);
//调用服务接口下发配置 //调用服务接口下发配置
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json); ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
logger.info("dns配置下发响应信息"+result.getMsg()); logger.info("dns配置下发响应信息"+result.getMsg());
}else if(isAudit==3){ }else if(isAudit==3){