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