From 906f0aa8a2fd62f63a300d978a38a75c5d2e9f97 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Fri, 17 Jun 2022 14:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=9C=B0=E6=8E=A5=E5=8F=A3=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/mapper/BuildingRecordsMapper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java index c2e104c..d663928 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java @@ -21,9 +21,8 @@ public interface BuildingRecordsMapper extends BaseMapper { void batchUpdate(@Param("list") List list); - @Select("SELECT rns.*,cp.pic_url from (SELECT bns.*,br.project_name,br.push_time,br.pm10,br.noice FROM " + - "t_building_new_site bns JOIN t_building_records br ON bns.gdmc = br.project_name) rns LEFT JOIN " + - "t_channel_picture cp ON rns.channel_code = cp.channel_code") + @Select("SELECT bns.*,br.project_name,br.push_time,br.pm10,br.noice FROM " + + "t_building_new_site bns JOIN t_building_records br ON bns.gdmc = br.project_name") List selectAllBuilding(); @Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc " + @@ -66,8 +65,9 @@ public interface BuildingRecordsMapper extends BaseMapper { " where br.project_name like concat('%',#{projectName},'%')") List selectByProjectName(String projectName); - @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 (bs.jd between #{jd} and #{jd1}) and (bs.wd between #{wd} and #{wd1} )") + @Select("select rns.*,cp.pic_url from (select bs.*,br.project_name,br.push_time,br.pm10,br.noice from t_building_records br " + + "JOIN t_building_new_site bs on br.project_name = bs.gdmc where (bs.jd between #{jd} and #{jd1}) and (bs.wd between #{wd} and #{wd1} )) rns " + + "LEFT JOIN t_channel_picture cp ON rns.channel_code = cp.channel_code") List selectByJdWd(@Param("jd") Double jd, @Param("jd1") Double jd1, @Param("wd") Double wd,