/**
   * 语言难度查询
   *
   * @param model
   * @param request
   * @param response
   * @return
   */
  @RequestMapping("dogloballanguagelist")
  public String doGlobalLanguageList(
      Model model, HttpServletRequest request, HttpServletResponse response) {
    int state = 0;
    String memo = "";
    try {

      String id = (String) request.getParameter("id");
      //			String status=(String)request.getParameter("status");
      String cIndex = request.getParameter("index");

      request.setAttribute("id", id);
      //			request.setAttribute("status", status);

      GlobalLanguage GlobalLanguage = new GlobalLanguage();
      //			if(CollectionUtil.checkNull(status) && !"all".equals(status)){
      //				GlobalLanguage.setStatus(status);
      //			}
      if (CollectionUtil.checkNull(id)) {
        GlobalLanguage.setId(id);
      }

      // 当前页数
      int currentIndex = 1;
      if (CollectionUtil.checkNull(cIndex)) {
        currentIndex = Integer.parseInt(cIndex);
      }
      request.setAttribute("index", currentIndex);
      // url
      String url = "/globallanguage/dogloballanguagelist?id=" + id;
      // 总行数
      int dataCount = this.globalLanguageService.findGlobalLanguageCount(GlobalLanguage);
      // 获得该页集合
      List<GlobalLanguage> GlobalLanguageList =
          this.globalLanguageService.findGlobalLanguageList(
              GlobalLanguage, (currentIndex - 1) * PageUtil.PAGECOUNT, PageUtil.PAGECOUNT);
      // 获取翻页拼接html
      String pageinfo = PageUtil.pageUtil(dataCount, currentIndex, url, request);
      request.setAttribute("pageinfo", pageinfo);

      if (GlobalLanguageList != null && GlobalLanguageList.size() > 0) {
        request.setAttribute("globallanguageList", GlobalLanguageList);
      }

      // 记录日志
      memo += "语言难度查询";
      state = 1;
      this.adminLogService.addAdminLog(Constant.log_qjpz, memo, state, request);

    } catch (Exception e) {
      memo += "语言难度查询,异常:" + e.getMessage();
      logger.error(memo, e);
      this.adminLogService.addAdminLog(Constant.log_qjpz, memo, state, request);
    }
    return "function/config/globallanguage/global_language_list";
  }
  /**
   * 广告图模块查询
   *
   * @param model
   * @param request
   * @param response
   * @return
   */
  @RequestMapping("dobigeyemodulelist")
  public String doBigeyeModuleList(
      Model model, HttpServletRequest request, HttpServletResponse response) {
    int state = 0;
    String memo = "";
    try {

      String module_id = (String) request.getParameter("module_id");
      String status = (String) request.getParameter("status");
      String cIndex = request.getParameter("index");

      request.setAttribute("module_id", module_id);
      request.setAttribute("status", status);

      BigeyeModule BigeyeModule = new BigeyeModule();
      if (CollectionUtil.checkNull(status) && !"all".equals(status)) {
        BigeyeModule.setStatus(status);
      }
      if (CollectionUtil.checkNull(module_id)) {
        BigeyeModule.setModule_id(module_id);
      }

      // 当前页数
      int currentIndex = 1;
      if (CollectionUtil.checkNull(cIndex)) {
        currentIndex = Integer.parseInt(cIndex);
      }
      request.setAttribute("index", currentIndex);
      // url
      String url = "/bigeyemodule/dobigeyemodulelist?status=" + status + "&module_id=" + module_id;
      // 总行数
      int dataCount = this.bigeyeModuleService.findBigeyeModuleCount(BigeyeModule);
      // 获得该页集合
      List<BigeyeModule> BigeyeModuleList =
          this.bigeyeModuleService.findBigeyeModuleList(
              BigeyeModule, (currentIndex - 1) * PageUtil.PAGECOUNT, PageUtil.PAGECOUNT);
      // 获取翻页拼接html
      String pageinfo = PageUtil.pageUtil(dataCount, currentIndex, url, request);
      request.setAttribute("pageinfo", pageinfo);

      if (BigeyeModuleList != null && BigeyeModuleList.size() > 0) {
        request.setAttribute("bigeyemoduleList", BigeyeModuleList);
      }

      // 记录日志
      memo += "广告图模块查询";
      state = 1;
      this.adminLogService.addAdminLog(Constant.log_dyzgl, memo, state, request);

    } catch (Exception e) {
      memo += "广告图模块查询,异常:" + e.getMessage();
      logger.error(memo, e);
      this.adminLogService.addAdminLog(Constant.log_dyzgl, memo, state, request);
    }
    return "function/bigeye/bigeye_module_list";
  }
  /**
   * 帖子类型查询
   *
   * @param model
   * @param request
   * @param response
   * @return
   */
  @RequestMapping("dotopictypelist")
  public String doTopicTypeList(
      Model model, HttpServletRequest request, HttpServletResponse response) {
    int state = 0;
    String memo = "";
    try {

      String id = (String) request.getParameter("id");
      String status = (String) request.getParameter("status");
      String cIndex = request.getParameter("index");

      request.setAttribute("id", id);
      request.setAttribute("status", status);

      TopicType topicType = new TopicType();
      if (CollectionUtil.checkNull(status) && !"all".equals(status)) {
        topicType.setStatus(status);
      }
      if (CollectionUtil.checkNull(id)) {
        topicType.setId(id);
      }

      // 当前页数
      int currentIndex = 1;
      if (CollectionUtil.checkNull(cIndex)) {
        currentIndex = Integer.parseInt(cIndex);
      }
      request.setAttribute("index", currentIndex);
      // url
      String url = "/topictype/dotopictypelist?status=" + status + "&id=" + id;
      // 总行数
      int dataCount = this.topicTypeService.findTopicTypeCount(topicType);
      // 获得该页集合
      List<TopicType> topicTypeList =
          this.topicTypeService.findTopicTypeList(
              topicType, (currentIndex - 1) * PageUtil.PAGECOUNT, PageUtil.PAGECOUNT);
      // 获取翻页拼接html
      String pageinfo = PageUtil.pageUtil(dataCount, currentIndex, url, request);
      request.setAttribute("pageinfo", pageinfo);

      if (topicTypeList != null && topicTypeList.size() > 0) {
        request.setAttribute("topicTypeList", topicTypeList);
      }

      // 记录日志
      memo += "帖子类型查询";
      state = 1;
      this.adminLogService.addAdminLog(Constant.log_tzgl, memo, state, request);

    } catch (Exception e) {
      memo += "帖子类型查询,异常:" + e.getMessage();
      logger.error(memo, e);
      this.adminLogService.addAdminLog(Constant.log_tzgl, memo, state, request);
    }
    return "function/topic/topic_type_list";
  }