TdBBillsDaysMapper.xml 6.18 KB
<?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.zteits.pay.mapper.TdBBillsDaysMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBBillsDays" >
    <result column="bill_date" property="billDate" jdbcType="DATE" />
    <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
    <result column="pl_name" property="plName" jdbcType="VARCHAR" />
    <result column="block_no" property="blockNo" jdbcType="BIGINT" />
    <result column="block_name" property="blockName" jdbcType="VARCHAR" />
    <result column="berth_range_no" property="berthRangeNo" jdbcType="VARCHAR" />
    <result column="berth_range_name" property="berthRangeName" jdbcType="VARCHAR" />
    <result column="berths" property="berths" jdbcType="INTEGER" />
    <result column="arrearage" property="arrearage" jdbcType="INTEGER" />
    <result column="cash_received" property="cashReceived" jdbcType="INTEGER" />
    <result column="wx_received" property="wxReceived" jdbcType="INTEGER" />
    <result column="ali_received" property="aliReceived" jdbcType="INTEGER" />
    <result column="cash_repay" property="cashRepay" jdbcType="INTEGER" />
    <result column="wx_repay" property="wxRepay" jdbcType="INTEGER" />
    <result column="ali_repay" property="aliRepay" jdbcType="INTEGER" />
    <result column="data_status" property="dataStatus" jdbcType="INTEGER" />
    <result column="create_empid" property="createEmpid" jdbcType="VARCHAR" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="modfiy_empid" property="modfiyEmpid" jdbcType="VARCHAR" />
    <result column="modfiy_date" property="modfiyDate" jdbcType="TIMESTAMP" />
  </resultMap>
  <insert id="insert" parameterType="com.zteits.pay.domain.TdBBillsDays" >
    insert into td_b_bills_days (bill_date, pl_no, pl_name, 
      block_no, block_name, berth_range_no, 
      berth_range_name, berths, arrearage, 
      cash_received, wx_received, ali_received, 
      cash_repay, wx_repay, ali_repay, 
      data_status, create_empid, create_date, 
      modfiy_empid, modfiy_date)
    values (#{billDate,jdbcType=DATE}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, 
      #{blockNo,jdbcType=BIGINT}, #{blockName,jdbcType=VARCHAR}, #{berthRangeNo,jdbcType=VARCHAR}, 
      #{berthRangeName,jdbcType=VARCHAR}, #{berths,jdbcType=INTEGER}, #{arrearage,jdbcType=INTEGER}, 
      #{cashReceived,jdbcType=INTEGER}, #{wxReceived,jdbcType=INTEGER}, #{aliReceived,jdbcType=INTEGER}, 
      #{cashRepay,jdbcType=INTEGER}, #{wxRepay,jdbcType=INTEGER}, #{aliRepay,jdbcType=INTEGER}, 
      #{dataStatus,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, 
      #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdBBillsDays" >
    insert into td_b_bills_days
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="billDate != null" >
        bill_date,
      </if>
      <if test="plNo != null" >
        pl_no,
      </if>
      <if test="plName != null" >
        pl_name,
      </if>
      <if test="blockNo != null" >
        block_no,
      </if>
      <if test="blockName != null" >
        block_name,
      </if>
      <if test="berthRangeNo != null" >
        berth_range_no,
      </if>
      <if test="berthRangeName != null" >
        berth_range_name,
      </if>
      <if test="berths != null" >
        berths,
      </if>
      <if test="arrearage != null" >
        arrearage,
      </if>
      <if test="cashReceived != null" >
        cash_received,
      </if>
      <if test="wxReceived != null" >
        wx_received,
      </if>
      <if test="aliReceived != null" >
        ali_received,
      </if>
      <if test="cashRepay != null" >
        cash_repay,
      </if>
      <if test="wxRepay != null" >
        wx_repay,
      </if>
      <if test="aliRepay != null" >
        ali_repay,
      </if>
      <if test="dataStatus != null" >
        data_status,
      </if>
      <if test="createEmpid != null" >
        create_empid,
      </if>
      <if test="createDate != null" >
        create_date,
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid,
      </if>
      <if test="modfiyDate != null" >
        modfiy_date,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="billDate != null" >
        #{billDate,jdbcType=DATE},
      </if>
      <if test="plNo != null" >
        #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plName != null" >
        #{plName,jdbcType=VARCHAR},
      </if>
      <if test="blockNo != null" >
        #{blockNo,jdbcType=BIGINT},
      </if>
      <if test="blockName != null" >
        #{blockName,jdbcType=VARCHAR},
      </if>
      <if test="berthRangeNo != null" >
        #{berthRangeNo,jdbcType=VARCHAR},
      </if>
      <if test="berthRangeName != null" >
        #{berthRangeName,jdbcType=VARCHAR},
      </if>
      <if test="berths != null" >
        #{berths,jdbcType=INTEGER},
      </if>
      <if test="arrearage != null" >
        #{arrearage,jdbcType=INTEGER},
      </if>
      <if test="cashReceived != null" >
        #{cashReceived,jdbcType=INTEGER},
      </if>
      <if test="wxReceived != null" >
        #{wxReceived,jdbcType=INTEGER},
      </if>
      <if test="aliReceived != null" >
        #{aliReceived,jdbcType=INTEGER},
      </if>
      <if test="cashRepay != null" >
        #{cashRepay,jdbcType=INTEGER},
      </if>
      <if test="wxRepay != null" >
        #{wxRepay,jdbcType=INTEGER},
      </if>
      <if test="aliRepay != null" >
        #{aliRepay,jdbcType=INTEGER},
      </if>
      <if test="dataStatus != null" >
        #{dataStatus,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null" >
        #{createEmpid,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
</mapper>