44 lines
1.8 KiB
XML
44 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!-- namespace 必须 = Mapper 接口全类名 -->
|
|
<mapper namespace="com.southern.power.grid.dao.PmdsQxjCityWeatherMapper">
|
|
<select id="selectListFilter" resultType="com.southern.power.grid.entity.PmdsQxjCityWeather">
|
|
select t1.v01301,
|
|
t1.v_prcode,
|
|
t1.v_city,
|
|
t1.v_county,
|
|
t1.v05001,
|
|
t1.v06001,
|
|
t1.ddatetime,
|
|
t1.prediction_time,
|
|
t1.weather_type,
|
|
t1.tem,
|
|
t1.tem_max,
|
|
t1.tem_min,
|
|
t1.precipitation,
|
|
t1.rhum,
|
|
t1.wind_speed,
|
|
t1.wind_direction,
|
|
t1.cloud,
|
|
t1.vis,
|
|
t1.d_updatetime,
|
|
t1.rksj,
|
|
t2.district_code as v_acode
|
|
from pmds_qxj_city_weather t1
|
|
left join (select DISTINCT weather_province,
|
|
weather_city,
|
|
weather_district,
|
|
left(district_code, 6) as district_code
|
|
from weather_site_area_configuration) t2
|
|
on t1.v_prcode = t2.weather_province
|
|
and t1.v_city = t2.weather_city
|
|
and t1.v_county = t2.weather_district
|
|
where t2.district_code in
|
|
<foreach collection="districtCodeList" index="index" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
and t1.ddatetime >= #{startDateTimeStr}
|
|
</select>
|
|
</mapper> |