国家查询优化

This commit is contained in:
2022-11-10 15:24:08 +08:00
parent 7d7c0dafd1
commit 448aa856e9
9 changed files with 81 additions and 44 deletions

View File

@ -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">

View File

@ -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">