亚大综合监测、森林监测添加柬埔寨各省数据

This commit is contained in:
2023-02-21 15:02:37 +08:00
parent ef66a3ff00
commit d27dad982b
23 changed files with 2403 additions and 49 deletions

View File

@ -4,15 +4,35 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper_yada.ForestDetectionMapper">
<!-- <resultMap id="RM_TypeTable" type="com.ruoyi.system.domain_yada.TypeTable">-->
<!-- <result property="id" column="id"/>-->
<!-- <result property="class1" column="class1"/>-->
<!-- <result property="percentage" column="percentage"/>-->
<!-- </resultMap>-->
<!-- -->
<!-- <resultMap id="RM_TypeTable" type="com.ruoyi.system.domain_yada.TypeTable">-->
<!-- <result property="id" column="id"/>-->
<!-- <result property="class1" column="class1"/>-->
<!-- <result property="percentage" column="percentage"/>-->
<!-- </resultMap>-->
<!-- -->
<resultMap id="Forest_Province_Coverage"
type="com.ruoyi.system.domain_yada.entity.ForestProvinceCoverageEntity">
<id column="id" property="id"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="percentage2015" property="percentage2015"/>
<result column="percentage2020" property="percentage2020"/>
</resultMap>
<resultMap id="Forest_Province_Change"
type="com.ruoyi.system.domain_yada.entity.ForestProvinceChangeEntity">
<id column="id" property="id"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="percentage_gain" property="percentageGain"/>
<result column="percentage_loss" property="percentageLoss"/>
</resultMap>
<select id="selectType" resultType="com.ruoyi.system.domain_yada.TypeTable">
SELECT id,class1,percentage,china,year1 FROM type_table
SELECT id,class1,percentage,china,year1 FROM type_table
<if test="year1!= null and year1 !=''">
where year1 = #{year1}
</if>
@ -20,14 +40,30 @@
<select id="selectChange" resultType="com.ruoyi.system.domain_yada.ChangeTable">
SELECT id,country,forestloss,forestgain,china FROM change_table
SELECT id, country, forestloss, forestgain, china
FROM change_table
</select>
<select id="selectCloumnar" resultType="com.ruoyi.system.domain_yada.CloumnarTable">
SELECT id,country,year,forestcover,china FROM columnar_table
SELECT id, country, year, forestcover, china
FROM columnar_table
</select>
<select id="selectConversion" resultType="com.ruoyi.system.domain_yada.TypeConversion">
SELECT id,class1,increase,reduce FROM type_conversion
SELECT id, class1, increase, reduce
FROM type_conversion
</select>
<select id="forestProvinceCoverage" resultMap="Forest_Province_Coverage">
SELECT id, country, province, province_en, percentage2015, percentage2020
FROM forest_province_coverage
where country = #{country}
</select>
<select id="forestProvinceChange" resultMap="Forest_Province_Change">
SELECT id, country, province, province_en, percentage_gain, percentage_loss
FROM forest_province_change
where country = #{country}
</select>
</mapper>

View File

