ENSO影响监测
This commit is contained in:
@ -0,0 +1,187 @@
|
||||
<?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">
|
||||
<mapper namespace="com.ruoyi.system.mapper_yada.ENSOImpactMapper">
|
||||
|
||||
<resultMap id="ENSO_Impact_Subzone" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneVo">
|
||||
<result column="obviously_better" property="obviouslyBetter"/>
|
||||
<result column="slightly_better" property="slightlyBetter"/>
|
||||
<result column="unchanged" property="unchanged"/>
|
||||
<result column="slightly_worse" property="slightlyWorse"/>
|
||||
<result column="obviously_worse" property="obviouslyWorse"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Impact_Subzone_Vai" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneVaiVo">
|
||||
<result column="region" property="region"/>
|
||||
<result column="region_en" property="regionEn"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Impact_Country_Vai" type="com.ruoyi.system.domain_yada.vo.ESNOImpactCountryVaiVo">
|
||||
<result column="country" property="country"/>
|
||||
<result column="country_en" property="countryEn"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Impact_Subzone_Line" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneLineVo">
|
||||
<result column="year" property="year"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Year_Event_Corresponding"
|
||||
type="com.ruoyi.system.domain_yada.entity.ENSOYearEventCorrespondingEntity">
|
||||
<id column="id" property="id"/>
|
||||
<result column="year" property="year"/>
|
||||
<result column="event" property="event"/>
|
||||
<result column="event_en" property="eventEn"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Event_Rate"
|
||||
type="com.ruoyi.system.domain_yada.entity.ENSOEventRateEntity">
|
||||
<id column="id" property="id"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="zone" property="zone"/>
|
||||
<result column="event" property="event"/>
|
||||
<result column="event_en" property="eventEn"/>
|
||||
<result column="obviously_better" property="obviouslyBetter"/>
|
||||
<result column="slightly_better" property="slightlyBetter"/>
|
||||
<result column="unchanged" property="unchanged"/>
|
||||
<result column="slightly_worse" property="slightlyWorse"/>
|
||||
<result column="obviously_worse" property="obviouslyWorse"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Year_Unusual_Rate"
|
||||
type="com.ruoyi.system.domain_yada.entity.ENSOYearUnusualRateEntity">
|
||||
<id column="id" property="id"/>
|
||||
<result column="year" property="year"/>
|
||||
<result column="zone" property="zone"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="obviously_better" property="obviouslyBetter"/>
|
||||
<result column="slightly_better" property="slightlyBetter"/>
|
||||
<result column="unchanged" property="unchanged"/>
|
||||
<result column="slightly_worse" property="slightlyWorse"/>
|
||||
<result column="obviously_worse" property="obviouslyWorse"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Month_Event"
|
||||
type="com.ruoyi.system.domain_yada.entity.ENSOMonthEventEntity">
|
||||
<id column="id" property="id"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="year" property="year"/>
|
||||
<result column="zone" property="zone"/>
|
||||
<result column="month" property="month"/>
|
||||
<result column="value" property="value"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ENSO_Event_Analysis"
|
||||
type="com.ruoyi.system.domain_yada.entity.ENSOEventAnalysisEntity">
|
||||
<id column="id" property="id"/>
|
||||
<result column="year" property="year"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="zone" property="zone"/>
|
||||
<result column="value" property="value"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="subzonePie" resultMap="ENSO_Impact_Subzone">
|
||||
select obviously_better, slightly_better, unchanged, slightly_worse, obviously_worse
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
and region = #{region}
|
||||
</select>
|
||||
|
||||
<select id="subzoneVai" resultMap="ENSO_Impact_Subzone_Vai">
|
||||
select region, region_en, vai
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
</select>
|
||||
|
||||
<select id="countryVai" resultMap="ENSO_Impact_Country_Vai">
|
||||
select country, country_en, vai
|
||||
from esno_impact_country
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
and country in
|
||||
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="subzoneVaiLine" resultMap="ENSO_Impact_Subzone_Line">
|
||||
select year, vai
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and region = #{region}
|
||||
<if test="start != null and start != ''">
|
||||
and year >= #{start}
|
||||
</if>
|
||||
<if test="end != null and end != ''">
|
||||
and #{end} >= year
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="ensoYearEventCorresponding" resultMap="ENSO_Year_Event_Corresponding">
|
||||
select id, year, event, event_en
|
||||
from enso_year_event_corresponding
|
||||
where year = #{year}
|
||||
</select>
|
||||
|
||||
<select id="ensoEventYearCorresponding" resultMap="ENSO_Year_Event_Corresponding">
|
||||
select id, year, event, event_en
|
||||
from enso_year_event_corresponding
|
||||
where event = #{event}
|
||||
</select>
|
||||
<select id="ensoEventRate" resultMap="ENSO_Event_Rate">
|
||||
select id,
|
||||
type,
|
||||
zone,
|
||||
event,
|
||||
event_en,
|
||||
obviously_better,
|
||||
slightly_better,
|
||||
unchanged,
|
||||
slightly_worse,
|
||||
obviously_worse
|
||||
from enso_event_rate
|
||||
where type = #{type}
|
||||
and zone =#{zone}
|
||||
and event =#{event}
|
||||
</select>
|
||||
|
||||
<select id="ensoYearUnusualRate" resultMap="ENSO_Year_Unusual_Rate">
|
||||
select id,
|
||||
year,
|
||||
zone,
|
||||
type,
|
||||
obviously_better,
|
||||
slightly_better,
|
||||
unchanged,
|
||||
slightly_worse,
|
||||
obviously_worse
|
||||
from enso_year_unusual_rate
|
||||
where year = #{year}
|
||||
and zone =#{zone}
|
||||
and type =#{type}
|
||||
</select>
|
||||
|
||||
<select id="ensoMonthEvent" resultMap="ENSO_Month_Event">
|
||||
select id, type, year, zone, month, value
|
||||
from enso_month_event
|
||||
where type = #{type}
|
||||
and zone =#{zone}
|
||||
</select>
|
||||
|
||||
<select id="ensoEventAnalysis" resultMap="ENSO_Event_Analysis">
|
||||
select id, year, type, zone, value
|
||||
from enso_event_analysis
|
||||
where year in
|
||||
<foreach collection="year" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
and type = #{type}
|
||||
and zone =#{zone}
|
||||
|
||||
</select>
|
||||
</mapper>
|
@ -1,71 +0,0 @@
|
||||
<?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">
|
||||
<mapper namespace="com.ruoyi.system.mapper_yada.ESNOImpactMapper">
|
||||
|
||||
<resultMap id="ESNO_Impact_Subzone" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneVo">
|
||||
<result column="obviously_better" property="obviouslyBetter"/>
|
||||
<result column="slightly_better" property="slightlyBetter"/>
|
||||
<result column="unchanged" property="unchanged"/>
|
||||
<result column="slightly_worse" property="slightlyWorse"/>
|
||||
<result column="obviously_worse" property="obviouslyWorse"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ESNO_Impact_Subzone_Vai" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneVaiVo">
|
||||
<result column="region" property="region"/>
|
||||
<result column="region_en" property="regionEn"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ESNO_Impact_Country_Vai" type="com.ruoyi.system.domain_yada.vo.ESNOImpactCountryVaiVo">
|
||||
<result column="country" property="country"/>
|
||||
<result column="country_en" property="countryEn"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ESNO_Impact_Subzone_Line" type="com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneLineVo">
|
||||
<result column="year" property="year"/>
|
||||
<result column="vai" property="vai"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="subzonePie" resultMap="ESNO_Impact_Subzone">
|
||||
select obviously_better, slightly_better, unchanged, slightly_worse, obviously_worse
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
and region = #{region}
|
||||
</select>
|
||||
|
||||
<select id="subzoneVai" resultMap="ESNO_Impact_Subzone_Vai">
|
||||
select region, region_en, vai
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
</select>
|
||||
|
||||
<select id="countryVai" resultMap="ESNO_Impact_Country_Vai">
|
||||
select country, country_en, vai
|
||||
from esno_impact_country
|
||||
where type = #{type}
|
||||
and year = #{year}
|
||||
and country in
|
||||
<foreach collection="country" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="subzoneVaiLine" resultMap="ESNO_Impact_Subzone_Line">
|
||||
select year, vai
|
||||
from esno_impact_subzone
|
||||
where type = #{type}
|
||||
and region = #{region}
|
||||
<if test="start != null and start != ''">
|
||||
and year >= #{start}
|
||||
</if>
|
||||
<if test="end != null and end != ''">
|
||||
and #{end} >= year
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user