From d511a5d775b9bdc5639eefb9dcc8842c9f3e51ce Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期二, 09 十一月 2021 14:40:31 +0800 Subject: [PATCH] 意见建议 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java | 13 +++++++++---- 1 files changed, 9 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..bd68872 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,15 @@ } @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,String name,PageVo page) { + QueryWrapper<Customer> wrapper = new QueryWrapper<>(); + if (!StrUtil.isEmpty(areaSectionId)) + wrapper.eq("area_section_id",areaSectionId); + if (!StrUtil.isEmpty(name)) + wrapper.like("name","%"+name+"%"); + IPage<Customer> data = iCustomerService.page(PageUtil.initMpPage(page),wrapper); return new ResultUtil<IPage<Customer>>().setData(data); } -- Gitblit v1.9.1