工地接口优化
This commit is contained in:
parent
3f922de2b1
commit
906f0aa8a2
|
@ -21,9 +21,8 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
||||||
|
|
||||||
void batchUpdate(@Param("list") List<Map> list);
|
void batchUpdate(@Param("list") List<Map> list);
|
||||||
|
|
||||||
@Select("SELECT rns.*,cp.pic_url from (SELECT bns.*,br.project_name,br.push_time,br.pm10,br.noice FROM " +
|
@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) rns LEFT JOIN " +
|
"t_building_new_site bns JOIN t_building_records br ON bns.gdmc = br.project_name")
|
||||||
"t_channel_picture cp ON rns.channel_code = cp.channel_code")
|
|
||||||
List<BuildingRecordsDto> selectAllBuilding();
|
List<BuildingRecordsDto> selectAllBuilding();
|
||||||
|
|
||||||
@Select("select * from t_building_records br JOIN t_building_new_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 " +
|
||||||
|
@ -66,8 +65,9 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
||||||
" where br.project_name like concat('%',#{projectName},'%')")
|
" where br.project_name like concat('%',#{projectName},'%')")
|
||||||
List<BuildingRecordsDto> selectByProjectName(String projectName);
|
List<BuildingRecordsDto> 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" +
|
@Select("select rns.*,cp.pic_url from (select bs.*,br.project_name,br.push_time,br.pm10,br.noice from t_building_records br " +
|
||||||
" where (bs.jd between #{jd} and #{jd1}) and (bs.wd between #{wd} and #{wd1} )")
|
"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<BuildingRecordsDto> selectByJdWd(@Param("jd") Double jd,
|
List<BuildingRecordsDto> selectByJdWd(@Param("jd") Double jd,
|
||||||
@Param("jd1") Double jd1,
|
@Param("jd1") Double jd1,
|
||||||
@Param("wd") Double wd,
|
@Param("wd") Double wd,
|
||||||
|
|
Loading…
Reference in New Issue