http配置表单界面参数处理优化,参数文件与数据库字典配合使用。

Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
zhangwei
2018-06-12 10:10:41 +08:00
parent 2819ef14e2
commit 601c4d686f
3 changed files with 40 additions and 13 deletions

View File

@@ -92,6 +92,14 @@ public class WebsiteController extends BaseController{
resBodyCfg.setCfgType(Constants.HTTP_RES_BODY_REGION);
entity.setHttpResBody(resBodyCfg);
int httpReqCfgNum = entity.getIpPortList().size()+
entity.getHttpUrlList().size()+
entity.getHttpReqBodyList().size()+
entity.getHttpReqHdrList().size();
int httpResCfgNum = entity.getHttpResHdrList().size()+
entity.getHttpResBodyList().size();
model.addAttribute("httpReqCfgNum", httpReqCfgNum);
model.addAttribute("httpResCfgNum", httpResCfgNum);
if(entity.getIpPortList().size()==0){
entity.getIpPortList().add(ipCfg);
}