<?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.superdesk.uniorder.dao.mapper.accounting.unified.customer.AccountingUnifiedCustomerOrderMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrder">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="dz_id" jdbcType="BIGINT" property="dzId" />
    <result column="order_id" jdbcType="BIGINT" property="orderId" />
    <result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
    <result column="parent_order_id" jdbcType="INTEGER" property="parentOrderId" />
    <result column="parent_order_sn" jdbcType="VARCHAR" property="parentOrderSn" />
    <result column="detail_url" jdbcType="VARCHAR" property="detailUrl" />
    <result column="price" jdbcType="DECIMAL" property="price" />
    <result column="dispatch_name" jdbcType="VARCHAR" property="dispatchName" />
    <result column="dispatch_price" jdbcType="DECIMAL" property="dispatchPrice" />
    <result column="organization_id" jdbcType="BIGINT" property="organizationId" />
    <result column="enterprise_id" jdbcType="BIGINT" property="enterpriseId" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="sync_time" jdbcType="TIMESTAMP" property="syncTime" />
    <result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
    <result column="realname_id" jdbcType="INTEGER" property="realnameId" />
    <result column="examine_id" jdbcType="INTEGER" property="examineId" />
    <result column="address_realname" jdbcType="VARCHAR" property="addressRealname" />
    <result column="address_mobile" jdbcType="VARCHAR" property="addressMobile" />
    <result column="address_address" jdbcType="VARCHAR" property="addressAddress" />
    <result column="invoice_type" jdbcType="TINYINT" property="invoiceType" />
    <result column="invoice_company_name" jdbcType="VARCHAR" property="invoiceCompanyName" />
    <result column="invoice_taxpayers_i_d_code" jdbcType="VARCHAR" property="invoiceTaxpayersIDCode" />
    <result column="invoice_account" jdbcType="VARCHAR" property="invoiceAccount" />
    <result column="invoice_bank" jdbcType="VARCHAR" property="invoiceBank" />
    <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
    <result column="finish_time" jdbcType="TIMESTAMP" property="finishTime" />
    <result column="status" jdbcType="TINYINT" property="status" />
    <result column="merch_name" jdbcType="VARCHAR" property="merchName" />
    <result column="order_type" jdbcType="VARCHAR" property="orderType" />
    <result column="pay_type" jdbcType="TINYINT" property="payType" />
    <result column="search_field1" jdbcType="VARCHAR" property="searchField1" />
    <result column="search_field2" jdbcType="VARCHAR" property="searchField2" />
    <result column="search_field3" jdbcType="VARCHAR" property="searchField3" />
    <result column="other_field1" jdbcType="VARCHAR" property="otherField1" />
    <result column="other_field2" jdbcType="VARCHAR" property="otherField2" />
    <result column="other_field3" jdbcType="VARCHAR" property="otherField3" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="tax_code" jdbcType="VARCHAR" property="taxCode" />
    <result column="fiscal_code" jdbcType="VARCHAR" property="fiscalCode" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    <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">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    <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">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    id, dz_id, order_id, order_sn, parent_order_id, parent_order_sn, detail_url, price, 
    dispatch_name, dispatch_price, organization_id, enterprise_id, create_time, sync_time, 
    pay_time, realname_id, examine_id, address_realname, address_mobile, address_address, 
    invoice_type, invoice_company_name, invoice_taxpayers_i_d_code, invoice_account, 
    invoice_bank, send_time, finish_time, status, merch_name, order_type, pay_type, search_field1, 
    search_field2, search_field3, other_field1, other_field2, other_field3, remark, tax_code, 
    fiscal_code
  </sql>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrderExample" resultMap="BaseResultMap">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from accounting_unified_customer_order
    <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">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    select 
    <include refid="Base_Column_List" />
    from accounting_unified_customer_order
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    delete from accounting_unified_customer_order
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrderExample">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    delete from accounting_unified_customer_order
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrder">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into accounting_unified_customer_order (dz_id, order_id, order_sn, 
      parent_order_id, parent_order_sn, detail_url, 
      price, dispatch_name, dispatch_price, 
      organization_id, enterprise_id, create_time, 
      sync_time, pay_time, realname_id, 
      examine_id, address_realname, address_mobile, 
      address_address, invoice_type, invoice_company_name, 
      invoice_taxpayers_i_d_code, invoice_account, 
      invoice_bank, send_time, finish_time, 
      status, merch_name, order_type, 
      pay_type, search_field1, search_field2, 
      search_field3, other_field1, other_field2, 
      other_field3, remark, tax_code, 
      fiscal_code)
    values (#{dzId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, 
      #{parentOrderId,jdbcType=INTEGER}, #{parentOrderSn,jdbcType=VARCHAR}, #{detailUrl,jdbcType=VARCHAR}, 
      #{price,jdbcType=DECIMAL}, #{dispatchName,jdbcType=VARCHAR}, #{dispatchPrice,jdbcType=DECIMAL}, 
      #{organizationId,jdbcType=BIGINT}, #{enterpriseId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, 
      #{syncTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, #{realnameId,jdbcType=INTEGER}, 
      #{examineId,jdbcType=INTEGER}, #{addressRealname,jdbcType=VARCHAR}, #{addressMobile,jdbcType=VARCHAR}, 
      #{addressAddress,jdbcType=VARCHAR}, #{invoiceType,jdbcType=TINYINT}, #{invoiceCompanyName,jdbcType=VARCHAR}, 
      #{invoiceTaxpayersIDCode,jdbcType=VARCHAR}, #{invoiceAccount,jdbcType=VARCHAR}, 
      #{invoiceBank,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, 
      #{status,jdbcType=TINYINT}, #{merchName,jdbcType=VARCHAR}, #{orderType,jdbcType=VARCHAR}, 
      #{payType,jdbcType=TINYINT}, #{searchField1,jdbcType=VARCHAR}, #{searchField2,jdbcType=VARCHAR}, 
      #{searchField3,jdbcType=VARCHAR}, #{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR}, 
      #{otherField3,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{taxCode,jdbcType=VARCHAR}, 
      #{fiscalCode,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrder">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into accounting_unified_customer_order
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="dzId != null">
        dz_id,
      </if>
      <if test="orderId != null">
        order_id,
      </if>
      <if test="orderSn != null">
        order_sn,
      </if>
      <if test="parentOrderId != null">
        parent_order_id,
      </if>
      <if test="parentOrderSn != null">
        parent_order_sn,
      </if>
      <if test="detailUrl != null">
        detail_url,
      </if>
      <if test="price != null">
        price,
      </if>
      <if test="dispatchName != null">
        dispatch_name,
      </if>
      <if test="dispatchPrice != null">
        dispatch_price,
      </if>
      <if test="organizationId != null">
        organization_id,
      </if>
      <if test="enterpriseId != null">
        enterprise_id,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="syncTime != null">
        sync_time,
      </if>
      <if test="payTime != null">
        pay_time,
      </if>
      <if test="realnameId != null">
        realname_id,
      </if>
      <if test="examineId != null">
        examine_id,
      </if>
      <if test="addressRealname != null">
        address_realname,
      </if>
      <if test="addressMobile != null">
        address_mobile,
      </if>
      <if test="addressAddress != null">
        address_address,
      </if>
      <if test="invoiceType != null">
        invoice_type,
      </if>
      <if test="invoiceCompanyName != null">
        invoice_company_name,
      </if>
      <if test="invoiceTaxpayersIDCode != null">
        invoice_taxpayers_i_d_code,
      </if>
      <if test="invoiceAccount != null">
        invoice_account,
      </if>
      <if test="invoiceBank != null">
        invoice_bank,
      </if>
      <if test="sendTime != null">
        send_time,
      </if>
      <if test="finishTime != null">
        finish_time,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="merchName != null">
        merch_name,
      </if>
      <if test="orderType != null">
        order_type,
      </if>
      <if test="payType != null">
        pay_type,
      </if>
      <if test="searchField1 != null">
        search_field1,
      </if>
      <if test="searchField2 != null">
        search_field2,
      </if>
      <if test="searchField3 != null">
        search_field3,
      </if>
      <if test="otherField1 != null">
        other_field1,
      </if>
      <if test="otherField2 != null">
        other_field2,
      </if>
      <if test="otherField3 != null">
        other_field3,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="taxCode != null">
        tax_code,
      </if>
      <if test="fiscalCode != null">
        fiscal_code,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="dzId != null">
        #{dzId,jdbcType=BIGINT},
      </if>
      <if test="orderId != null">
        #{orderId,jdbcType=BIGINT},
      </if>
      <if test="orderSn != null">
        #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="parentOrderId != null">
        #{parentOrderId,jdbcType=INTEGER},
      </if>
      <if test="parentOrderSn != null">
        #{parentOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="detailUrl != null">
        #{detailUrl,jdbcType=VARCHAR},
      </if>
      <if test="price != null">
        #{price,jdbcType=DECIMAL},
      </if>
      <if test="dispatchName != null">
        #{dispatchName,jdbcType=VARCHAR},
      </if>
      <if test="dispatchPrice != null">
        #{dispatchPrice,jdbcType=DECIMAL},
      </if>
      <if test="organizationId != null">
        #{organizationId,jdbcType=BIGINT},
      </if>
      <if test="enterpriseId != null">
        #{enterpriseId,jdbcType=BIGINT},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="syncTime != null">
        #{syncTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payTime != null">
        #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="realnameId != null">
        #{realnameId,jdbcType=INTEGER},
      </if>
      <if test="examineId != null">
        #{examineId,jdbcType=INTEGER},
      </if>
      <if test="addressRealname != null">
        #{addressRealname,jdbcType=VARCHAR},
      </if>
      <if test="addressMobile != null">
        #{addressMobile,jdbcType=VARCHAR},
      </if>
      <if test="addressAddress != null">
        #{addressAddress,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
        #{invoiceType,jdbcType=TINYINT},
      </if>
      <if test="invoiceCompanyName != null">
        #{invoiceCompanyName,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTaxpayersIDCode != null">
        #{invoiceTaxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAccount != null">
        #{invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBank != null">
        #{invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="sendTime != null">
        #{sendTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        #{status,jdbcType=TINYINT},
      </if>
      <if test="merchName != null">
        #{merchName,jdbcType=VARCHAR},
      </if>
      <if test="orderType != null">
        #{orderType,jdbcType=VARCHAR},
      </if>
      <if test="payType != null">
        #{payType,jdbcType=TINYINT},
      </if>
      <if test="searchField1 != null">
        #{searchField1,jdbcType=VARCHAR},
      </if>
      <if test="searchField2 != null">
        #{searchField2,jdbcType=VARCHAR},
      </if>
      <if test="searchField3 != null">
        #{searchField3,jdbcType=VARCHAR},
      </if>
      <if test="otherField1 != null">
        #{otherField1,jdbcType=VARCHAR},
      </if>
      <if test="otherField2 != null">
        #{otherField2,jdbcType=VARCHAR},
      </if>
      <if test="otherField3 != null">
        #{otherField3,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="taxCode != null">
        #{taxCode,jdbcType=VARCHAR},
      </if>
      <if test="fiscalCode != null">
        #{fiscalCode,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrderExample" resultType="java.lang.Long">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    select count(*) from accounting_unified_customer_order
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    update accounting_unified_customer_order
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.dzId != null">
        dz_id = #{record.dzId,jdbcType=BIGINT},
      </if>
      <if test="record.orderId != null">
        order_id = #{record.orderId,jdbcType=BIGINT},
      </if>
      <if test="record.orderSn != null">
        order_sn = #{record.orderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.parentOrderId != null">
        parent_order_id = #{record.parentOrderId,jdbcType=INTEGER},
      </if>
      <if test="record.parentOrderSn != null">
        parent_order_sn = #{record.parentOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.detailUrl != null">
        detail_url = #{record.detailUrl,jdbcType=VARCHAR},
      </if>
      <if test="record.price != null">
        price = #{record.price,jdbcType=DECIMAL},
      </if>
      <if test="record.dispatchName != null">
        dispatch_name = #{record.dispatchName,jdbcType=VARCHAR},
      </if>
      <if test="record.dispatchPrice != null">
        dispatch_price = #{record.dispatchPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.organizationId != null">
        organization_id = #{record.organizationId,jdbcType=BIGINT},
      </if>
      <if test="record.enterpriseId != null">
        enterprise_id = #{record.enterpriseId,jdbcType=BIGINT},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.syncTime != null">
        sync_time = #{record.syncTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.payTime != null">
        pay_time = #{record.payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.realnameId != null">
        realname_id = #{record.realnameId,jdbcType=INTEGER},
      </if>
      <if test="record.examineId != null">
        examine_id = #{record.examineId,jdbcType=INTEGER},
      </if>
      <if test="record.addressRealname != null">
        address_realname = #{record.addressRealname,jdbcType=VARCHAR},
      </if>
      <if test="record.addressMobile != null">
        address_mobile = #{record.addressMobile,jdbcType=VARCHAR},
      </if>
      <if test="record.addressAddress != null">
        address_address = #{record.addressAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceType != null">
        invoice_type = #{record.invoiceType,jdbcType=TINYINT},
      </if>
      <if test="record.invoiceCompanyName != null">
        invoice_company_name = #{record.invoiceCompanyName,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceTaxpayersIDCode != null">
        invoice_taxpayers_i_d_code = #{record.invoiceTaxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceAccount != null">
        invoice_account = #{record.invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceBank != null">
        invoice_bank = #{record.invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="record.sendTime != null">
        send_time = #{record.sendTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.finishTime != null">
        finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.status != null">
        status = #{record.status,jdbcType=TINYINT},
      </if>
      <if test="record.merchName != null">
        merch_name = #{record.merchName,jdbcType=VARCHAR},
      </if>
      <if test="record.orderType != null">
        order_type = #{record.orderType,jdbcType=VARCHAR},
      </if>
      <if test="record.payType != null">
        pay_type = #{record.payType,jdbcType=TINYINT},
      </if>
      <if test="record.searchField1 != null">
        search_field1 = #{record.searchField1,jdbcType=VARCHAR},
      </if>
      <if test="record.searchField2 != null">
        search_field2 = #{record.searchField2,jdbcType=VARCHAR},
      </if>
      <if test="record.searchField3 != null">
        search_field3 = #{record.searchField3,jdbcType=VARCHAR},
      </if>
      <if test="record.otherField1 != null">
        other_field1 = #{record.otherField1,jdbcType=VARCHAR},
      </if>
      <if test="record.otherField2 != null">
        other_field2 = #{record.otherField2,jdbcType=VARCHAR},
      </if>
      <if test="record.otherField3 != null">
        other_field3 = #{record.otherField3,jdbcType=VARCHAR},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.taxCode != null">
        tax_code = #{record.taxCode,jdbcType=VARCHAR},
      </if>
      <if test="record.fiscalCode != null">
        fiscal_code = #{record.fiscalCode,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    update accounting_unified_customer_order
    set id = #{record.id,jdbcType=BIGINT},
      dz_id = #{record.dzId,jdbcType=BIGINT},
      order_id = #{record.orderId,jdbcType=BIGINT},
      order_sn = #{record.orderSn,jdbcType=VARCHAR},
      parent_order_id = #{record.parentOrderId,jdbcType=INTEGER},
      parent_order_sn = #{record.parentOrderSn,jdbcType=VARCHAR},
      detail_url = #{record.detailUrl,jdbcType=VARCHAR},
      price = #{record.price,jdbcType=DECIMAL},
      dispatch_name = #{record.dispatchName,jdbcType=VARCHAR},
      dispatch_price = #{record.dispatchPrice,jdbcType=DECIMAL},
      organization_id = #{record.organizationId,jdbcType=BIGINT},
      enterprise_id = #{record.enterpriseId,jdbcType=BIGINT},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      sync_time = #{record.syncTime,jdbcType=TIMESTAMP},
      pay_time = #{record.payTime,jdbcType=TIMESTAMP},
      realname_id = #{record.realnameId,jdbcType=INTEGER},
      examine_id = #{record.examineId,jdbcType=INTEGER},
      address_realname = #{record.addressRealname,jdbcType=VARCHAR},
      address_mobile = #{record.addressMobile,jdbcType=VARCHAR},
      address_address = #{record.addressAddress,jdbcType=VARCHAR},
      invoice_type = #{record.invoiceType,jdbcType=TINYINT},
      invoice_company_name = #{record.invoiceCompanyName,jdbcType=VARCHAR},
      invoice_taxpayers_i_d_code = #{record.invoiceTaxpayersIDCode,jdbcType=VARCHAR},
      invoice_account = #{record.invoiceAccount,jdbcType=VARCHAR},
      invoice_bank = #{record.invoiceBank,jdbcType=VARCHAR},
      send_time = #{record.sendTime,jdbcType=TIMESTAMP},
      finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      status = #{record.status,jdbcType=TINYINT},
      merch_name = #{record.merchName,jdbcType=VARCHAR},
      order_type = #{record.orderType,jdbcType=VARCHAR},
      pay_type = #{record.payType,jdbcType=TINYINT},
      search_field1 = #{record.searchField1,jdbcType=VARCHAR},
      search_field2 = #{record.searchField2,jdbcType=VARCHAR},
      search_field3 = #{record.searchField3,jdbcType=VARCHAR},
      other_field1 = #{record.otherField1,jdbcType=VARCHAR},
      other_field2 = #{record.otherField2,jdbcType=VARCHAR},
      other_field3 = #{record.otherField3,jdbcType=VARCHAR},
      remark = #{record.remark,jdbcType=VARCHAR},
      tax_code = #{record.taxCode,jdbcType=VARCHAR},
      fiscal_code = #{record.fiscalCode,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrder">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    update accounting_unified_customer_order
    <set>
      <if test="dzId != null">
        dz_id = #{dzId,jdbcType=BIGINT},
      </if>
      <if test="orderId != null">
        order_id = #{orderId,jdbcType=BIGINT},
      </if>
      <if test="orderSn != null">
        order_sn = #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="parentOrderId != null">
        parent_order_id = #{parentOrderId,jdbcType=INTEGER},
      </if>
      <if test="parentOrderSn != null">
        parent_order_sn = #{parentOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="detailUrl != null">
        detail_url = #{detailUrl,jdbcType=VARCHAR},
      </if>
      <if test="price != null">
        price = #{price,jdbcType=DECIMAL},
      </if>
      <if test="dispatchName != null">
        dispatch_name = #{dispatchName,jdbcType=VARCHAR},
      </if>
      <if test="dispatchPrice != null">
        dispatch_price = #{dispatchPrice,jdbcType=DECIMAL},
      </if>
      <if test="organizationId != null">
        organization_id = #{organizationId,jdbcType=BIGINT},
      </if>
      <if test="enterpriseId != null">
        enterprise_id = #{enterpriseId,jdbcType=BIGINT},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="syncTime != null">
        sync_time = #{syncTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payTime != null">
        pay_time = #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="realnameId != null">
        realname_id = #{realnameId,jdbcType=INTEGER},
      </if>
      <if test="examineId != null">
        examine_id = #{examineId,jdbcType=INTEGER},
      </if>
      <if test="addressRealname != null">
        address_realname = #{addressRealname,jdbcType=VARCHAR},
      </if>
      <if test="addressMobile != null">
        address_mobile = #{addressMobile,jdbcType=VARCHAR},
      </if>
      <if test="addressAddress != null">
        address_address = #{addressAddress,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
        invoice_type = #{invoiceType,jdbcType=TINYINT},
      </if>
      <if test="invoiceCompanyName != null">
        invoice_company_name = #{invoiceCompanyName,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTaxpayersIDCode != null">
        invoice_taxpayers_i_d_code = #{invoiceTaxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAccount != null">
        invoice_account = #{invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBank != null">
        invoice_bank = #{invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="sendTime != null">
        send_time = #{sendTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        finish_time = #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=TINYINT},
      </if>
      <if test="merchName != null">
        merch_name = #{merchName,jdbcType=VARCHAR},
      </if>
      <if test="orderType != null">
        order_type = #{orderType,jdbcType=VARCHAR},
      </if>
      <if test="payType != null">
        pay_type = #{payType,jdbcType=TINYINT},
      </if>
      <if test="searchField1 != null">
        search_field1 = #{searchField1,jdbcType=VARCHAR},
      </if>
      <if test="searchField2 != null">
        search_field2 = #{searchField2,jdbcType=VARCHAR},
      </if>
      <if test="searchField3 != null">
        search_field3 = #{searchField3,jdbcType=VARCHAR},
      </if>
      <if test="otherField1 != null">
        other_field1 = #{otherField1,jdbcType=VARCHAR},
      </if>
      <if test="otherField2 != null">
        other_field2 = #{otherField2,jdbcType=VARCHAR},
      </if>
      <if test="otherField3 != null">
        other_field3 = #{otherField3,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="taxCode != null">
        tax_code = #{taxCode,jdbcType=VARCHAR},
      </if>
      <if test="fiscalCode != null">
        fiscal_code = #{fiscalCode,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.accounting.unified.customer.AccountingUnifiedCustomerOrder">
    <!--


      This element was generated on Wed Nov 18 10:14:38 CST 2020.
    -->
    update accounting_unified_customer_order
    set dz_id = #{dzId,jdbcType=BIGINT},
      order_id = #{orderId,jdbcType=BIGINT},
      order_sn = #{orderSn,jdbcType=VARCHAR},
      parent_order_id = #{parentOrderId,jdbcType=INTEGER},
      parent_order_sn = #{parentOrderSn,jdbcType=VARCHAR},
      detail_url = #{detailUrl,jdbcType=VARCHAR},
      price = #{price,jdbcType=DECIMAL},
      dispatch_name = #{dispatchName,jdbcType=VARCHAR},
      dispatch_price = #{dispatchPrice,jdbcType=DECIMAL},
      organization_id = #{organizationId,jdbcType=BIGINT},
      enterprise_id = #{enterpriseId,jdbcType=BIGINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      sync_time = #{syncTime,jdbcType=TIMESTAMP},
      pay_time = #{payTime,jdbcType=TIMESTAMP},
      realname_id = #{realnameId,jdbcType=INTEGER},
      examine_id = #{examineId,jdbcType=INTEGER},
      address_realname = #{addressRealname,jdbcType=VARCHAR},
      address_mobile = #{addressMobile,jdbcType=VARCHAR},
      address_address = #{addressAddress,jdbcType=VARCHAR},
      invoice_type = #{invoiceType,jdbcType=TINYINT},
      invoice_company_name = #{invoiceCompanyName,jdbcType=VARCHAR},
      invoice_taxpayers_i_d_code = #{invoiceTaxpayersIDCode,jdbcType=VARCHAR},
      invoice_account = #{invoiceAccount,jdbcType=VARCHAR},
      invoice_bank = #{invoiceBank,jdbcType=VARCHAR},
      send_time = #{sendTime,jdbcType=TIMESTAMP},
      finish_time = #{finishTime,jdbcType=TIMESTAMP},
      status = #{status,jdbcType=TINYINT},
      merch_name = #{merchName,jdbcType=VARCHAR},
      order_type = #{orderType,jdbcType=VARCHAR},
      pay_type = #{payType,jdbcType=TINYINT},
      search_field1 = #{searchField1,jdbcType=VARCHAR},
      search_field2 = #{searchField2,jdbcType=VARCHAR},
      search_field3 = #{searchField3,jdbcType=VARCHAR},
      other_field1 = #{otherField1,jdbcType=VARCHAR},
      other_field2 = #{otherField2,jdbcType=VARCHAR},
      other_field3 = #{otherField3,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      tax_code = #{taxCode,jdbcType=VARCHAR},
      fiscal_code = #{fiscalCode,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>