工地接口优化

This commit is contained in:
wuweida 2022-06-06 17:55:32 +08:00
parent da7839b9f6
commit d7f209964f
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
" where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(br.push_time) order by br.pm10 desc")
List<BuildingRecordsDto> 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<BuildingRecordsDto> selectDayNoice();
@ -50,7 +50,7 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
" where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(br.push_time) order by br.noice desc")
List<BuildingRecordsDto> 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<BuildingRecordsDto> selectDayAll(String projectName);