From 4a8396cd0812102c1cf4771b390f2b48cb340e84 Mon Sep 17 00:00:00 2001 From: Angel <1050374295@qq.com> Date: Thu, 4 Jan 2024 16:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E6=B5=81=E9=87=8F=EF=BC=8C=E4=BA=BA?= =?UTF-8?q?=E6=B5=81=E9=87=8F=E3=80=82=EF=BC=88=E5=BD=93=E5=A4=A9=EF=BC=89?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../database/controller/PeopleVehicleFlowController.java | 3 ++- .../database/controller/PeopleVehicleHourFlowController.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java index 0cb90fd..a79d6c3 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java @@ -1,5 +1,6 @@ package com.ruoyi.database.controller; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.database.domain.PeopleVehicleFlow; @@ -26,7 +27,7 @@ public class PeopleVehicleFlowController extends BaseController { public TableDataInfo list(PeopleVehicleFlow peopleVehicleFlow) { startPage(); //QueryWrapper queryWrapper = new QueryWrapper<>(peopleVehicleFlow); - List list = peopleVehicleFlowService.list(); + List list = peopleVehicleFlowService.list(new QueryWrapper<>(peopleVehicleFlow)); return getDataTable(list); } } diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleHourFlowController.java b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleHourFlowController.java index ef0af1d..c4f4b27 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleHourFlowController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleHourFlowController.java @@ -1,5 +1,6 @@ package com.ruoyi.database.controller; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.database.domain.PeopleVehicleFlow; @@ -24,10 +25,10 @@ public class PeopleVehicleHourFlowController extends BaseController { @GetMapping @ApiOperation("查询人车记录表") - public TableDataInfo list(PeopleVehicleHourFlow peopleVehicleHourFlow) { + public TableDataInfo list(PeopleVehicleHourFlow peopleVehicleHFlow) { startPage(); //QueryWrapper queryWrapper = new QueryWrapper<>(peopleVehicleFlow); - List list = peopleVehicleHourFlowService.list(); + List list = peopleVehicleHourFlowService.list(new QueryWrapper<>(peopleVehicleHFlow)); return getDataTable(list); } }