修复取消审核不往maat发送的bug

This commit is contained in:
wangxin
2018-07-09 10:57:00 +08:00
parent 13833a65d7
commit f75b25502e

View File

@@ -252,8 +252,8 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
throw e; throw e;
} }
} }
}else if(cfg.getIsAudit()==Constants.AUDIT_NOT_YET){ }else if(cfg.getIsAudit()==Constants.AUDIT_NOT_YES){
if(Constants.DROP_ACTION==cfg.getAction()||Constants.LOOP_ACTION==cfg.getAction()){ if(maatType==Constants.CALLBACK_TYPE){
List<InlineIp> ipList=new ArrayList<>(); List<InlineIp> ipList=new ArrayList<>();
InlineIp ip=convertCallBackIp(cfg,null); InlineIp ip=convertCallBackIp(cfg,null);
ipList.add(ip); ipList.add(ip);
@@ -269,7 +269,7 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
logger.info("IP配置取消配置失败"); logger.info("IP配置取消配置失败");
throw e; throw e;
} }
}else{ }else if(maatType==Constants.MAAT_TYPE){
maatCfg.setCompileId(cfg.getCompileId()); maatCfg.setCompileId(cfg.getCompileId());
maatCfg.setServiceId(cfg.getServiceId()); maatCfg.setServiceId(cfg.getServiceId());
maatCfg.setIsValid(0);//无效 maatCfg.setIsValid(0);//无效