| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/getByPage", method = RequestMethod.GET) |
| | | @ApiOperation(value = "分页获取") |
| | | public Result<IPage<Customer>> getByPage(PageVo page) { |
| | | |
| | | IPage<Customer> data = iCustomerService.page(PageUtil.initMpPage(page)); |
| | | @ApiOperation(value = "" + |
| | | "") |
| | | public Result<IPage<Customer>> getByPage(String areaSectionId,PageVo page) { |
| | | QueryWrapper<Customer> wrapper = new QueryWrapper<>(); |
| | | if (!StrUtil.isEmpty(areaSectionId)) |
| | | wrapper.eq("area_section_id",areaSectionId); |
| | | IPage<Customer> data = iCustomerService.page(PageUtil.initMpPage(page),wrapper); |
| | | return new ResultUtil<IPage<Customer>>().setData(data); |
| | | } |
| | | |