@ -100,6 +100,102 @@
<result column="mountain" property="mountain"/>
</resultMap>
<resultMap id="Monitor_EQI_Country_Grading"
type="com.ruoyi.system.domain_yada.entity.MonitorEQICountryGradingEntity">
<id column="id" property="id"/>
<result column="year" property="year"/>
<result column="type" property="type"/>
<result column="country" property="country"/>
<result column="country_en" property="countryEn"/>
<result column="excellent" property="excellent"/>
<result column="good" property="good"/>
<result column="middle" property="middle"/>
<result column="low" property="low"/>
<result column="poor" property="poor"/>
</resultMap>
<resultMap id="Monitor_KEQI_Country"
type="com.ruoyi.system.domain_yada.entity.MonitorKEQICountryEntity">
<id column="id" property="id"/>
<result column="type" property="type"/>
<result column="country" property="country"/>
<result column="country_en" property="countryEn"/>
<result column="significant_decline" property="significantDecline"/>
<result column="slight_decline" property="slightDecline"/>
<result column="unchanged" property="unchanged"/>
<result column="slight_rise" property="slightRise"/>
<result column="significant_rise" property="significantRise"/>
</resultMap>
<resultMap id="Monitor_KEQI_Cambodia"
type="com.ruoyi.system.domain_yada.entity.MonitorKEQICambodiaEntity">
<id column="id" property="id"/>
<result column="type" property="type"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="significant_decline" property="significantDecline"/>
<result column="slight_decline" property="slightDecline"/>
<result column="unchanged" property="unchanged"/>
<result column="slight_rise" property="slightRise"/>
<result column="significant_rise" property="significantRise"/>
</resultMap>
<resultMap id="Monitor_EQI_Cambodia_Grading"
type="com.ruoyi.system.domain_yada.entity.MonitorEQICambodiaGradingEntity">
<id column="id" property="id"/>
<result column="year" property="year"/>
<result column="type" property="type"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="excellent" property="excellent"/>
<result column="good" property="good"/>
<result column="middle" property="middle"/>
<result column="low" property="low"/>
<result column="poor" property="poor"/>
</resultMap>
<resultMap id="Monitor_KEQI_Province_Rate"
type="com.ruoyi.system.domain_yada.entity.MonitorKEQIProvinceRateEntity">
<id column="id" property="id"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="all" property="all"/>
<result column="forest" property="forest"/>
<result column="shrub" property="shrub"/>
<result column="grass" property="grass"/>
<result column="farmland" property="farmland"/>
<result column="mountain" property="mountain"/>
</resultMap>
<resultMap id="Monitor_EQI_Province"
type="com.ruoyi.system.domain_yada.entity.MonitorEQIProvinceEntity">
<id column="id" property="id"/>
<result column="year" property="year"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
<result column="all" property="all"/>
<result column="forest" property="forest"/>
<result column="shrub" property="shrub"/>
<result column="grass" property="grass"/>
<result column="farmland" property="farmland"/>
<result column="mountain" property="mountain"/>
</resultMap>
<resultMap id="Province_Corresponding"
type="com.ruoyi.system.domain_yada.entity.ProvinceCorrespondingEntity">
<id column="id" property="id"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="province_en" property="provinceEn"/>
</resultMap>
<select id="provinceCorresponding" resultMap="Province_Corresponding">
select id, country, province,province_en
from province_corresponding
where country = #{country}
</select>
<select id="countryCorresponding" resultMap="Monitor_Country_Corresponding">
select id, region, region_en, country, country_en
@ -133,24 +229,24 @@
<select id="eqiCountry" resultMap="Monitor_EQI_Country">
select mec.id,
mec.year,
mec.country,
mec.country_en,
mec.all_eqi,
mec.forest_eqi,
mec.shrub_eqi,
mec.grass_eqi,
mec.farmland_eqi,
mec.mountain_eqi,
mec.all_pixel,
mec.forest_pixel,
mec.shrub_pixel,
mec.grass_pixel,
mec.farmland_pixel,
mec.mountain_pixel
mec.year,
mec.country,
mec.country_en,
mec.all_eqi,
mec.forest_eqi,
mec.shrub_eqi,
mec.grass_eqi,
mec.farmland_eqi,
mec.mountain_eqi,
mec.all_pixel,
mec.forest_pixel,
mec.shrub_pixel,
mec.grass_pixel,
mec.farmland_pixel,
mec.mountain_pixel
from monitor_eqi_country mec
where mec.year = #{year}
and mec.country in
and mec.country in
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
@ -187,14 +283,14 @@
<select id="keqiCountryRate" resultMap="Monitor_KEQI_Country_Rate">
select mkcr.id,
mkcr.country,
mkcr.country_en,
cast((cast(mkcr.all as decimal) * 100) as decimal(10, 2)) as all,
cast((cast(mkcr.forest as decimal)*100) as decimal(10,2)) as forest,
cast((cast(mkcr.shrub as decimal)*100) as decimal(10,2)) as shrub,
cast((cast(mkcr.grass as decimal)*100) as decimal(10,2)) as grass,
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
mkcr.country,
mkcr.country_en,
cast((cast(mkcr.all as decimal) * 100) as decimal(10, 2)) as all,
cast((cast(mkcr.forest as decimal)*100) as decimal(10,2)) as forest,
cast((cast(mkcr.shrub as decimal)*100) as decimal(10,2)) as shrub,
cast((cast(mkcr.grass as decimal)*100) as decimal(10,2)) as grass,
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 in
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
@ -204,15 +300,15 @@
<select id="eqiAsiaLine" resultMap="Monitor_EQI_Asia">
select mea.id,
mea.year,
mea.region,
mea.region_en,
mea.all,
mea.forest,
mea.shrub,
mea.grass,
mea.farmland,
mea.mountain
mea.year,
mea.region,
mea.region_en,
mea.all,
mea.forest,
mea.shrub,
mea.grass,
mea.farmland,
mea.mountain
from monitor_eqi_asia mea
where mea.region = #{region}
<if test="start != null and start != ''">
@ -222,4 +318,82 @@
and #{end} >= mea.year
</if>
</select>
<select id="eqiCountryGrading" resultMap="Monitor_EQI_Country_Grading">
select id, year, type, country, country_en, excellent, good, middle, low, poor
from monitor_eqi_country_grading
where year = #{year}
and country = #{country}
and type = #{type}
</select>
<select id="keqiCountry" resultMap="Monitor_KEQI_Country">
select id,
type,
country,
country_en,
significant_decline,
slight_decline,
unchanged,
slight_rise,
significant_rise
from monitor_keqi_country
where type = #{type}
and country = #{country}
</select>
<select id="keqiCambodia" resultMap="Monitor_KEQI_Cambodia">
select id,
type,
province,
province_en,
significant_decline,
slight_decline,
unchanged,
slight_rise,
significant_rise
from monitor_keqi_cambodia
where type = #{type}
and province = #{province}
</select>
<select id="eqiCambodiaGrading" resultMap="Monitor_EQI_Cambodia_Grading">
select id, year, type, province, province_en, excellent, good, middle, low, poor
from monitor_eqi_cambodia_grading
where year = #{year}
and type = #{type}
and province = #{province}
</select>
<select id="keqiProvinceRate" resultMap="Monitor_KEQI_Province_Rate">
select mkpr.id,
mkpr.country,
mkpr.province,
mkpr.province_en,
mkpr.all,
mkpr.forest,
mkpr.shrub,
mkpr.grass,
mkpr.farmland,
mkpr.mountain
from monitor_keqi_province_rate mkpr
where mkpr.country = #{country}
</select>
<select id="eqiProvince" resultMap="Monitor_EQI_Province">
select mep.id,
mep.year,
mep.country,
mep.province,
mep.province_en,
mep.all,
mep.forest,
mep.shrub,
mep.grass,
mep.farmland,
mep.mountain
from monitor_eqi_province mep
where mep.year = #{year}
and mep.country = #{country}
</select>
</mapper>