From 7ddc950e89786dc61cd7401781808a041810aca0 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Mon, 27 Jun 2022 09:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=B7=A5=E5=9C=B0=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/controller/BuildingController.java | 4 ++-- .../monitormanage/mapper/BuildingRecordsMapper.java | 3 +-- src/main/resources/mapper/BuildingRecordsMapper.xml | 7 +++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/BuildingController.java b/src/main/java/com/hisense/monitormanage/controller/BuildingController.java index 156c378..2e5d460 100644 --- a/src/main/java/com/hisense/monitormanage/controller/BuildingController.java +++ b/src/main/java/com/hisense/monitormanage/controller/BuildingController.java @@ -93,8 +93,8 @@ public class BuildingController { */ @GetMapping("selectRaise") @ApiOperation("查询工地扬尘事件") - public Result selectRaise(){ - List recordsDtos = buildingRecordsMapper.selectRaise(); + public Result selectRaise(Integer page,Integer pageSize){ + List recordsDtos = buildingRecordsMapper.selectRaise(page,pageSize); Result success = Result.success(recordsDtos); return success; } diff --git a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java index 51754a4..6bd7cc2 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java @@ -32,8 +32,7 @@ public interface BuildingRecordsMapper extends BaseMapper { " where DATE_SUB(CURDATE(), INTERVAL 30 DAY) < date(br.push_time)") List selectMonthPmAndNoice(); - @Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc where br.pm10 > 200") - List selectRaise(); + List selectRaise(@Param("page") Integer page,@Param("pageSize") Integer pageSize); @Select("select br.*,bs.sgwz,bs.jd,bs.wd,bs.ssdq,bs.yjsg from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc" + " where br.project_name like concat('%',#{projectName},'%')") diff --git a/src/main/resources/mapper/BuildingRecordsMapper.xml b/src/main/resources/mapper/BuildingRecordsMapper.xml index b033cbf..2d6f994 100644 --- a/src/main/resources/mapper/BuildingRecordsMapper.xml +++ b/src/main/resources/mapper/BuildingRecordsMapper.xml @@ -30,4 +30,11 @@ + + \ No newline at end of file