<?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.RmOpenCloseValveReportMapper">
|
<resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveReport">
|
<!--@mbg.generated-->
|
<!--@Table rm_open_close_valve_report-->
|
<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="opDt" jdbcType="DATE" property="opdt" />
|
<result column="opType" jdbcType="TINYINT" property="optype" />
|
<result column="opTotalAmount" jdbcType="DOUBLE" property="optotalamount" />
|
<result column="opIcCardNo" jdbcType="VARCHAR" property="opiccardno" />
|
<result column="opIcCardAddr" jdbcType="VARCHAR" property="opiccardaddr" />
|
<result column="opRemainMoney" jdbcType="DOUBLE" property="opremainmoney" />
|
<result column="openDt" jdbcType="DATE" property="opendt" />
|
<result column="clDt" jdbcType="DATE" property="cldt" />
|
<result column="clType" jdbcType="TINYINT" property="cltype" />
|
<result column="clTotalAmount" jdbcType="DOUBLE" property="cltotalamount" />
|
<result column="clIcCardNo" jdbcType="VARCHAR" property="cliccardno" />
|
<result column="clIcCardAddr" jdbcType="VARCHAR" property="cliccardaddr" />
|
<result column="clRemainMoney" jdbcType="DOUBLE" property="clremainmoney" />
|
<result column="clThisAmount" jdbcType="DOUBLE" property="clthisamount" />
|
<result column="clThisMoney" jdbcType="DOUBLE" property="clthismoney" />
|
<result column="clThisTime" jdbcType="INTEGER" property="clthistime" />
|
<result column="clOpenDt" jdbcType="DATE" property="clopendt" />
|
<result column="closeDt" jdbcType="DATE" property="closedt" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, controllerId, intakeId, rtuAddr, opDt, opType, opTotalAmount, opIcCardNo, opIcCardAddr,
|
opRemainMoney, openDt, clDt, clType, clTotalAmount, clIcCardNo, clIcCardAddr, clRemainMoney,
|
clThisAmount, clThisMoney, clThisTime, clOpenDt, closeDt
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from rm_open_close_valve_report
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<!--@mbg.generated-->
|
delete from rm_open_close_valve_report
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveReport">
|
<!--@mbg.generated-->
|
insert into rm_open_close_valve_report (id, controllerId, intakeId,
|
rtuAddr, opDt, opType,
|
opTotalAmount, opIcCardNo, opIcCardAddr,
|
opRemainMoney, openDt, clDt,
|
clType, clTotalAmount, clIcCardNo,
|
clIcCardAddr, clRemainMoney, clThisAmount,
|
clThisMoney, clThisTime, clOpenDt,
|
closeDt)
|
values (#{id,jdbcType=BIGINT}, #{controllerid,jdbcType=BIGINT}, #{intakeid,jdbcType=BIGINT},
|
#{rtuaddr,jdbcType=VARCHAR}, #{opdt,jdbcType=DATE}, #{optype,jdbcType=TINYINT},
|
#{optotalamount,jdbcType=DOUBLE}, #{opiccardno,jdbcType=VARCHAR}, #{opiccardaddr,jdbcType=VARCHAR},
|
#{opremainmoney,jdbcType=DOUBLE}, #{opendt,jdbcType=DATE}, #{cldt,jdbcType=DATE},
|
#{cltype,jdbcType=TINYINT}, #{cltotalamount,jdbcType=DOUBLE}, #{cliccardno,jdbcType=VARCHAR},
|
#{cliccardaddr,jdbcType=VARCHAR}, #{clremainmoney,jdbcType=DOUBLE}, #{clthisamount,jdbcType=DOUBLE},
|
#{clthismoney,jdbcType=DOUBLE}, #{clthistime,jdbcType=INTEGER}, #{clopendt,jdbcType=DATE},
|
#{closedt,jdbcType=DATE})
|
</insert>
|
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveReport">
|
<!--@mbg.generated-->
|
insert into rm_open_close_valve_report
|
<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="opdt != null">
|
opDt,
|
</if>
|
<if test="optype != null">
|
opType,
|
</if>
|
<if test="optotalamount != null">
|
opTotalAmount,
|
</if>
|
<if test="opiccardno != null">
|
opIcCardNo,
|
</if>
|
<if test="opiccardaddr != null">
|
opIcCardAddr,
|
</if>
|
<if test="opremainmoney != null">
|
opRemainMoney,
|
</if>
|
<if test="opendt != null">
|
openDt,
|
</if>
|
<if test="cldt != null">
|
clDt,
|
</if>
|
<if test="cltype != null">
|
clType,
|
</if>
|
<if test="cltotalamount != null">
|
clTotalAmount,
|
</if>
|
<if test="cliccardno != null">
|
clIcCardNo,
|
</if>
|
<if test="cliccardaddr != null">
|
clIcCardAddr,
|
</if>
|
<if test="clremainmoney != null">
|
clRemainMoney,
|
</if>
|
<if test="clthisamount != null">
|
clThisAmount,
|
</if>
|
<if test="clthismoney != null">
|
clThisMoney,
|
</if>
|
<if test="clthistime != null">
|
clThisTime,
|
</if>
|
<if test="clopendt != null">
|
clOpenDt,
|
</if>
|
<if test="closedt != null">
|
closeDt,
|
</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="opdt != null">
|
#{opdt,jdbcType=DATE},
|
</if>
|
<if test="optype != null">
|
#{optype,jdbcType=TINYINT},
|
</if>
|
<if test="optotalamount != null">
|
#{optotalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="opiccardno != null">
|
#{opiccardno,jdbcType=VARCHAR},
|
</if>
|
<if test="opiccardaddr != null">
|
#{opiccardaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="opremainmoney != null">
|
#{opremainmoney,jdbcType=DOUBLE},
|
</if>
|
<if test="opendt != null">
|
#{opendt,jdbcType=DATE},
|
</if>
|
<if test="cldt != null">
|
#{cldt,jdbcType=DATE},
|
</if>
|
<if test="cltype != null">
|
#{cltype,jdbcType=TINYINT},
|
</if>
|
<if test="cltotalamount != null">
|
#{cltotalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="cliccardno != null">
|
#{cliccardno,jdbcType=VARCHAR},
|
</if>
|
<if test="cliccardaddr != null">
|
#{cliccardaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="clremainmoney != null">
|
#{clremainmoney,jdbcType=DOUBLE},
|
</if>
|
<if test="clthisamount != null">
|
#{clthisamount,jdbcType=DOUBLE},
|
</if>
|
<if test="clthismoney != null">
|
#{clthismoney,jdbcType=DOUBLE},
|
</if>
|
<if test="clthistime != null">
|
#{clthistime,jdbcType=INTEGER},
|
</if>
|
<if test="clopendt != null">
|
#{clopendt,jdbcType=DATE},
|
</if>
|
<if test="closedt != null">
|
#{closedt,jdbcType=DATE},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveReport">
|
<!--@mbg.generated-->
|
update rm_open_close_valve_report
|
<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="opdt != null">
|
opDt = #{opdt,jdbcType=DATE},
|
</if>
|
<if test="optype != null">
|
opType = #{optype,jdbcType=TINYINT},
|
</if>
|
<if test="optotalamount != null">
|
opTotalAmount = #{optotalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="opiccardno != null">
|
opIcCardNo = #{opiccardno,jdbcType=VARCHAR},
|
</if>
|
<if test="opiccardaddr != null">
|
opIcCardAddr = #{opiccardaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="opremainmoney != null">
|
opRemainMoney = #{opremainmoney,jdbcType=DOUBLE},
|
</if>
|
<if test="opendt != null">
|
openDt = #{opendt,jdbcType=DATE},
|
</if>
|
<if test="cldt != null">
|
clDt = #{cldt,jdbcType=DATE},
|
</if>
|
<if test="cltype != null">
|
clType = #{cltype,jdbcType=TINYINT},
|
</if>
|
<if test="cltotalamount != null">
|
clTotalAmount = #{cltotalamount,jdbcType=DOUBLE},
|
</if>
|
<if test="cliccardno != null">
|
clIcCardNo = #{cliccardno,jdbcType=VARCHAR},
|
</if>
|
<if test="cliccardaddr != null">
|
clIcCardAddr = #{cliccardaddr,jdbcType=VARCHAR},
|
</if>
|
<if test="clremainmoney != null">
|
clRemainMoney = #{clremainmoney,jdbcType=DOUBLE},
|
</if>
|
<if test="clthisamount != null">
|
clThisAmount = #{clthisamount,jdbcType=DOUBLE},
|
</if>
|
<if test="clthismoney != null">
|
clThisMoney = #{clthismoney,jdbcType=DOUBLE},
|
</if>
|
<if test="clthistime != null">
|
clThisTime = #{clthistime,jdbcType=INTEGER},
|
</if>
|
<if test="clopendt != null">
|
clOpenDt = #{clopendt,jdbcType=DATE},
|
</if>
|
<if test="closedt != null">
|
closeDt = #{closedt,jdbcType=DATE},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveReport">
|
<!--@mbg.generated-->
|
update rm_open_close_valve_report
|
set controllerId = #{controllerid,jdbcType=BIGINT},
|
intakeId = #{intakeid,jdbcType=BIGINT},
|
rtuAddr = #{rtuaddr,jdbcType=VARCHAR},
|
opDt = #{opdt,jdbcType=DATE},
|
opType = #{optype,jdbcType=TINYINT},
|
opTotalAmount = #{optotalamount,jdbcType=DOUBLE},
|
opIcCardNo = #{opiccardno,jdbcType=VARCHAR},
|
opIcCardAddr = #{opiccardaddr,jdbcType=VARCHAR},
|
opRemainMoney = #{opremainmoney,jdbcType=DOUBLE},
|
openDt = #{opendt,jdbcType=DATE},
|
clDt = #{cldt,jdbcType=DATE},
|
clType = #{cltype,jdbcType=TINYINT},
|
clTotalAmount = #{cltotalamount,jdbcType=DOUBLE},
|
clIcCardNo = #{cliccardno,jdbcType=VARCHAR},
|
clIcCardAddr = #{cliccardaddr,jdbcType=VARCHAR},
|
clRemainMoney = #{clremainmoney,jdbcType=DOUBLE},
|
clThisAmount = #{clthisamount,jdbcType=DOUBLE},
|
clThisMoney = #{clthismoney,jdbcType=DOUBLE},
|
clThisTime = #{clthistime,jdbcType=INTEGER},
|
clOpenDt = #{clopendt,jdbcType=DATE},
|
closeDt = #{closedt,jdbcType=DATE}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|