修复http block导出response content字段不统一、http manipulate导出少域问题
This commit is contained in:
@@ -331,8 +331,18 @@ public class HttpRedirectPolicyController extends BaseController {
|
|||||||
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
Page<CfgIndexInfo> page = httpRedirectCfgService.getHttpRedirectList(pageInfo, entity);
|
||||||
ipLists = page.getList();
|
ipLists = page.getList();
|
||||||
}
|
}
|
||||||
|
Integer fucntionId = Integer.parseInt(request.getParameter("functionId"));
|
||||||
|
if(fucntionId==207){
|
||||||
|
for(CfgIndexInfo cfg:ipLists){
|
||||||
|
String userRegion3 = cfg.getUserRegion3();
|
||||||
|
if(!"".equals(userRegion3) && userRegion3 !=null){
|
||||||
|
ProxyFileResponsePageCfg temp = new ProxyFileResponsePageCfg();
|
||||||
|
temp.setCompileId(Integer.parseInt(cfg.getUserRegion3()));
|
||||||
|
List<ProxyFileResponsePageCfg> list = proxyFileResponsePageService.getProxyFileResponsePageCfgList(temp);
|
||||||
|
cfg.setUserRegion2(list.get(0).getFileDesc());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//日志总量
|
//日志总量
|
||||||
List<Map<String,Object>> logTotals=new ArrayList<Map<String,Object>>();
|
List<Map<String,Object>> logTotals=new ArrayList<Map<String,Object>>();
|
||||||
StringBuilder compileIds=new StringBuilder(",");//配置ids
|
StringBuilder compileIds=new StringBuilder(",");//配置ids
|
||||||
|
|||||||
@@ -520,21 +520,16 @@ public class ManipulatPolicyController extends BaseController {
|
|||||||
dataMap.put(entity.getMenuNameCode(), baseLists);
|
dataMap.put(entity.getMenuNameCode(), baseLists);
|
||||||
dataMap.put("NTC_HTTP_URL", httpUrlList);
|
dataMap.put("NTC_HTTP_URL", httpUrlList);
|
||||||
dataMap.put("NTC_HTTP_REQ_HDR", httpReqHdrList);
|
dataMap.put("NTC_HTTP_REQ_HDR", httpReqHdrList);
|
||||||
if (entity.getFunctionId() != 208 && entity.getFunctionId() != 211) {
|
|
||||||
titleList.add("NTC_HTTP_RES_BODY");
|
titleList.add("NTC_HTTP_RES_HDR");
|
||||||
classMap.put("NTC_HTTP_RES_BODY", HttpBodyCfg.class);
|
titleList.add("NTC_HTTP_REQ_BODY");
|
||||||
noExportMap.put("NTC_HTTP_RES_BODY", httpResBodyCfgNoExport);
|
classMap.put("NTC_HTTP_RES_HDR", HttpResHeadCfg.class);
|
||||||
dataMap.put("NTC_HTTP_RES_BODY", httpResBodyList);
|
classMap.put("NTC_HTTP_REQ_BODY", HttpBodyCfg.class);
|
||||||
} else if (entity.getFunctionId() != 211) {
|
noExportMap.put("NTC_HTTP_RES_HDR", httpResHeadCfgNoExport);
|
||||||
titleList.add("NTC_HTTP_RES_HDR");
|
noExportMap.put("NTC_HTTP_REQ_BODY", httpReqBodyCfgNoExport);
|
||||||
titleList.add("NTC_HTTP_REQ_BODY");
|
dataMap.put("NTC_HTTP_RES_HDR", httpResHdrList);
|
||||||
classMap.put("NTC_HTTP_RES_HDR", HttpResHeadCfg.class);
|
dataMap.put("NTC_HTTP_REQ_BODY", httpReqBodyList);
|
||||||
classMap.put("NTC_HTTP_REQ_BODY", HttpBodyCfg.class);
|
|
||||||
noExportMap.put("NTC_HTTP_RES_HDR", httpResHeadCfgNoExport);
|
|
||||||
noExportMap.put("NTC_HTTP_REQ_BODY", httpReqBodyCfgNoExport);
|
|
||||||
dataMap.put("NTC_HTTP_RES_HDR", httpResHdrList);
|
|
||||||
dataMap.put("NTC_HTTP_REQ_BODY", httpReqBodyList);
|
|
||||||
}
|
|
||||||
titleList.add("NTC_UNIVERSAL_IP");
|
titleList.add("NTC_UNIVERSAL_IP");
|
||||||
titleList.add("NTC_SUBSCRIBE_ID");
|
titleList.add("NTC_SUBSCRIBE_ID");
|
||||||
classMap.put("NTC_UNIVERSAL_IP", IpPortCfg.class);
|
classMap.put("NTC_UNIVERSAL_IP", IpPortCfg.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user