diff --git a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java index 9ceb73c..d34ae54 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java @@ -38,7 +38,7 @@ public interface BuildingRecordsMapper extends BaseMapper { " where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(br.push_time) order by br.pm10 desc") List selectMonthPm10(); - @Select("select * from t_building_records br JOIN t_building_site bs on br.project_name = bs.gdmc " + + @Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc " + " where to_days(br.push_time) = to_days(now()) order by br.noice desc") List selectDayNoice(); @@ -50,7 +50,7 @@ public interface BuildingRecordsMapper extends BaseMapper { " where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(br.push_time) order by br.noice desc") List selectMonthNoice(); - @Select("select * from t_building_records br JOIN t_building_site bs on br.project_name = bs.gdmc " + + @Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc" + " where to_days(br.push_time) = to_days(now()) and br.project_name like concat('%',#{projectName},'%')") List selectDayAll(String projectName);