国家查询优化
This commit is contained in:
@ -49,7 +49,10 @@
|
||||
from esno_impact_country
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
and country = #{country}
|
||||
and country in
|
||||
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="subzoneVaiLine" resultMap="ESNO_Impact_Subzone_Line">
|
||||
|
@ -150,7 +150,10 @@
|
||||
mec.mountain_pixel
|
||||
from monitor_eqi_country mec
|
||||
where mec.year = #{year}
|
||||
and mec.country = #{country}
|
||||
and mec.country in
|
||||
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="keqi" resultMap="Monitor_KEQI">
|
||||
@ -192,7 +195,10 @@
|
||||
cast((cast(mkcr.farmland as decimal)*100) as decimal(10,2)) as farmland,
|
||||
cast((cast(mkcr.mountain as decimal)*100) as decimal(10,2)) as mountain
|
||||
from monitor_keqi_country_rate mkcr
|
||||
where mkcr.country = #{country}
|
||||
where mkcr.country in
|
||||
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="eqiAsiaLine" resultMap="Monitor_EQI_Asia">
|
||||
|
Reference in New Issue
Block a user