功能迭代
This commit is contained in:
		| @@ -0,0 +1,57 @@ | ||||
| <?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.AustraliaMiddleEastMapper"> | ||||
|     <resultMap id="RM_AustraliaMiddleEast" type="com.ruoyi.system.vo.AustraliaMiddleEastVO"> | ||||
|  | ||||
|         <result property="yearMonth" column="year_month"/> | ||||
|         <result property="id" column="ID"/> | ||||
|         <result property="sstAnomalyIndex" column="sst_anomaly_index"/> | ||||
|         <result property="temperatureAnomolies" column="temperature_anomolies"/> | ||||
|         <result property="precipitationAnomolies" column="precipitation_anomolies"/> | ||||
|         <result property="vaiAnomolies" column="vai_anomolies"/> | ||||
|         <result property="createdBy" column="created_by"/> | ||||
|         <result property="createdTime" column="created_time"/> | ||||
|  | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         ID,year_month,sst_anomaly_index,temperature_anomolies,precipitation_anomolies,vai_anomolies,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectAustralia" resultMap="RM_AustraliaMiddleEast"> | ||||
|         SELECT  <include refid="columns"/>  FROM  central_and_eastern_australia; | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelAustralia"> | ||||
|         DELETE FROM central_and_eastern_australia | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|      | ||||
|     <insert id="IntoAustralia"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO central_and_eastern_australia ( | ||||
|             ID , | ||||
|             year_month , | ||||
|             sst_anomaly_index , | ||||
|             temperature_anomolies , | ||||
|             precipitation_anomolies , | ||||
|             vai_anomolies , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{yearMonth,jdbcType=DATE}, | ||||
|                      #{sstAnomalyIndex,jdbcType=DOUBLE}, | ||||
|                      #{temperatureAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{precipitationAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{vaiAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=VARCHAR} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
| </mapper>  | ||||
| @@ -0,0 +1,65 @@ | ||||
| <?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.RegionVGIMapper"> | ||||
|     <resultMap id="RM_RegionVGI" type="com.ruoyi.system.vo.RegionVGIVO"> | ||||
|  | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="id" column="ID"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="typeName" column="type_name"/> | ||||
|         <result property="typeNameEn" column="type_name_en"/> | ||||
|         <result property="forest" column="forest"/> | ||||
|         <result property="grassland" column="grassland"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="createdBy" column="created_by"/> | ||||
|         <result property="createdTime" column="created_time"/> | ||||
|  | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,region,region_en,type_name,type_name_en,forest,created_by,created_time,grassland,particular_year | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectRegion" resultMap="RM_RegionVGI"> | ||||
|         SELECT  <include refid="columns"/>  FROM  region_vgi; | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelRegion"> | ||||
|         DELETE FROM region_vgi | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|  | ||||
|     <insert id="IntoRegion"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO region_vgi ( | ||||
|             id, | ||||
|             region , | ||||
|             region_en , | ||||
|             type_name , | ||||
|             type_name_en , | ||||
|             forest , | ||||
|             created_by , | ||||
|             created_time, | ||||
|             grassland, | ||||
|             particular_year | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{region_en,jdbcType=VARCHAR}, | ||||
|                      #{type_name,jdbcType=VARCHAR}, | ||||
|                      #{type_name_en,jdbcType=TIMESTAMP}, | ||||
|                      #{forest,jdbcType=DOUBLE}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=DATE}, | ||||
|                      #{grassland,jdbcType=DOUBLE}, | ||||
|                      #{particularYear} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
		Reference in New Issue
	
	Block a user