diff --git a/src/main/java/com/hisense/monitormanage/service/RoadDataService.java b/src/main/java/com/hisense/monitormanage/service/RoadDataService.java index 122f4fd..15718df 100644 --- a/src/main/java/com/hisense/monitormanage/service/RoadDataService.java +++ b/src/main/java/com/hisense/monitormanage/service/RoadDataService.java @@ -114,7 +114,7 @@ public class RoadDataService { public List listRoadDataByTimeRegion(String start,String end){ QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.between("dt",start,end); + wrapper.between("dt",start,end).gt("pm10",150); List list = roadDataMapper.selectList(wrapper); return list; } diff --git a/src/main/resources/mapper/RoadDataMapper.xml b/src/main/resources/mapper/RoadDataMapper.xml index 112086d..d5aafbd 100644 --- a/src/main/resources/mapper/RoadDataMapper.xml +++ b/src/main/resources/mapper/RoadDataMapper.xml @@ -18,8 +18,10 @@