<?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="cn.com.ty.lift.ud.payment.mapper.ApplyInvoiceItemMapper" >
  <resultMap id="BaseResultMap" type="cn.com.ty.lift.ud.payment.mapper.entity.ApplyInvoiceItemEntity" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="data_id" property="dataId" jdbcType="INTEGER" />
    <result column="data_type" property="dataType" jdbcType="INTEGER" />
    <result column="invoice_id" property="invoiceId" jdbcType="INTEGER" />
    <result column="fphxz" property="fphxz" jdbcType="VARCHAR" />
    <result column="xmmc" property="xmmc" jdbcType="VARCHAR" />
    <result column="dw" property="dw" jdbcType="VARCHAR" />
    <result column="ggxh" property="ggxh" jdbcType="VARCHAR" />
    <result column="xmsl" property="xmsl" jdbcType="VARCHAR" />
    <result column="xmdj" property="xmdj" jdbcType="VARCHAR" />
    <result column="xmze" property="xmze" jdbcType="VARCHAR" />
    <result column="sl" property="sl" jdbcType="VARCHAR" />
    <result column="se" property="se" jdbcType="VARCHAR" />
    <result column="create_by" property="createBy" jdbcType="VARCHAR" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    id, data_id, data_type, invoice_id, fphxz, xmmc, dw, ggxh, xmsl, xmdj, xmze, sl, 
    se, create_by, create_time, update_by, update_time
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    select 
    <include refid="Base_Column_List" />
    from apply_invoice_item
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    delete from apply_invoice_item
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insertSelective" parameterType="cn.com.ty.lift.ud.payment.mapper.entity.ApplyInvoiceItemEntity" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    insert into apply_invoice_item
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="dataId != null" >
        data_id,
      </if>
      <if test="dataType != null" >
        data_type,
      </if>
      <if test="invoiceId != null" >
        invoice_id,
      </if>
      <if test="fphxz != null" >
        fphxz,
      </if>
      <if test="xmmc != null" >
        xmmc,
      </if>
      <if test="dw != null" >
        dw,
      </if>
      <if test="ggxh != null" >
        ggxh,
      </if>
      <if test="xmsl != null" >
        xmsl,
      </if>
      <if test="xmdj != null" >
        xmdj,
      </if>
      <if test="xmze != null" >
        xmze,
      </if>
      <if test="sl != null" >
        sl,
      </if>
      <if test="se != null" >
        se,
      </if>
      <if test="createBy != null" >
        create_by,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="updateBy != null" >
        update_by,
      </if>
      <if test="updateTime != null" >
        update_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="dataId != null" >
        #{dataId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null" >
        #{dataType,jdbcType=INTEGER},
      </if>
      <if test="invoiceId != null" >
        #{invoiceId,jdbcType=INTEGER},
      </if>
      <if test="fphxz != null" >
        #{fphxz,jdbcType=VARCHAR},
      </if>
      <if test="xmmc != null" >
        #{xmmc,jdbcType=VARCHAR},
      </if>
      <if test="dw != null" >
        #{dw,jdbcType=VARCHAR},
      </if>
      <if test="ggxh != null" >
        #{ggxh,jdbcType=VARCHAR},
      </if>
      <if test="xmsl != null" >
        #{xmsl,jdbcType=VARCHAR},
      </if>
      <if test="xmdj != null" >
        #{xmdj,jdbcType=VARCHAR},
      </if>
      <if test="xmze != null" >
        #{xmze,jdbcType=VARCHAR},
      </if>
      <if test="sl != null" >
        #{sl,jdbcType=VARCHAR},
      </if>
      <if test="se != null" >
        #{se,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null" >
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null" >
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null" >
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="cn.com.ty.lift.ud.payment.mapper.entity.ApplyInvoiceItemEntity" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    update apply_invoice_item
    <set >
      <if test="dataId != null" >
        data_id = #{dataId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null" >
        data_type = #{dataType,jdbcType=INTEGER},
      </if>
      <if test="invoiceId != null" >
        invoice_id = #{invoiceId,jdbcType=INTEGER},
      </if>
      <if test="fphxz != null" >
        fphxz = #{fphxz,jdbcType=VARCHAR},
      </if>
      <if test="xmmc != null" >
        xmmc = #{xmmc,jdbcType=VARCHAR},
      </if>
      <if test="dw != null" >
        dw = #{dw,jdbcType=VARCHAR},
      </if>
      <if test="ggxh != null" >
        ggxh = #{ggxh,jdbcType=VARCHAR},
      </if>
      <if test="xmsl != null" >
        xmsl = #{xmsl,jdbcType=VARCHAR},
      </if>
      <if test="xmdj != null" >
        xmdj = #{xmdj,jdbcType=VARCHAR},
      </if>
      <if test="xmze != null" >
        xmze = #{xmze,jdbcType=VARCHAR},
      </if>
      <if test="sl != null" >
        sl = #{sl,jdbcType=VARCHAR},
      </if>
      <if test="se != null" >
        se = #{se,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null" >
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null" >
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null" >
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.com.ty.lift.ud.payment.mapper.entity.ApplyInvoiceItemEntity" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Sat Apr 25 10:41:17 CST 2020.
    -->
    update apply_invoice_item
    set data_id = #{dataId,jdbcType=INTEGER},
      data_type = #{dataType,jdbcType=INTEGER},
      invoice_id = #{invoiceId,jdbcType=INTEGER},
      fphxz = #{fphxz,jdbcType=VARCHAR},
      xmmc = #{xmmc,jdbcType=VARCHAR},
      dw = #{dw,jdbcType=VARCHAR},
      ggxh = #{ggxh,jdbcType=VARCHAR},
      xmsl = #{xmsl,jdbcType=VARCHAR},
      xmdj = #{xmdj,jdbcType=VARCHAR},
      xmze = #{xmze,jdbcType=VARCHAR},
      sl = #{sl,jdbcType=VARCHAR},
      se = #{se,jdbcType=VARCHAR},
      create_by = #{createBy,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>