From 74d7aed668f67adea64ba507373b58b86fffd100 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期一, 08 十一月 2021 08:41:05 +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