@Action(value = "/remark/getRemarkInfo") public String getAllRemarkInfo() { result = new JSONObject(); array = new JSONArray(); List<RemarkInfo> reinfos = remarkInfoService.getAllRemarkInfo(); Entity2JSONUtil.RemarkInfo2JSON(reinfos, array); result.put("total", reinfos.size()); result.put("rows", array); return "json"; }
@Action(value = "/remark/updateReInfo") public String updateRemarkInfo() { result = new JSONObject(); RemarkInfo reinfo = new RemarkInfo(); reinfo.setId(Id); reinfo.setManagerName(managerName); reinfo.setManagerTel(managerTel); reinfo.setAddress(address); remarkInfoService.updateRemarkInfo(reinfo); request.getServletContext().setAttribute("managerTel", managerTel); result.put("result", 1); return "json"; }