<?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.vat.dao.InvoiceDataMapper">
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.InvoiceData">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
    <result column="project_id" jdbcType="VARCHAR" property="projectId" />
    <result column="company_code" jdbcType="VARCHAR" property="companyCode" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="tms_period" jdbcType="INTEGER" property="tmsPeriod" />
    <result column="period" jdbcType="INTEGER" property="period" />
    <result column="count_type" jdbcType="TINYINT" property="countType" />
    <result column="special_invoice_amount1" jdbcType="BIGINT" property="specialInvoiceAmount1" />
    <result column="special_invoice_amount2" jdbcType="BIGINT" property="specialInvoiceAmount2" />
    <result column="special_invoice_amount3" jdbcType="BIGINT" property="specialInvoiceAmount3" />
    <result column="special_invoice_amount4" jdbcType="BIGINT" property="specialInvoiceAmount4" />
    <result column="special_invoice_sales_amount1" jdbcType="DECIMAL" property="specialInvoiceSalesAmount1" />
    <result column="special_invoice_sales_amount2" jdbcType="DECIMAL" property="specialInvoiceSalesAmount2" />
    <result column="special_invoice_sales_amount3" jdbcType="DECIMAL" property="specialInvoiceSalesAmount3" />
    <result column="special_invoice_sales_amount4" jdbcType="DECIMAL" property="specialInvoiceSalesAmount4" />
    <result column="special_invoice_sales_amount5" jdbcType="DECIMAL" property="specialInvoiceSalesAmount5" />
    <result column="special_invoice_tax_amount1" jdbcType="DECIMAL" property="specialInvoiceTaxAmount1" />
    <result column="special_invoice_tax_amount2" jdbcType="DECIMAL" property="specialInvoiceTaxAmount2" />
    <result column="special_invoice_tax_amount3" jdbcType="DECIMAL" property="specialInvoiceTaxAmount3" />
    <result column="special_invoice_tax_amount4" jdbcType="DECIMAL" property="specialInvoiceTaxAmount4" />
    <result column="special_invoice_tax_amount5" jdbcType="DECIMAL" property="specialInvoiceTaxAmount5" />
    <result column="invoice_amount1" jdbcType="BIGINT" property="invoiceAmount1" />
    <result column="invoice_amount2" jdbcType="BIGINT" property="invoiceAmount2" />
    <result column="invoice_amount3" jdbcType="BIGINT" property="invoiceAmount3" />
    <result column="invoice_amount4" jdbcType="BIGINT" property="invoiceAmount4" />
    <result column="invoice_sales_amount1" jdbcType="DECIMAL" property="invoiceSalesAmount1" />
    <result column="invoice_sales_amount2" jdbcType="DECIMAL" property="invoiceSalesAmount2" />
    <result column="invoice_sales_amount3" jdbcType="DECIMAL" property="invoiceSalesAmount3" />
    <result column="invoice_sales_amount4" jdbcType="DECIMAL" property="invoiceSalesAmount4" />
    <result column="invoice_sales_amount5" jdbcType="DECIMAL" property="invoiceSalesAmount5" />
    <result column="invoice_tax_amount1" jdbcType="DECIMAL" property="invoiceTaxAmount1" />
    <result column="invoice_tax_amount2" jdbcType="DECIMAL" property="invoiceTaxAmount2" />
    <result column="invoice_tax_amount3" jdbcType="DECIMAL" property="invoiceTaxAmount3" />
    <result column="invoice_tax_amount4" jdbcType="DECIMAL" property="invoiceTaxAmount4" />
    <result column="invoice_tax_amount5" jdbcType="DECIMAL" property="invoiceTaxAmount5" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </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, organization_id, project_id, company_code, company_name, tms_period, period, 
    count_type, special_invoice_amount1, special_invoice_amount2, special_invoice_amount3, 
    special_invoice_amount4, special_invoice_sales_amount1, special_invoice_sales_amount2, 
    special_invoice_sales_amount3, special_invoice_sales_amount4, special_invoice_sales_amount5, 
    special_invoice_tax_amount1, special_invoice_tax_amount2, special_invoice_tax_amount3, 
    special_invoice_tax_amount4, special_invoice_tax_amount5, invoice_amount1, invoice_amount2, 
    invoice_amount3, invoice_amount4, invoice_sales_amount1, invoice_sales_amount2, invoice_sales_amount3, 
    invoice_sales_amount4, invoice_sales_amount5, invoice_tax_amount1, invoice_tax_amount2, 
    invoice_tax_amount3, invoice_tax_amount4, invoice_tax_amount5, create_time, update_time
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.InvoiceDataExample" 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 invoice_data
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from invoice_data
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from invoice_data
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.InvoiceDataExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from invoice_data
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.InvoiceData">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into invoice_data (id, organization_id, project_id, 
      company_code, company_name, tms_period, 
      period, count_type, special_invoice_amount1, 
      special_invoice_amount2, special_invoice_amount3, 
      special_invoice_amount4, special_invoice_sales_amount1, 
      special_invoice_sales_amount2, special_invoice_sales_amount3, 
      special_invoice_sales_amount4, special_invoice_sales_amount5, 
      special_invoice_tax_amount1, special_invoice_tax_amount2, 
      special_invoice_tax_amount3, special_invoice_tax_amount4, 
      special_invoice_tax_amount5, invoice_amount1, 
      invoice_amount2, invoice_amount3, invoice_amount4, 
      invoice_sales_amount1, invoice_sales_amount2, 
      invoice_sales_amount3, invoice_sales_amount4, 
      invoice_sales_amount5, invoice_tax_amount1, 
      invoice_tax_amount2, invoice_tax_amount3, invoice_tax_amount4, 
      invoice_tax_amount5, create_time, update_time
      )
    values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, 
      #{companyCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER}, 
      #{period,jdbcType=INTEGER}, #{countType,jdbcType=TINYINT}, #{specialInvoiceAmount1,jdbcType=BIGINT}, 
      #{specialInvoiceAmount2,jdbcType=BIGINT}, #{specialInvoiceAmount3,jdbcType=BIGINT}, 
      #{specialInvoiceAmount4,jdbcType=BIGINT}, #{specialInvoiceSalesAmount1,jdbcType=DECIMAL}, 
      #{specialInvoiceSalesAmount2,jdbcType=DECIMAL}, #{specialInvoiceSalesAmount3,jdbcType=DECIMAL}, 
      #{specialInvoiceSalesAmount4,jdbcType=DECIMAL}, #{specialInvoiceSalesAmount5,jdbcType=DECIMAL}, 
      #{specialInvoiceTaxAmount1,jdbcType=DECIMAL}, #{specialInvoiceTaxAmount2,jdbcType=DECIMAL}, 
      #{specialInvoiceTaxAmount3,jdbcType=DECIMAL}, #{specialInvoiceTaxAmount4,jdbcType=DECIMAL}, 
      #{specialInvoiceTaxAmount5,jdbcType=DECIMAL}, #{invoiceAmount1,jdbcType=BIGINT}, 
      #{invoiceAmount2,jdbcType=BIGINT}, #{invoiceAmount3,jdbcType=BIGINT}, #{invoiceAmount4,jdbcType=BIGINT}, 
      #{invoiceSalesAmount1,jdbcType=DECIMAL}, #{invoiceSalesAmount2,jdbcType=DECIMAL}, 
      #{invoiceSalesAmount3,jdbcType=DECIMAL}, #{invoiceSalesAmount4,jdbcType=DECIMAL}, 
      #{invoiceSalesAmount5,jdbcType=DECIMAL}, #{invoiceTaxAmount1,jdbcType=DECIMAL}, 
      #{invoiceTaxAmount2,jdbcType=DECIMAL}, #{invoiceTaxAmount3,jdbcType=DECIMAL}, #{invoiceTaxAmount4,jdbcType=DECIMAL}, 
      #{invoiceTaxAmount5,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.InvoiceData">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into invoice_data
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="organizationId != null">
        organization_id,
      </if>
      <if test="projectId != null">
        project_id,
      </if>
      <if test="companyCode != null">
        company_code,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="tmsPeriod != null">
        tms_period,
      </if>
      <if test="period != null">
        period,
      </if>
      <if test="countType != null">
        count_type,
      </if>
      <if test="specialInvoiceAmount1 != null">
        special_invoice_amount1,
      </if>
      <if test="specialInvoiceAmount2 != null">
        special_invoice_amount2,
      </if>
      <if test="specialInvoiceAmount3 != null">
        special_invoice_amount3,
      </if>
      <if test="specialInvoiceAmount4 != null">
        special_invoice_amount4,
      </if>
      <if test="specialInvoiceSalesAmount1 != null">
        special_invoice_sales_amount1,
      </if>
      <if test="specialInvoiceSalesAmount2 != null">
        special_invoice_sales_amount2,
      </if>
      <if test="specialInvoiceSalesAmount3 != null">
        special_invoice_sales_amount3,
      </if>
      <if test="specialInvoiceSalesAmount4 != null">
        special_invoice_sales_amount4,
      </if>
      <if test="specialInvoiceSalesAmount5 != null">
        special_invoice_sales_amount5,
      </if>
      <if test="specialInvoiceTaxAmount1 != null">
        special_invoice_tax_amount1,
      </if>
      <if test="specialInvoiceTaxAmount2 != null">
        special_invoice_tax_amount2,
      </if>
      <if test="specialInvoiceTaxAmount3 != null">
        special_invoice_tax_amount3,
      </if>
      <if test="specialInvoiceTaxAmount4 != null">
        special_invoice_tax_amount4,
      </if>
      <if test="specialInvoiceTaxAmount5 != null">
        special_invoice_tax_amount5,
      </if>
      <if test="invoiceAmount1 != null">
        invoice_amount1,
      </if>
      <if test="invoiceAmount2 != null">
        invoice_amount2,
      </if>
      <if test="invoiceAmount3 != null">
        invoice_amount3,
      </if>
      <if test="invoiceAmount4 != null">
        invoice_amount4,
      </if>
      <if test="invoiceSalesAmount1 != null">
        invoice_sales_amount1,
      </if>
      <if test="invoiceSalesAmount2 != null">
        invoice_sales_amount2,
      </if>
      <if test="invoiceSalesAmount3 != null">
        invoice_sales_amount3,
      </if>
      <if test="invoiceSalesAmount4 != null">
        invoice_sales_amount4,
      </if>
      <if test="invoiceSalesAmount5 != null">
        invoice_sales_amount5,
      </if>
      <if test="invoiceTaxAmount1 != null">
        invoice_tax_amount1,
      </if>
      <if test="invoiceTaxAmount2 != null">
        invoice_tax_amount2,
      </if>
      <if test="invoiceTaxAmount3 != null">
        invoice_tax_amount3,
      </if>
      <if test="invoiceTaxAmount4 != null">
        invoice_tax_amount4,
      </if>
      <if test="invoiceTaxAmount5 != null">
        invoice_tax_amount5,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="organizationId != null">
        #{organizationId,jdbcType=VARCHAR},
      </if>
      <if test="projectId != null">
        #{projectId,jdbcType=VARCHAR},
      </if>
      <if test="companyCode != null">
        #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="tmsPeriod != null">
        #{tmsPeriod,jdbcType=INTEGER},
      </if>
      <if test="period != null">
        #{period,jdbcType=INTEGER},
      </if>
      <if test="countType != null">
        #{countType,jdbcType=TINYINT},
      </if>
      <if test="specialInvoiceAmount1 != null">
        #{specialInvoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount2 != null">
        #{specialInvoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount3 != null">
        #{specialInvoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount4 != null">
        #{specialInvoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceSalesAmount1 != null">
        #{specialInvoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount2 != null">
        #{specialInvoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount3 != null">
        #{specialInvoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount4 != null">
        #{specialInvoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount5 != null">
        #{specialInvoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount1 != null">
        #{specialInvoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount2 != null">
        #{specialInvoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount3 != null">
        #{specialInvoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount4 != null">
        #{specialInvoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount5 != null">
        #{specialInvoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="invoiceAmount1 != null">
        #{invoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount2 != null">
        #{invoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount3 != null">
        #{invoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount4 != null">
        #{invoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="invoiceSalesAmount1 != null">
        #{invoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount2 != null">
        #{invoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount3 != null">
        #{invoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount4 != null">
        #{invoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount5 != null">
        #{invoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount1 != null">
        #{invoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount2 != null">
        #{invoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount3 != null">
        #{invoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount4 != null">
        #{invoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount5 != null">
        #{invoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.InvoiceDataExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from invoice_data
    <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 invoice_data
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.organizationId != null">
        organization_id = #{record.organizationId,jdbcType=VARCHAR},
      </if>
      <if test="record.projectId != null">
        project_id = #{record.projectId,jdbcType=VARCHAR},
      </if>
      <if test="record.companyCode != null">
        company_code = #{record.companyCode,jdbcType=VARCHAR},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.tmsPeriod != null">
        tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
      </if>
      <if test="record.period != null">
        period = #{record.period,jdbcType=INTEGER},
      </if>
      <if test="record.countType != null">
        count_type = #{record.countType,jdbcType=TINYINT},
      </if>
      <if test="record.specialInvoiceAmount1 != null">
        special_invoice_amount1 = #{record.specialInvoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="record.specialInvoiceAmount2 != null">
        special_invoice_amount2 = #{record.specialInvoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="record.specialInvoiceAmount3 != null">
        special_invoice_amount3 = #{record.specialInvoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="record.specialInvoiceAmount4 != null">
        special_invoice_amount4 = #{record.specialInvoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="record.specialInvoiceSalesAmount1 != null">
        special_invoice_sales_amount1 = #{record.specialInvoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceSalesAmount2 != null">
        special_invoice_sales_amount2 = #{record.specialInvoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceSalesAmount3 != null">
        special_invoice_sales_amount3 = #{record.specialInvoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceSalesAmount4 != null">
        special_invoice_sales_amount4 = #{record.specialInvoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceSalesAmount5 != null">
        special_invoice_sales_amount5 = #{record.specialInvoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceTaxAmount1 != null">
        special_invoice_tax_amount1 = #{record.specialInvoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceTaxAmount2 != null">
        special_invoice_tax_amount2 = #{record.specialInvoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceTaxAmount3 != null">
        special_invoice_tax_amount3 = #{record.specialInvoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceTaxAmount4 != null">
        special_invoice_tax_amount4 = #{record.specialInvoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="record.specialInvoiceTaxAmount5 != null">
        special_invoice_tax_amount5 = #{record.specialInvoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceAmount1 != null">
        invoice_amount1 = #{record.invoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceAmount2 != null">
        invoice_amount2 = #{record.invoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceAmount3 != null">
        invoice_amount3 = #{record.invoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceAmount4 != null">
        invoice_amount4 = #{record.invoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceSalesAmount1 != null">
        invoice_sales_amount1 = #{record.invoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceSalesAmount2 != null">
        invoice_sales_amount2 = #{record.invoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceSalesAmount3 != null">
        invoice_sales_amount3 = #{record.invoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceSalesAmount4 != null">
        invoice_sales_amount4 = #{record.invoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceSalesAmount5 != null">
        invoice_sales_amount5 = #{record.invoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceTaxAmount1 != null">
        invoice_tax_amount1 = #{record.invoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceTaxAmount2 != null">
        invoice_tax_amount2 = #{record.invoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceTaxAmount3 != null">
        invoice_tax_amount3 = #{record.invoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceTaxAmount4 != null">
        invoice_tax_amount4 = #{record.invoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceTaxAmount5 != null">
        invoice_tax_amount5 = #{record.invoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </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 invoice_data
    set id = #{record.id,jdbcType=BIGINT},
      organization_id = #{record.organizationId,jdbcType=VARCHAR},
      project_id = #{record.projectId,jdbcType=VARCHAR},
      company_code = #{record.companyCode,jdbcType=VARCHAR},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
      period = #{record.period,jdbcType=INTEGER},
      count_type = #{record.countType,jdbcType=TINYINT},
      special_invoice_amount1 = #{record.specialInvoiceAmount1,jdbcType=BIGINT},
      special_invoice_amount2 = #{record.specialInvoiceAmount2,jdbcType=BIGINT},
      special_invoice_amount3 = #{record.specialInvoiceAmount3,jdbcType=BIGINT},
      special_invoice_amount4 = #{record.specialInvoiceAmount4,jdbcType=BIGINT},
      special_invoice_sales_amount1 = #{record.specialInvoiceSalesAmount1,jdbcType=DECIMAL},
      special_invoice_sales_amount2 = #{record.specialInvoiceSalesAmount2,jdbcType=DECIMAL},
      special_invoice_sales_amount3 = #{record.specialInvoiceSalesAmount3,jdbcType=DECIMAL},
      special_invoice_sales_amount4 = #{record.specialInvoiceSalesAmount4,jdbcType=DECIMAL},
      special_invoice_sales_amount5 = #{record.specialInvoiceSalesAmount5,jdbcType=DECIMAL},
      special_invoice_tax_amount1 = #{record.specialInvoiceTaxAmount1,jdbcType=DECIMAL},
      special_invoice_tax_amount2 = #{record.specialInvoiceTaxAmount2,jdbcType=DECIMAL},
      special_invoice_tax_amount3 = #{record.specialInvoiceTaxAmount3,jdbcType=DECIMAL},
      special_invoice_tax_amount4 = #{record.specialInvoiceTaxAmount4,jdbcType=DECIMAL},
      special_invoice_tax_amount5 = #{record.specialInvoiceTaxAmount5,jdbcType=DECIMAL},
      invoice_amount1 = #{record.invoiceAmount1,jdbcType=BIGINT},
      invoice_amount2 = #{record.invoiceAmount2,jdbcType=BIGINT},
      invoice_amount3 = #{record.invoiceAmount3,jdbcType=BIGINT},
      invoice_amount4 = #{record.invoiceAmount4,jdbcType=BIGINT},
      invoice_sales_amount1 = #{record.invoiceSalesAmount1,jdbcType=DECIMAL},
      invoice_sales_amount2 = #{record.invoiceSalesAmount2,jdbcType=DECIMAL},
      invoice_sales_amount3 = #{record.invoiceSalesAmount3,jdbcType=DECIMAL},
      invoice_sales_amount4 = #{record.invoiceSalesAmount4,jdbcType=DECIMAL},
      invoice_sales_amount5 = #{record.invoiceSalesAmount5,jdbcType=DECIMAL},
      invoice_tax_amount1 = #{record.invoiceTaxAmount1,jdbcType=DECIMAL},
      invoice_tax_amount2 = #{record.invoiceTaxAmount2,jdbcType=DECIMAL},
      invoice_tax_amount3 = #{record.invoiceTaxAmount3,jdbcType=DECIMAL},
      invoice_tax_amount4 = #{record.invoiceTaxAmount4,jdbcType=DECIMAL},
      invoice_tax_amount5 = #{record.invoiceTaxAmount5,jdbcType=DECIMAL},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.InvoiceData">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update invoice_data
    <set>
      <if test="organizationId != null">
        organization_id = #{organizationId,jdbcType=VARCHAR},
      </if>
      <if test="projectId != null">
        project_id = #{projectId,jdbcType=VARCHAR},
      </if>
      <if test="companyCode != null">
        company_code = #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="tmsPeriod != null">
        tms_period = #{tmsPeriod,jdbcType=INTEGER},
      </if>
      <if test="period != null">
        period = #{period,jdbcType=INTEGER},
      </if>
      <if test="countType != null">
        count_type = #{countType,jdbcType=TINYINT},
      </if>
      <if test="specialInvoiceAmount1 != null">
        special_invoice_amount1 = #{specialInvoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount2 != null">
        special_invoice_amount2 = #{specialInvoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount3 != null">
        special_invoice_amount3 = #{specialInvoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceAmount4 != null">
        special_invoice_amount4 = #{specialInvoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="specialInvoiceSalesAmount1 != null">
        special_invoice_sales_amount1 = #{specialInvoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount2 != null">
        special_invoice_sales_amount2 = #{specialInvoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount3 != null">
        special_invoice_sales_amount3 = #{specialInvoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount4 != null">
        special_invoice_sales_amount4 = #{specialInvoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceSalesAmount5 != null">
        special_invoice_sales_amount5 = #{specialInvoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount1 != null">
        special_invoice_tax_amount1 = #{specialInvoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount2 != null">
        special_invoice_tax_amount2 = #{specialInvoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount3 != null">
        special_invoice_tax_amount3 = #{specialInvoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount4 != null">
        special_invoice_tax_amount4 = #{specialInvoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="specialInvoiceTaxAmount5 != null">
        special_invoice_tax_amount5 = #{specialInvoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="invoiceAmount1 != null">
        invoice_amount1 = #{invoiceAmount1,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount2 != null">
        invoice_amount2 = #{invoiceAmount2,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount3 != null">
        invoice_amount3 = #{invoiceAmount3,jdbcType=BIGINT},
      </if>
      <if test="invoiceAmount4 != null">
        invoice_amount4 = #{invoiceAmount4,jdbcType=BIGINT},
      </if>
      <if test="invoiceSalesAmount1 != null">
        invoice_sales_amount1 = #{invoiceSalesAmount1,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount2 != null">
        invoice_sales_amount2 = #{invoiceSalesAmount2,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount3 != null">
        invoice_sales_amount3 = #{invoiceSalesAmount3,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount4 != null">
        invoice_sales_amount4 = #{invoiceSalesAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceSalesAmount5 != null">
        invoice_sales_amount5 = #{invoiceSalesAmount5,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount1 != null">
        invoice_tax_amount1 = #{invoiceTaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount2 != null">
        invoice_tax_amount2 = #{invoiceTaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount3 != null">
        invoice_tax_amount3 = #{invoiceTaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount4 != null">
        invoice_tax_amount4 = #{invoiceTaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceTaxAmount5 != null">
        invoice_tax_amount5 = #{invoiceTaxAmount5,jdbcType=DECIMAL},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.InvoiceData">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update invoice_data
    set organization_id = #{organizationId,jdbcType=VARCHAR},
      project_id = #{projectId,jdbcType=VARCHAR},
      company_code = #{companyCode,jdbcType=VARCHAR},
      company_name = #{companyName,jdbcType=VARCHAR},
      tms_period = #{tmsPeriod,jdbcType=INTEGER},
      period = #{period,jdbcType=INTEGER},
      count_type = #{countType,jdbcType=TINYINT},
      special_invoice_amount1 = #{specialInvoiceAmount1,jdbcType=BIGINT},
      special_invoice_amount2 = #{specialInvoiceAmount2,jdbcType=BIGINT},
      special_invoice_amount3 = #{specialInvoiceAmount3,jdbcType=BIGINT},
      special_invoice_amount4 = #{specialInvoiceAmount4,jdbcType=BIGINT},
      special_invoice_sales_amount1 = #{specialInvoiceSalesAmount1,jdbcType=DECIMAL},
      special_invoice_sales_amount2 = #{specialInvoiceSalesAmount2,jdbcType=DECIMAL},
      special_invoice_sales_amount3 = #{specialInvoiceSalesAmount3,jdbcType=DECIMAL},
      special_invoice_sales_amount4 = #{specialInvoiceSalesAmount4,jdbcType=DECIMAL},
      special_invoice_sales_amount5 = #{specialInvoiceSalesAmount5,jdbcType=DECIMAL},
      special_invoice_tax_amount1 = #{specialInvoiceTaxAmount1,jdbcType=DECIMAL},
      special_invoice_tax_amount2 = #{specialInvoiceTaxAmount2,jdbcType=DECIMAL},
      special_invoice_tax_amount3 = #{specialInvoiceTaxAmount3,jdbcType=DECIMAL},
      special_invoice_tax_amount4 = #{specialInvoiceTaxAmount4,jdbcType=DECIMAL},
      special_invoice_tax_amount5 = #{specialInvoiceTaxAmount5,jdbcType=DECIMAL},
      invoice_amount1 = #{invoiceAmount1,jdbcType=BIGINT},
      invoice_amount2 = #{invoiceAmount2,jdbcType=BIGINT},
      invoice_amount3 = #{invoiceAmount3,jdbcType=BIGINT},
      invoice_amount4 = #{invoiceAmount4,jdbcType=BIGINT},
      invoice_sales_amount1 = #{invoiceSalesAmount1,jdbcType=DECIMAL},
      invoice_sales_amount2 = #{invoiceSalesAmount2,jdbcType=DECIMAL},
      invoice_sales_amount3 = #{invoiceSalesAmount3,jdbcType=DECIMAL},
      invoice_sales_amount4 = #{invoiceSalesAmount4,jdbcType=DECIMAL},
      invoice_sales_amount5 = #{invoiceSalesAmount5,jdbcType=DECIMAL},
      invoice_tax_amount1 = #{invoiceTaxAmount1,jdbcType=DECIMAL},
      invoice_tax_amount2 = #{invoiceTaxAmount2,jdbcType=DECIMAL},
      invoice_tax_amount3 = #{invoiceTaxAmount3,jdbcType=DECIMAL},
      invoice_tax_amount4 = #{invoiceTaxAmount4,jdbcType=DECIMAL},
      invoice_tax_amount5 = #{invoiceTaxAmount5,jdbcType=DECIMAL},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.InvoiceDataExample" 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 invoice_data
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
</mapper>