控制器修改
This commit is contained in:
		| @@ -4,5 +4,61 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.AorestCoverageMapper"> | ||||
|  | ||||
|     <resultMap id="RM_AorestCoverage" type="com.ruoyi.system.domain_yada.AorestCoverageVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="protectedLands" column="protected_lands"/> | ||||
|         <result property="nonProtectedLands" column="non_protected_lands"/> | ||||
|         <result property="mountain" column="mountain"/> | ||||
|         <result property="nonMountain" column="non_mountain"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,region,region_en,protected_lands,non_protected_lands,mountain,non_mountain,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectAorestCoverage" resultMap="RM_AorestCoverage"> | ||||
|         SELECT  <include refid="columns"/>  FROM  forest_coverage; | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelAorestCoverage"> | ||||
|         DELETE FROM forest_coverage | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoAorestCoverage"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO forest_coverage ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             region , | ||||
|             region_en , | ||||
|             protected_lands , | ||||
|             non_protected_lands , | ||||
|             mountain, | ||||
|             non_mountain, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{protectedLands,jdbcType=DOUBLE}, | ||||
|                      #{nonProtectedLand,jdbcType=DOUBLE}, | ||||
|                      #{mountain,jdbcType=DOUBLE}, | ||||
|                      #{nonMountain,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|                      #{precipitationAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{vaiAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=VARCHAR} | ||||
|                      #{createdTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|   | ||||
| @@ -4,4 +4,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.GlobalTypeMapper"> | ||||
|  | ||||
|     <resultMap id="RM_GlobalType" type="com.ruoyi.system.domain_yada.GlobalTypeVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="typeName" column="type_name"/> | ||||
|         <result property="typeNameEn" column="type_name_en"/> | ||||
|         <result property="areaProportion" column="area_proportion"/> | ||||
|         <result property="area" column="area"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,type_name,type_name_en,area_proportion,area,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectGlobalType" resultMap="RM_GlobalType"> | ||||
|         SELECT  <include refid="columns"/>  FROM  proportion_of_global_types; | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelGlobalType"> | ||||
|         DELETE FROM proportion_of_global_types | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoGlobalType"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO proportion_of_global_types ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             type_name , | ||||
|             type_name_en , | ||||
|             area_proportion , | ||||
|             area , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{typeName,jdbcType=VARCHAR}, | ||||
|                      #{typeNameEn,jdbcType=VARCHAR}, | ||||
|                      #{areaProportion,jdbcType=DOUBLE}, | ||||
|                      #{area,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
| </mapper>  | ||||
| @@ -4,5 +4,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.OceanTemperatureMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Ocean" type="com.ruoyi.system.domain_yada.OceanTemperatureVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="ninoPhenomenon" column="nino_phenomenon"/> | ||||
|         <result property="laNina" column="la_nina"/> | ||||
|         <result property="startDate" column="start_date"/> | ||||
|         <result property="endDate" column="end_date"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,nino_phenomenon,la_nina,start_date,end_date,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectOcean" resultMap="RM_Ocean"> | ||||
|         SELECT  <include refid="columns"/>  FROM  sea_surface_temperature_anomaly | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelOcean"> | ||||
|         DELETE FROM sea_surface_temperature_anomaly | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoOcean"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO sea_surface_temperature_anomaly ( | ||||
|             id , | ||||
|             nino_phenomenon , | ||||
|             la_nina , | ||||
|             start_date , | ||||
|             end_date , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{ninoPhenomenon,jdbcType=INTEGER}, | ||||
|                      #{laNina,jdbcType=INTEGER}, | ||||
|                      #{startDate,jdbcType=DATE}, | ||||
|                      #{endDate,jdbcType=DATE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -4,5 +4,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.RegionalSystemMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Regional" type="com.ruoyi.system.domain_yada.RegionalSystemVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="typeConversion" column="type_conversion"/> | ||||
|         <result property="typeconversionEn" column="type_conversion_en"/> | ||||
|         <result property="proportionOfChangedAreas" column="proportion_of_changed_areas"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,createBy,createTime | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectRegional" resultMap="RM_Regional"> | ||||
|         SELECT  <include refid="columns"/>  FROM  proportion_of_ecosystem_type_transfer | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelRegional"> | ||||
|         DELETE FROM proportion_of_ecosystem_type_transfer | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoRegional"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO proportion_of_ecosystem_type_transfer ( | ||||
|             id , | ||||
|             region , | ||||
|             region_en , | ||||
|             type_conversion , | ||||
|             type_conversion_en , | ||||
|             proportion_of_changed_areas, | ||||
|             particular_year, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{typeConversion,jdbcType=VARCHAR}, | ||||
|                      #{typeconversionEn,jdbcType=VARCHAR}, | ||||
|                      #{proportionOfChangedAreas,jdbcType=DOUBLE}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
| </mapper>  | ||||
| @@ -4,5 +4,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.UrbanMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Urban" type="com.ruoyi.system.domain_yada.UrbanVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="name" column="name"/> | ||||
|         <result property="nameEn" column="name_en"/> | ||||
|         <result property="urbanArea" column="urban_area"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,name,name_en,urban_area,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectUrban" resultMap="RM_Urban"> | ||||
|         SELECT  <include refid="columns"/>  FROM  urban_agglomeration_china | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelUrban"> | ||||
|         DELETE FROM urban_agglomeration_china | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoUrban"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO urban_agglomeration_china ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             name , | ||||
|             name_en , | ||||
|             urban_area , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{name,jdbcType=VARCHAR}, | ||||
|                      #{nameEn,jdbcType=VARCHAR}, | ||||
|                      #{urbanArea,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -3,6 +3,61 @@ | ||||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.VegetationCoverageMapper"> | ||||
|     <resultMap id="RM_Vegetation" type="com.ruoyi.system.domain_yada.VegetationCoverageVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="protectedLands" column="protected_lands"/> | ||||
|         <result property="nonProtectedLands" column="non_protected_lands"/> | ||||
|         <result property="mountain" column="mountain"/> | ||||
|         <result property="nonMountain" column="non_mountain"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,region,region_en,protected_lands,non_protected_lands,mountain,non_mountain,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectVegetation" resultMap="RM_Vegetation"> | ||||
|         SELECT  <include refid="columns"/>  FROM  fvc_npp | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelVegetation"> | ||||
|         DELETE FROM fvc_npp | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoVegetation"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO fvc_npp ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             region , | ||||
|             region_en , | ||||
|             protected_lands , | ||||
|             non_protected_lands , | ||||
|             mountain, | ||||
|             non_mountain, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{protectedLands,jdbcType=DOUBLE}, | ||||
|                      #{nonProtectedLand,jdbcType=DOUBLE}, | ||||
|                      #{mountain,jdbcType=DOUBLE}, | ||||
|                      #{nonMountain,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
		Reference in New Issue
	
	Block a user