<?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="pwc.taxtech.atms.invoice.OutputFpxxtbMapper">
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.OutputFpxxtb">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="ID" jdbcType="VARCHAR" property="ID" />
    <result column="FPQQLSH" jdbcType="VARCHAR" property="FPQQLSH" />
    <result column="FPDM" jdbcType="VARCHAR" property="FPDM" />
    <result column="FPHM" jdbcType="VARCHAR" property="FPHM" />
    <result column="KPRQ" jdbcType="VARCHAR" property="KPRQ" />
    <result column="FPLXDM" jdbcType="VARCHAR" property="FPLXDM" />
    <result column="EWM" jdbcType="VARCHAR" property="EWM" />
    <result column="JQBH" jdbcType="VARCHAR" property="JQBH" />
    <result column="JYM" jdbcType="VARCHAR" property="JYM" />
    <result column="GFMC" jdbcType="VARCHAR" property="GFMC" />
    <result column="GFSH" jdbcType="VARCHAR" property="GFSH" />
    <result column="GFDZDH" jdbcType="VARCHAR" property="GFDZDH" />
    <result column="GFYHZH" jdbcType="VARCHAR" property="GFYHZH" />
    <result column="XFSH" jdbcType="VARCHAR" property="XFSH" />
    <result column="XFMC" jdbcType="VARCHAR" property="XFMC" />
    <result column="XFDZDH" jdbcType="VARCHAR" property="XFDZDH" />
    <result column="XFYHZH" jdbcType="VARCHAR" property="XFYHZH" />
    <result column="BZ" jdbcType="VARCHAR" property="BZ" />
    <result column="SKR" jdbcType="VARCHAR" property="SKR" />
    <result column="FHR" jdbcType="VARCHAR" property="FHR" />
    <result column="KPR" jdbcType="VARCHAR" property="KPR" />
    <result column="FPLX" jdbcType="VARCHAR" property="FPLX" />
    <result column="FPZT" jdbcType="VARCHAR" property="FPZT" />
    <result column="SPBH" jdbcType="VARCHAR" property="SPBH" />
    <result column="XTLY" jdbcType="VARCHAR" property="XTLY" />
    <result column="CJSJ" jdbcType="VARCHAR" property="CJSJ" />
    <result column="HJJE" jdbcType="VARCHAR" property="HJJE" />
    <result column="HJSE" jdbcType="VARCHAR" property="HJSE" />
    <result column="JSHJ" jdbcType="VARCHAR" property="JSHJ" />
    <result column="ZKJSHJ" jdbcType="VARCHAR" property="ZKJSHJ" />
    <result column="SLV" jdbcType="VARCHAR" property="SLV" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    ID, FPQQLSH, FPDM, FPHM, KPRQ, FPLXDM, EWM, JQBH, JYM, GFMC, GFSH, GFDZDH, GFYHZH, 
    XFSH, XFMC, XFDZDH, XFYHZH, BZ, SKR, FHR, KPR, FPLX, FPZT, SPBH, XTLY, CJSJ, HJJE, 
    HJSE, JSHJ, ZKJSHJ, SLV
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputFpxxtbExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from OUTPUT_FPXXTB
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputFpxxtbExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from OUTPUT_FPXXTB
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.OutputFpxxtb">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into OUTPUT_FPXXTB (ID, FPQQLSH, FPDM, 
      FPHM, KPRQ, FPLXDM, 
      EWM, JQBH, JYM, GFMC, 
      GFSH, GFDZDH, GFYHZH, 
      XFSH, XFMC, XFDZDH, 
      XFYHZH, BZ, SKR, FHR, 
      KPR, FPLX, FPZT, SPBH, 
      XTLY, CJSJ, HJJE, HJSE, 
      JSHJ, ZKJSHJ, SLV)
    values (#{ID,jdbcType=VARCHAR}, #{FPQQLSH,jdbcType=VARCHAR}, #{FPDM,jdbcType=VARCHAR}, 
      #{FPHM,jdbcType=VARCHAR}, #{KPRQ,jdbcType=VARCHAR}, #{FPLXDM,jdbcType=VARCHAR}, 
      #{EWM,jdbcType=VARCHAR}, #{JQBH,jdbcType=VARCHAR}, #{JYM,jdbcType=VARCHAR}, #{GFMC,jdbcType=VARCHAR}, 
      #{GFSH,jdbcType=VARCHAR}, #{GFDZDH,jdbcType=VARCHAR}, #{GFYHZH,jdbcType=VARCHAR}, 
      #{XFSH,jdbcType=VARCHAR}, #{XFMC,jdbcType=VARCHAR}, #{XFDZDH,jdbcType=VARCHAR}, 
      #{XFYHZH,jdbcType=VARCHAR}, #{BZ,jdbcType=VARCHAR}, #{SKR,jdbcType=VARCHAR}, #{FHR,jdbcType=VARCHAR}, 
      #{KPR,jdbcType=VARCHAR}, #{FPLX,jdbcType=VARCHAR}, #{FPZT,jdbcType=VARCHAR}, #{SPBH,jdbcType=VARCHAR}, 
      #{XTLY,jdbcType=VARCHAR}, #{CJSJ,jdbcType=VARCHAR}, #{HJJE,jdbcType=VARCHAR}, #{HJSE,jdbcType=VARCHAR}, 
      #{JSHJ,jdbcType=VARCHAR}, #{ZKJSHJ,jdbcType=VARCHAR}, #{SLV,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.OutputFpxxtb">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into OUTPUT_FPXXTB
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="ID != null">
        ID,
      </if>
      <if test="FPQQLSH != null">
        FPQQLSH,
      </if>
      <if test="FPDM != null">
        FPDM,
      </if>
      <if test="FPHM != null">
        FPHM,
      </if>
      <if test="KPRQ != null">
        KPRQ,
      </if>
      <if test="FPLXDM != null">
        FPLXDM,
      </if>
      <if test="EWM != null">
        EWM,
      </if>
      <if test="JQBH != null">
        JQBH,
      </if>
      <if test="JYM != null">
        JYM,
      </if>
      <if test="GFMC != null">
        GFMC,
      </if>
      <if test="GFSH != null">
        GFSH,
      </if>
      <if test="GFDZDH != null">
        GFDZDH,
      </if>
      <if test="GFYHZH != null">
        GFYHZH,
      </if>
      <if test="XFSH != null">
        XFSH,
      </if>
      <if test="XFMC != null">
        XFMC,
      </if>
      <if test="XFDZDH != null">
        XFDZDH,
      </if>
      <if test="XFYHZH != null">
        XFYHZH,
      </if>
      <if test="BZ != null">
        BZ,
      </if>
      <if test="SKR != null">
        SKR,
      </if>
      <if test="FHR != null">
        FHR,
      </if>
      <if test="KPR != null">
        KPR,
      </if>
      <if test="FPLX != null">
        FPLX,
      </if>
      <if test="FPZT != null">
        FPZT,
      </if>
      <if test="SPBH != null">
        SPBH,
      </if>
      <if test="XTLY != null">
        XTLY,
      </if>
      <if test="CJSJ != null">
        CJSJ,
      </if>
      <if test="HJJE != null">
        HJJE,
      </if>
      <if test="HJSE != null">
        HJSE,
      </if>
      <if test="JSHJ != null">
        JSHJ,
      </if>
      <if test="ZKJSHJ != null">
        ZKJSHJ,
      </if>
      <if test="SLV != null">
        SLV,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="ID != null">
        #{ID,jdbcType=VARCHAR},
      </if>
      <if test="FPQQLSH != null">
        #{FPQQLSH,jdbcType=VARCHAR},
      </if>
      <if test="FPDM != null">
        #{FPDM,jdbcType=VARCHAR},
      </if>
      <if test="FPHM != null">
        #{FPHM,jdbcType=VARCHAR},
      </if>
      <if test="KPRQ != null">
        #{KPRQ,jdbcType=VARCHAR},
      </if>
      <if test="FPLXDM != null">
        #{FPLXDM,jdbcType=VARCHAR},
      </if>
      <if test="EWM != null">
        #{EWM,jdbcType=VARCHAR},
      </if>
      <if test="JQBH != null">
        #{JQBH,jdbcType=VARCHAR},
      </if>
      <if test="JYM != null">
        #{JYM,jdbcType=VARCHAR},
      </if>
      <if test="GFMC != null">
        #{GFMC,jdbcType=VARCHAR},
      </if>
      <if test="GFSH != null">
        #{GFSH,jdbcType=VARCHAR},
      </if>
      <if test="GFDZDH != null">
        #{GFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="GFYHZH != null">
        #{GFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="XFSH != null">
        #{XFSH,jdbcType=VARCHAR},
      </if>
      <if test="XFMC != null">
        #{XFMC,jdbcType=VARCHAR},
      </if>
      <if test="XFDZDH != null">
        #{XFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="XFYHZH != null">
        #{XFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="BZ != null">
        #{BZ,jdbcType=VARCHAR},
      </if>
      <if test="SKR != null">
        #{SKR,jdbcType=VARCHAR},
      </if>
      <if test="FHR != null">
        #{FHR,jdbcType=VARCHAR},
      </if>
      <if test="KPR != null">
        #{KPR,jdbcType=VARCHAR},
      </if>
      <if test="FPLX != null">
        #{FPLX,jdbcType=VARCHAR},
      </if>
      <if test="FPZT != null">
        #{FPZT,jdbcType=VARCHAR},
      </if>
      <if test="SPBH != null">
        #{SPBH,jdbcType=VARCHAR},
      </if>
      <if test="XTLY != null">
        #{XTLY,jdbcType=VARCHAR},
      </if>
      <if test="CJSJ != null">
        #{CJSJ,jdbcType=VARCHAR},
      </if>
      <if test="HJJE != null">
        #{HJJE,jdbcType=VARCHAR},
      </if>
      <if test="HJSE != null">
        #{HJSE,jdbcType=VARCHAR},
      </if>
      <if test="JSHJ != null">
        #{JSHJ,jdbcType=VARCHAR},
      </if>
      <if test="ZKJSHJ != null">
        #{ZKJSHJ,jdbcType=VARCHAR},
      </if>
      <if test="SLV != null">
        #{SLV,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.OutputFpxxtbExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from OUTPUT_FPXXTB
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update OUTPUT_FPXXTB
    <set>
      <if test="record.ID != null">
        ID = #{record.ID,jdbcType=VARCHAR},
      </if>
      <if test="record.FPQQLSH != null">
        FPQQLSH = #{record.FPQQLSH,jdbcType=VARCHAR},
      </if>
      <if test="record.FPDM != null">
        FPDM = #{record.FPDM,jdbcType=VARCHAR},
      </if>
      <if test="record.FPHM != null">
        FPHM = #{record.FPHM,jdbcType=VARCHAR},
      </if>
      <if test="record.KPRQ != null">
        KPRQ = #{record.KPRQ,jdbcType=VARCHAR},
      </if>
      <if test="record.FPLXDM != null">
        FPLXDM = #{record.FPLXDM,jdbcType=VARCHAR},
      </if>
      <if test="record.EWM != null">
        EWM = #{record.EWM,jdbcType=VARCHAR},
      </if>
      <if test="record.JQBH != null">
        JQBH = #{record.JQBH,jdbcType=VARCHAR},
      </if>
      <if test="record.JYM != null">
        JYM = #{record.JYM,jdbcType=VARCHAR},
      </if>
      <if test="record.GFMC != null">
        GFMC = #{record.GFMC,jdbcType=VARCHAR},
      </if>
      <if test="record.GFSH != null">
        GFSH = #{record.GFSH,jdbcType=VARCHAR},
      </if>
      <if test="record.GFDZDH != null">
        GFDZDH = #{record.GFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="record.GFYHZH != null">
        GFYHZH = #{record.GFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="record.XFSH != null">
        XFSH = #{record.XFSH,jdbcType=VARCHAR},
      </if>
      <if test="record.XFMC != null">
        XFMC = #{record.XFMC,jdbcType=VARCHAR},
      </if>
      <if test="record.XFDZDH != null">
        XFDZDH = #{record.XFDZDH,jdbcType=VARCHAR},
      </if>
      <if test="record.XFYHZH != null">
        XFYHZH = #{record.XFYHZH,jdbcType=VARCHAR},
      </if>
      <if test="record.BZ != null">
        BZ = #{record.BZ,jdbcType=VARCHAR},
      </if>
      <if test="record.SKR != null">
        SKR = #{record.SKR,jdbcType=VARCHAR},
      </if>
      <if test="record.FHR != null">
        FHR = #{record.FHR,jdbcType=VARCHAR},
      </if>
      <if test="record.KPR != null">
        KPR = #{record.KPR,jdbcType=VARCHAR},
      </if>
      <if test="record.FPLX != null">
        FPLX = #{record.FPLX,jdbcType=VARCHAR},
      </if>
      <if test="record.FPZT != null">
        FPZT = #{record.FPZT,jdbcType=VARCHAR},
      </if>
      <if test="record.SPBH != null">
        SPBH = #{record.SPBH,jdbcType=VARCHAR},
      </if>
      <if test="record.XTLY != null">
        XTLY = #{record.XTLY,jdbcType=VARCHAR},
      </if>
      <if test="record.CJSJ != null">
        CJSJ = #{record.CJSJ,jdbcType=VARCHAR},
      </if>
      <if test="record.HJJE != null">
        HJJE = #{record.HJJE,jdbcType=VARCHAR},
      </if>
      <if test="record.HJSE != null">
        HJSE = #{record.HJSE,jdbcType=VARCHAR},
      </if>
      <if test="record.JSHJ != null">
        JSHJ = #{record.JSHJ,jdbcType=VARCHAR},
      </if>
      <if test="record.ZKJSHJ != null">
        ZKJSHJ = #{record.ZKJSHJ,jdbcType=VARCHAR},
      </if>
      <if test="record.SLV != null">
        SLV = #{record.SLV,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update OUTPUT_FPXXTB
    set ID = #{record.ID,jdbcType=VARCHAR},
      FPQQLSH = #{record.FPQQLSH,jdbcType=VARCHAR},
      FPDM = #{record.FPDM,jdbcType=VARCHAR},
      FPHM = #{record.FPHM,jdbcType=VARCHAR},
      KPRQ = #{record.KPRQ,jdbcType=VARCHAR},
      FPLXDM = #{record.FPLXDM,jdbcType=VARCHAR},
      EWM = #{record.EWM,jdbcType=VARCHAR},
      JQBH = #{record.JQBH,jdbcType=VARCHAR},
      JYM = #{record.JYM,jdbcType=VARCHAR},
      GFMC = #{record.GFMC,jdbcType=VARCHAR},
      GFSH = #{record.GFSH,jdbcType=VARCHAR},
      GFDZDH = #{record.GFDZDH,jdbcType=VARCHAR},
      GFYHZH = #{record.GFYHZH,jdbcType=VARCHAR},
      XFSH = #{record.XFSH,jdbcType=VARCHAR},
      XFMC = #{record.XFMC,jdbcType=VARCHAR},
      XFDZDH = #{record.XFDZDH,jdbcType=VARCHAR},
      XFYHZH = #{record.XFYHZH,jdbcType=VARCHAR},
      BZ = #{record.BZ,jdbcType=VARCHAR},
      SKR = #{record.SKR,jdbcType=VARCHAR},
      FHR = #{record.FHR,jdbcType=VARCHAR},
      KPR = #{record.KPR,jdbcType=VARCHAR},
      FPLX = #{record.FPLX,jdbcType=VARCHAR},
      FPZT = #{record.FPZT,jdbcType=VARCHAR},
      SPBH = #{record.SPBH,jdbcType=VARCHAR},
      XTLY = #{record.XTLY,jdbcType=VARCHAR},
      CJSJ = #{record.CJSJ,jdbcType=VARCHAR},
      HJJE = #{record.HJJE,jdbcType=VARCHAR},
      HJSE = #{record.HJSE,jdbcType=VARCHAR},
      JSHJ = #{record.JSHJ,jdbcType=VARCHAR},
      ZKJSHJ = #{record.ZKJSHJ,jdbcType=VARCHAR},
      SLV = #{record.SLV,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
</mapper>