去掉website中saveHttpUrlCfgs方法
This commit is contained in:
@@ -192,20 +192,6 @@ public class WebsiteController extends BaseController{
|
|||||||
websiteCfgService.saveHttpCfg(entity);
|
websiteCfgService.saveHttpCfg(entity);
|
||||||
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
||||||
}
|
}
|
||||||
@RequestMapping(value = {"saveHttpUrlCfgs"})
|
|
||||||
public String saveHttpUrlCfgs(RedirectAttributes model,HttpServletRequest request,HttpServletResponse response,CfgIndexInfo entity) {
|
|
||||||
if(!StringUtil.isEmpty(entity) && !StringUtil.isEmpty(entity.getHttpUrlList())){
|
|
||||||
for (HttpUrlCfg httpUrlCfg : entity.getHttpUrlList()) {
|
|
||||||
CfgIndexInfo cfg=new CfgIndexInfo();
|
|
||||||
List httpList=new ArrayList<>();
|
|
||||||
BeanUtils.copyProperties(httpUrlCfg, cfg);
|
|
||||||
httpList.add(httpUrlCfg);
|
|
||||||
cfg.setHttpUrlList(httpList);
|
|
||||||
websiteCfgService.saveHttpCfg(cfg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "redirect:" + adminPath +"/ntc/website/httpList?functionId="+entity.getFunctionId();
|
|
||||||
}
|
|
||||||
@RequestMapping(value = {"ajaxHttpSubList"})
|
@RequestMapping(value = {"ajaxHttpSubList"})
|
||||||
public String ajaxHttpSubList(Model model,Long cfgId,Integer index) {
|
public String ajaxHttpSubList(Model model,Long cfgId,Integer index) {
|
||||||
CfgIndexInfo cfg = websiteCfgService.getHttpCfg(cfgId);
|
CfgIndexInfo cfg = websiteCfgService.getHttpCfg(cfgId);
|
||||||
|
|||||||
Reference in New Issue
Block a user