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); } }