| | |
| | | return new ResultUtil<List<AreaSection>>().setData(list); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getAll2", method = RequestMethod.GET) |
| | | @ApiOperation(value = "获取全部数据") |
| | | public Result<List<AreaSection>> getAll2(String areaId) { |
| | | |
| | | QueryWrapper<AreaSection> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("area_id",areaId); |
| | | List<AreaSection> list = iAreaSectionService.list(wrapper); |
| | | return new ResultUtil<List<AreaSection>>().setData(list); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getByPage", method = RequestMethod.GET) |
| | | @ApiOperation(value = "分页获取") |
| | | public Result<IPage<AreaSection>> getByPage(String areaId,PageVo page) { |