// 分页 @Permission(nameInclude = "admin") public String spliter() { QueryResult<TblThirdClass> result = tblThirdClassService.getScrollData( (page.getPageNo() - 1) * page.getPageSize(), page.getPageSize()); // 设置分页查询结果集 page.setList(result.getResultlist()); // 设置总记录 page.setTotal((int) result.getTotalrecord()); // 设置分页总页数 page.setTotalPage(); return "spliter"; }
// 删除 @Permission(nameInclude = "admin") public String delete() { tblThirdClassService.delete(tblThirdClassService.find(tblThirdClass.getFtkId())); return SUCCESS; }
@Permission(nameInclude = "admin") public String modify() { this.setTblThirdClass(tblThirdClassService.find(tblThirdClass.getFtkId())); return "modify"; }
// 修改 @Permission(nameInclude = "admin") public String update() { tblThirdClassService.update(tblThirdClass); return SUCCESS; }
// 新增 @Permission(nameInclude = "admin") public String save() { tblThirdClassService.save(tblThirdClass); return "success"; }
// 根据ID查找 @Permission(nameInclude = "admin") public String findById() { tblThirdClass = tblThirdClassService.find(tblThirdClass.getFtkId()); return "find"; }