xkrs_ms/ruoyi-system/src/main/resources/mapper/system/AustraliaMiddleEastMapper.xml

57 lines
2.1 KiB
XML
Raw Normal View History

2022-05-20 08:56:41 +08:00
<?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">
2022-05-20 11:56:55 +08:00
<mapper namespace="com.ruoyi.system.mapperyada.AustraliaMiddleEastMapper">
<resultMap id="RM_AustraliaMiddleEast" type="com.ruoyi.system.domainyada.AustraliaMiddleEastVO">
2022-05-20 08:56:41 +08:00
<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>