<?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.RmAutoReportHistoryMapper">
|
<resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmAutoReportHistory">
|
<!--@mbg.generated-->
|
<!--@Table rm_auto_report_history-->
|
<id column="id" jdbcType="BIGINT" property="id" />
|
<result column="controllerId" jdbcType="BIGINT" property="controllerid" />
|
<result column="intakeId" jdbcType="BIGINT" property="intakeid" />
|
<result column="rtuAddr" jdbcType="VARCHAR" property="rtuaddr" />
|
<result column="dt" jdbcType="TIMESTAMP" property="dt" />
|
<result column="rtuDt" jdbcType="TIMESTAMP" property="rtudt" />
|
<result column="instantAmount" jdbcType="DOUBLE" property="instantamount" />
|
<result column="totalAmount" jdbcType="DOUBLE" property="totalamount" />
|
<result column="lossAmount" jdbcType="DOUBLE" property="lossamount" />
|
<result column="waterPress" jdbcType="DOUBLE" property="waterpress" />
|
<result column="batteryVolt" jdbcType="DOUBLE" property="batteryvolt" />
|
<result column="sunVolt" jdbcType="DOUBLE" property="sunvolt" />
|
<result column="signalValue" jdbcType="INTEGER" property="signalvalue" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, controllerId, intakeId, rtuAddr, dt, rtuDt, instantAmount, totalAmount, lossAmount,
|
waterPress, batteryVolt, sunVolt, signalValue
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from rm_auto_report_history
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<!--@mbg.generated-->
|
delete from rm_auto_report_history
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmAutoReportHistory">
|
<!--@mbg.generated-->
|
insert into rm_auto_report_history (id, controllerId, intakeId,
|
rtuAddr, dt, rtuDt, instantAmount,
|
totalAmount, lossAmount, waterPress,
|
batteryVolt, sunVolt, signalValue
|
)
|
values (#{id,jdbcType=BIGINT}, #{controllerid,jdbcType=BIGINT}, #{intakeid,jdbcType=BIGINT},
|
#{rtuaddr,jdbcType=VARCHAR}, #{dt,jdbcType=TIMESTAMP}, #{rtudt,jdbcType=TIMESTAMP}, #{instantamount,jdbcType=DOUBLE},
|
#{totalamount,jdbcType=DOUBLE}, #{lossamount,jdbcType=DOUBLE}, #{waterpress,jdbcType=DOUBLE},
|
#{batteryvolt,jdbcType=DOUBLE}, #{sunvolt,jdbcType=DOUBLE}, #{signalvalue,jdbcType=INTEGER}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmAutoReportHistory">
|
<!--@mbg.generated-->
|
insert into rm_auto_report_history
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
id,
|
</if>
|
<if test="controllerid != null">
|
controllerId,
|
</if>
|
<if test="intakeid != null">
|
intakeId,
|
</if>
|
<if test="rtuaddr != null">
|
rtuAddr,
|
</if>
|
<if test="dt != null">
|
dt,
|
</if>
|
<if test="rtudt != null">
|
rtuDt,
|
</if>
|
<if test="instantamount != null">
|
instantAmount,
|
</if>
|
<if test="totalamount != null">
|
totalAmount,
|
</if>
|
<if test="lossamount != null">
|
lossAmount,
|
</if>
|
<if test="waterpress != null">
|
waterPress,
|
</if>
|
<if test="batteryvolt != null">
|
batteryVolt,
|
</if>
|
<if test="sunvolt != null">
|
sunVolt,
|
</if>
|
<if test="signalvalue != null">
|
signalValue,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
#{id,jdbcType=BIGINT},
|
</if>
|
<if test="controllerid != null">
|
#{controllerid,jdbcType=BIGINT},
|
</if>
|
<if test="intakeid != null">
|
#{intakeid,jdbcType=BIGINT},
|
</if>
|
<if test="rtuaddr != null">
|
#{rtuaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="dt != null">
|
#{dt,jdbcType=TIMESTAMP},
|
</if>
|
<if test="rtudt != null">
|
#{rtudt,jdbcType=TIMESTAMP},
|
</if>
|
<if test="instantamount != null">
|
#{instantamount,jdbcType=DOUBLE},
|
</if>
|
<if test="totalamount != null">
|
#{totalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="lossamount != null">
|
#{lossamount,jdbcType=DOUBLE},
|
</if>
|
<if test="waterpress != null">
|
#{waterpress,jdbcType=DOUBLE},
|
</if>
|
<if test="batteryvolt != null">
|
#{batteryvolt,jdbcType=DOUBLE},
|
</if>
|
<if test="sunvolt != null">
|
#{sunvolt,jdbcType=DOUBLE},
|
</if>
|
<if test="signalvalue != null">
|
#{signalvalue,jdbcType=INTEGER},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmAutoReportHistory">
|
<!--@mbg.generated-->
|
update rm_auto_report_history
|
<set>
|
<if test="controllerid != null">
|
controllerId = #{controllerid,jdbcType=BIGINT},
|
</if>
|
<if test="intakeid != null">
|
intakeId = #{intakeid,jdbcType=BIGINT},
|
</if>
|
<if test="rtuaddr != null">
|
rtuAddr = #{rtuaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="dt != null">
|
dt = #{dt,jdbcType=TIMESTAMP},
|
</if>
|
<if test="rtudt != null">
|
rtuDt = #{rtudt,jdbcType=TIMESTAMP},
|
</if>
|
<if test="instantamount != null">
|
instantAmount = #{instantamount,jdbcType=DOUBLE},
|
</if>
|
<if test="totalamount != null">
|
totalAmount = #{totalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="lossamount != null">
|
lossAmount = #{lossamount,jdbcType=DOUBLE},
|
</if>
|
<if test="waterpress != null">
|
waterPress = #{waterpress,jdbcType=DOUBLE},
|
</if>
|
<if test="batteryvolt != null">
|
batteryVolt = #{batteryvolt,jdbcType=DOUBLE},
|
</if>
|
<if test="sunvolt != null">
|
sunVolt = #{sunvolt,jdbcType=DOUBLE},
|
</if>
|
<if test="signalvalue != null">
|
signalValue = #{signalvalue,jdbcType=INTEGER},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmAutoReportHistory">
|
<!--@mbg.generated-->
|
update rm_auto_report_history
|
set controllerId = #{controllerid,jdbcType=BIGINT},
|
intakeId = #{intakeid,jdbcType=BIGINT},
|
rtuAddr = #{rtuaddr,jdbcType=VARCHAR},
|
dt = #{dt,jdbcType=TIMESTAMP},
|
rtuDt = #{rtudt,jdbcType=TIMESTAMP},
|
instantAmount = #{instantamount,jdbcType=DOUBLE},
|
totalAmount = #{totalamount,jdbcType=DOUBLE},
|
lossAmount = #{lossamount,jdbcType=DOUBLE},
|
waterPress = #{waterpress,jdbcType=DOUBLE},
|
batteryVolt = #{batteryvolt,jdbcType=DOUBLE},
|
sunVolt = #{sunvolt,jdbcType=DOUBLE},
|
signalValue = #{signalvalue,jdbcType=INTEGER}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|