From 6901d54eeb093a4b94f0630ae88bda7936f16919 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期三, 05 一月 2022 09:30:09 +0800
Subject: [PATCH] 违章记录
---
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java
index 3e27411..c8c02d9 100644
--- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java
+++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java
@@ -49,10 +49,10 @@
@RequestMapping(value = "/getByPage", method = RequestMethod.GET)
@ApiOperation(value = "鍒嗛〉鑾峰彇")
- public Result<IPage<Area>> getByPage(String areaId,PageVo page) {
+ public Result<IPage<Area>> getByPage(String name,PageVo page) {
QueryWrapper<Area> wrapper = new QueryWrapper<>();
- if (!StrUtil.isEmpty(areaId))
- wrapper.eq("area_id",areaId);
+ if (!StrUtil.isEmpty(name))
+ wrapper.like("a.name",name);
IPage<Area> data = iAreaService.page2(PageUtil.initMpPage(page),wrapper);
return new ResultUtil<IPage<Area>>().setData(data);
}
--
Gitblit v1.9.1