예제 #1
0
  /** 保存更新对象 */
  public String update() {
    long theuserid = Utils.getSessionUserId(getRequest());
    if (theuserid >= 0) {
      cmsRequestlog.setModifyuser(theuserid);
    }
    cmsRequestlog.setModifytimelong(System.currentTimeMillis());

    cmsRequestlogManager.update(this.cmsRequestlog);

    if ("ajax".equalsIgnoreCase(Utils.getParam(getRequest(), "ajax"))) {
      Map map = new HashMap();
      map.put("obj", cmsRequestlog);
      return writeAjaxResponse(Json.toJson(map));
    } else {
      return OK_JSP;
    }
  }