@RequestMapping(value = "/updateTPerson") public String updateTPerson(TPerson tPerson) { long result = tPersonService.updateTPerson(tPerson); if (result > 0) { this.writeJson(new InfoMsg("保存成功", "y")); } else { this.writeJson(new InfoMsg("保存失败", "n")); } return null; }
@RequestMapping(value = "/queryTPersonList") public String queryTPersonList(TPerson tPerson) { Map<String, SearchOperator> options = new HashMap<String, SearchOperator>(); PageList pageList = tPersonService.queryTPersonPage(tPerson, options, pageBounds); request.setAttribute("pageBean", pageList); request.setAttribute("page", pageList.getPaginator()); request.setAttribute("model", tPerson); return "admin/xx/xx-list"; }
@RequestMapping(value = "/queryTPersonIndex") public String queryTPersonIndex(TPerson tPerson) { TPerson tPersonModel = tPersonService.getTPerson(tPerson); request.setAttribute("tPersonModel", tPersonModel); return "admin/xx/xx-detail"; }