From a07f0e7fb1e7fdbdb4c7796b2d938140e3e8dfef Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期三, 03 十一月 2021 17:27:13 +0800 Subject: [PATCH] 商户表,配送片区表,片区段表 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java index 57d6aaf..df25787 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java @@ -48,10 +48,13 @@ } @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); } -- Gitblit v1.9.1