/**
   * 更新杂志logo
   *
   * @return
   */
  public String updatePublicationLogo() {
    Publisher publisher = this.getSessionPublisher();
    this.publication = publicationService.queryById(publicationId);
    publication.setLogo(
        "/" + publisher.getId() + "/" + publicationId + "/" + logoFileName); // 杂志logo
    publicationService.updateByIdAndPublisherId(publication);
    // 将文件拷贝到url
    this.jsonResult =
        publicationService.savePublicationLogo(
            publisher.getId(), publicationId, this.logoFileName, x, y, width, height);

    return JSON;
  }
  public String doPojoJson() {
    this.jsonResult = new JsonResult();
    this.jsonResult.setCode(JsonResult.CODE.FAILURE);
    this.jsonResult.setMessage(JsonResult.MESSAGE.FAILURE);
    // 如果是出版商检验其权利 begin
    Publisher pu = this.getSessionPublisher();
    boolean checkUser = false;
    if (pu != null) { // 出版商用户
      List<Publication> tpList = publicationService.queryAuditByPublisherId(pu.getId());
      if (tpList != null) {
        for (Publication puc : tpList) {
          String tempS = puc.getId() + "";
          if (tempS.equals(publicationId + "")) {
            checkUser = true;
          }
        }
      }

      if (!checkUser) {
        this.jsonResult.setMessage("没有权限");
        return JSON;
      }
    }

    // 如果是出版商检验其权利 end
    this.publication = publicationService.queryById(publicationId);
    pcRel = publicationCategoryRelService.getList(publicationId);
    //		this.generateJsonResult(JsonResult.CODE.SUCCESS,
    //                JsonResult.MESSAGE.SUCCESS, "publication", this.publication);

    this.jsonResult.setCode(JsonResult.CODE.SUCCESS);
    this.jsonResult.setMessage(JsonResult.MESSAGE.SUCCESS);
    Map<String, Object> objMap = new HashMap<String, Object>();
    objMap.put("publication", this.publication);
    objMap.put("pcRel", pcRel);
    this.jsonResult.setData(objMap);
    return JSON;
  }