<?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.dy.pipIrrGlobal.daoRm.RmIntakeAmountHistoryMapper">
|
<resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory">
|
<!--@mbg.generated-->
|
<!--@Table rm_intake_amount_history-->
|
<id column="id" jdbcType="BIGINT" property="id" />
|
<result column="intakeId" jdbcType="BIGINT" property="intakeid" />
|
<result column="amount" jdbcType="DOUBLE" property="amount" />
|
<result column="loss" jdbcType="DOUBLE" property="loss" />
|
<result column="controllerIdLast" jdbcType="BIGINT" property="controlleridlast" />
|
<result column="dtLast" jdbcType="DATE" property="dtlast" />
|
<result column="amountLast" jdbcType="DOUBLE" property="amountlast" />
|
<result column="totalAmountLast" jdbcType="DOUBLE" property="totalamountlast" />
|
<result column="resourceTypeLast" jdbcType="TINYINT" property="resourcetypelast" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, intakeId, amount, loss, controllerIdLast, dtLast, amountLast, totalAmountLast,
|
resourceTypeLast
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from rm_intake_amount_history
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<!--@mbg.generated-->
|
delete from rm_intake_amount_history
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory">
|
<!--@mbg.generated-->
|
insert into rm_intake_amount_history (id, intakeId, amount,
|
loss, controllerIdLast, dtLast,
|
amountLast, totalAmountLast, resourceTypeLast
|
)
|
values (#{id,jdbcType=BIGINT}, #{intakeid,jdbcType=BIGINT}, #{amount,jdbcType=DOUBLE},
|
#{loss,jdbcType=DOUBLE}, #{controlleridlast,jdbcType=BIGINT}, #{dtlast,jdbcType=DATE},
|
#{amountlast,jdbcType=DOUBLE}, #{totalamountlast,jdbcType=DOUBLE}, #{resourcetypelast,jdbcType=TINYINT}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory">
|
<!--@mbg.generated-->
|
insert into rm_intake_amount_history
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
id,
|
</if>
|
<if test="intakeid != null">
|
intakeId,
|
</if>
|
<if test="amount != null">
|
amount,
|
</if>
|
<if test="loss != null">
|
loss,
|
</if>
|
<if test="controlleridlast != null">
|
controllerIdLast,
|
</if>
|
<if test="dtlast != null">
|
dtLast,
|
</if>
|
<if test="amountlast != null">
|
amountLast,
|
</if>
|
<if test="totalamountlast != null">
|
totalAmountLast,
|
</if>
|
<if test="resourcetypelast != null">
|
resourceTypeLast,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
#{id,jdbcType=BIGINT},
|
</if>
|
<if test="intakeid != null">
|
#{intakeid,jdbcType=BIGINT},
|
</if>
|
<if test="amount != null">
|
#{amount,jdbcType=DOUBLE},
|
</if>
|
<if test="loss != null">
|
#{loss,jdbcType=DOUBLE},
|
</if>
|
<if test="controlleridlast != null">
|
#{controlleridlast,jdbcType=BIGINT},
|
</if>
|
<if test="dtlast != null">
|
#{dtlast,jdbcType=DATE},
|
</if>
|
<if test="amountlast != null">
|
#{amountlast,jdbcType=DOUBLE},
|
</if>
|
<if test="totalamountlast != null">
|
#{totalamountlast,jdbcType=DOUBLE},
|
</if>
|
<if test="resourcetypelast != null">
|
#{resourcetypelast,jdbcType=TINYINT},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory">
|
<!--@mbg.generated-->
|
update rm_intake_amount_history
|
<set>
|
<if test="intakeid != null">
|
intakeId = #{intakeid,jdbcType=BIGINT},
|
</if>
|
<if test="amount != null">
|
amount = #{amount,jdbcType=DOUBLE},
|
</if>
|
<if test="loss != null">
|
loss = #{loss,jdbcType=DOUBLE},
|
</if>
|
<if test="controlleridlast != null">
|
controllerIdLast = #{controlleridlast,jdbcType=BIGINT},
|
</if>
|
<if test="dtlast != null">
|
dtLast = #{dtlast,jdbcType=DATE},
|
</if>
|
<if test="amountlast != null">
|
amountLast = #{amountlast,jdbcType=DOUBLE},
|
</if>
|
<if test="totalamountlast != null">
|
totalAmountLast = #{totalamountlast,jdbcType=DOUBLE},
|
</if>
|
<if test="resourcetypelast != null">
|
resourceTypeLast = #{resourcetypelast,jdbcType=TINYINT},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountHistory">
|
<!--@mbg.generated-->
|
update rm_intake_amount_history
|
set intakeId = #{intakeid,jdbcType=BIGINT},
|
amount = #{amount,jdbcType=DOUBLE},
|
loss = #{loss,jdbcType=DOUBLE},
|
controllerIdLast = #{controlleridlast,jdbcType=BIGINT},
|
dtLast = #{dtlast,jdbcType=DATE},
|
amountLast = #{amountlast,jdbcType=DOUBLE},
|
totalAmountLast = #{totalamountlast,jdbcType=DOUBLE},
|
resourceTypeLast = #{resourcetypelast,jdbcType=TINYINT}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|