<?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.RmWorkReportLastMapper">
|
<resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoRm.RmWorkReportLast">
|
<!--@mbg.generated-->
|
<!--@Table rm_work_report_last-->
|
<id column="id" jdbcType="BIGINT" property="id" />
|
<result column="controller_id" jdbcType="BIGINT" property="controllerId" />
|
<result column="intake_id" jdbcType="BIGINT" property="intakeId" />
|
<result column="rtu_addr" jdbcType="VARCHAR" property="rtuAddr" />
|
<result column="dt" jdbcType="TIMESTAMP" property="dt" />
|
<result column="ic_card_no" jdbcType="VARCHAR" property="icCardNo" />
|
<result column="total_amount" jdbcType="DOUBLE" property="totalAmount" />
|
<result column="instant_amount" jdbcType="DOUBLE" property="instantAmount" />
|
<result column="remain_money" jdbcType="DOUBLE" property="remainMoney" />
|
<result column="rtu_dt" jdbcType="TIMESTAMP" property="rtuDt" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, controller_id, intake_id, rtu_addr, dt, ic_card_no, total_amount, instant_amount,
|
remain_money, rtu_dt
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from rm_work_report_last
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<select id="selectByRtuAddr" parameterType="java.lang.String" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from rm_work_report_last
|
where rtu_addr = #{rtuAddr,jdbcType=VARCHAR}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<!--@mbg.generated-->
|
delete from rm_work_report_last
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmWorkReportLast">
|
<!--@mbg.generated-->
|
insert into rm_work_report_last (id, controller_id, intake_id,
|
rtu_addr, dt, ic_card_no,
|
total_amount, instant_amount, remain_money,
|
rtu_dt)
|
values (#{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT},
|
#{rtuAddr,jdbcType=VARCHAR}, #{dt,jdbcType=TIMESTAMP}, #{icCardNo,jdbcType=VARCHAR},
|
#{totalAmount,jdbcType=DOUBLE}, #{instantAmount,jdbcType=DOUBLE}, #{remainMoney,jdbcType=DOUBLE},
|
#{rtuDt,jdbcType=TIMESTAMP})
|
</insert>
|
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmWorkReportLast">
|
<!--@mbg.generated-->
|
insert into rm_work_report_last
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
id,
|
</if>
|
<if test="controllerId != null">
|
controller_id,
|
</if>
|
<if test="intakeId != null">
|
intake_id,
|
</if>
|
<if test="rtuAddr != null">
|
rtu_addr,
|
</if>
|
<if test="dt != null">
|
dt,
|
</if>
|
<if test="icCardNo != null">
|
ic_card_no,
|
</if>
|
<if test="totalAmount != null">
|
total_amount,
|
</if>
|
<if test="instantAmount != null">
|
instant_amount,
|
</if>
|
<if test="remainMoney != null">
|
remain_money,
|
</if>
|
<if test="rtuDt != null">
|
rtu_dt,
|
</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="icCardNo != null">
|
#{icCardNo,jdbcType=VARCHAR},
|
</if>
|
<if test="totalAmount != null">
|
#{totalAmount,jdbcType=DOUBLE},
|
</if>
|
<if test="instantAmount != null">
|
#{instantAmount,jdbcType=DOUBLE},
|
</if>
|
<if test="remainMoney != null">
|
#{remainMoney,jdbcType=DOUBLE},
|
</if>
|
<if test="rtuDt != null">
|
#{rtuDt,jdbcType=TIMESTAMP},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmWorkReportLast">
|
<!--@mbg.generated-->
|
update rm_work_report_last
|
<set>
|
<if test="controllerId != null">
|
controller_id = #{controllerId,jdbcType=BIGINT},
|
</if>
|
<if test="intakeId != null">
|
intake_id = #{intakeId,jdbcType=BIGINT},
|
</if>
|
<if test="rtuAddr != null">
|
rtu_addr = #{rtuAddr,jdbcType=VARCHAR},
|
</if>
|
<if test="dt != null">
|
dt = #{dt,jdbcType=TIMESTAMP},
|
</if>
|
<if test="icCardNo != null">
|
ic_card_no = #{icCardNo,jdbcType=VARCHAR},
|
</if>
|
<if test="totalAmount != null">
|
total_amount = #{totalAmount,jdbcType=DOUBLE},
|
</if>
|
<if test="instantAmount != null">
|
instant_amount = #{instantAmount,jdbcType=DOUBLE},
|
</if>
|
<if test="remainMoney != null">
|
remain_money = #{remainMoney,jdbcType=DOUBLE},
|
</if>
|
<if test="rtuDt != null">
|
rtu_dt = #{rtuDt,jdbcType=TIMESTAMP},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmWorkReportLast">
|
<!--@mbg.generated-->
|
update rm_work_report_last
|
set controller_id = #{controllerId,jdbcType=BIGINT},
|
intake_id = #{intakeId,jdbcType=BIGINT},
|
rtu_addr = #{rtuAddr,jdbcType=VARCHAR},
|
dt = #{dt,jdbcType=TIMESTAMP},
|
ic_card_no = #{icCardNo,jdbcType=VARCHAR},
|
total_amount = #{totalAmount,jdbcType=DOUBLE},
|
instant_amount = #{instantAmount,jdbcType=DOUBLE},
|
remain_money = #{remainMoney,jdbcType=DOUBLE},
|
rtu_dt = #{rtuDt,jdbcType=TIMESTAMP}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|