String topicid, @RequestParam("pageNum")
int pageNum, @RequestParam("type")
int type, @RequestParam(value = "modelType", required = false)
int modelType) {
ModelAndView mav = new ModelAndView();
Code refresh = codeService.getCodeGroupInfo(KeyConstant.CODE_MODEL_REFRESH);
if (refresh == null) {
logger.error("系统码:" + KeyConstant.CODE_MODEL_REFRESH + "为空");
errorMav.setErrorInfo("系统码:" + KeyConstant.CODE_MODEL_REFRESH + "为空,请联系管理员添加");
return errorMav;
}
List<Code> refreshList = codeService.getSubCodeByGroupAndParent(refresh.getGroupName(),
refresh.getGroupName());
Code suffix = codeService.getCodeGroupInfo(KeyConstant.CODE_MODEL_SUFFIX);
if (suffix == null) {
logger.error("系统码:" + KeyConstant.CODE_MODEL_SUFFIX + "为空");
errorMav.setErrorInfo("系统码:" + KeyConstant.CODE_MODEL_SUFFIX + "为空,请联系管理员添加");
return errorMav;
}
List<Code> suffixList = codeService.getSubCodeByGroupAndParent(suffix.getGroupName(),
suffix.getGroupName());
Code timeout = codeService.getCodeGroupInfo(KeyConstant.CODE_MODEL_TIMEOUT);
List<Code> timeoutList = codeService.getSubCodeByGroupAndParent(timeout.getGroupName(),
timeout.getGroupName());
mav.addObject("refreshList", refreshList);
mav.addObject("suffixList", suffixList);
mav.addObject("timeoutList",timeoutList);
mav.addObject("topicid", topicid);
mav.addObject("type", type);