xkrs_ms/ruoyi-system/src/main/resources/mapper/system/OceanTemperatureMapper.xml
2022-05-23 09:42:20 +08:00

55 lines
1.8 KiB
XML

<?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.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>