Exemple #1
0
  public void setIsAttach(String isAttach) {

    if (StringUtil.isEmpty(isAttach)) {
      this.isAttach = "0";
      return;
    }

    if (isAttach.equals("1")) {
      this.isAttach = "1";
    } else {
      this.isAttach = "0";
    }
  }
Exemple #2
0
  public void setIsIndexPic(String isIndexPic) {

    if (StringUtil.isEmpty(isIndexPic)) {
      this.isIndexPic = "0";
      return;
    }

    if (isIndexPic.equals("1")) {
      this.isIndexPic = "1";
    } else {
      this.isIndexPic = "0";
    }
  }
  /**
   * ** 进入添加用户页面
   *
   * @return
   */
  @RequestMapping(value = "/add", method = RequestMethod.GET)
  public String add(
      @ModelAttribute("client") Client client, HttpServletRequest request, Model model) {

    String userId = this.getUserId();
    if (StringUtil.isEmpty(userId)) {
      userId = request.getParameter("owner_user_id");
    }

    model.addAttribute("owner_user_id", userId);

    // 开启modelDriven
    return "front/client/client_info/full/add";
  }
Exemple #4
0
  public static ExhibitionStage getByCode(String code) {

    if (StringUtil.isEmpty(code)) {
      return null;
    }

    ExhibitionStage[] enums = ExhibitionStage.values();

    for (ExhibitionStage exhibitionstage : enums) {
      if (exhibitionstage.getCode().equals(code)) {
        return exhibitionstage;
      }
    }

    return null;
  }