/** 保存新增对象 */
  public String save() {
    //		klShoppingCarthistory.setCreateTime(new Date());
    //		klShoppingCarthistory.setDeleted("0");

    long theuserid = Utils.getSessionUserId(getRequest());
    if (theuserid >= 0) {
      klShoppingCarthistory.setModifyuser(theuserid);
    }
    klShoppingCarthistory.setCreatetimelong(System.currentTimeMillis());
    klShoppingCarthistory.setModifytimelong(System.currentTimeMillis());
    klShoppingCarthistory.setStatus(0);

    klShoppingCarthistoryManager.save(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;
    }
  }