/** 保存更新对象 */ public String update() { long theuserid = Utils.getSessionUserId(getRequest()); if (theuserid >= 0) { klShoppingCarthistory.setModifyuser(theuserid); } klShoppingCarthistory.setModifytimelong(System.currentTimeMillis()); klShoppingCarthistoryManager.update(this.klShoppingCarthistory); if ("ajax".equalsIgnoreCase(Utils.getParam(getRequest(), "ajax"))) { Map map = new HashMap(); map.put("obj", klShoppingCarthistory); return writeAjaxResponse(Json.toJson(map)); } else { return OK_JSP; } }