@Action(value = "/shop/shopOrder/shopOrderDetail") public String shopOrderDetail() { if (shopOrder == null) { shopOrder = (ShopOrderVO) shopOrderService.queryShopOrderByKey(orderId); remark = shopOrder.getRemark(); } return operation; }
/** * 更新 * * @throws UnsupportedEncodingException */ @Action(value = "/shop/shopOrder/updateShopOrder") public void update() throws UnsupportedEncodingException { Map<String, Object> param = new HashMap<String, Object>(); if (null == orderId) { param.put("success", false); param.put("errorMessage", "操作失败"); } else { if (orderId != null) { shopOrder = (ShopOrderVO) shopOrderService.queryShopOrderByKey(orderId); shopOrder.setRemark(new String(remark.getBytes("ISO8859-1"), "UTF-8")); shopOrderService.updata(shopOrder); } param.put("success", true); param.put("errorMessage", "操作失败"); } try { getResponse().getWriter().print(JSONObject.fromObject(param)); } catch (IOException ioe) { } }