<?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.operationCenter.accounting.UnifiedAccountingOrderCreditMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCredit">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="order_credit_id" jdbcType="VARCHAR" property="orderCreditId" />
    <result column="biz_type_id" jdbcType="TINYINT" property="bizTypeId" />
    <result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
    <result column="order_id" jdbcType="VARCHAR" property="orderId" />
    <result column="order_goods_id" jdbcType="VARCHAR" property="orderGoodsId" />
    <result column="biz_transaction_number" jdbcType="VARCHAR" property="bizTransactionNumber" />
    <result column="third_party_transaction_number" jdbcType="VARCHAR" property="thirdPartyTransactionNumber" />
    <result column="biz_platform_code" jdbcType="VARCHAR" property="bizPlatformCode" />
    <result column="biz_platform_name" jdbcType="VARCHAR" property="bizPlatformName" />
    <result column="order_type_code" jdbcType="VARCHAR" property="orderTypeCode" />
    <result column="order_type_name" jdbcType="VARCHAR" property="orderTypeName" />
    <result column="goods_type_id" jdbcType="TINYINT" property="goodsTypeId" />
    <result column="goods_id" jdbcType="VARCHAR" property="goodsId" />
    <result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
    <result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
    <result column="integral_type_id" jdbcType="TINYINT" property="integralTypeId" />
    <result column="integral_type_name" jdbcType="VARCHAR" property="integralTypeName" />
    <result column="batch" jdbcType="VARCHAR" property="batch" />
    <result column="transactor_id" jdbcType="VARCHAR" property="transactorId" />
    <result column="transactor_name" jdbcType="VARCHAR" property="transactorName" />
    <result column="transactor_mobile" jdbcType="VARCHAR" property="transactorMobile" />
    <result column="enterprise_id" jdbcType="VARCHAR" property="enterpriseId" />
    <result column="enterprise_name" jdbcType="VARCHAR" property="enterpriseName" />
    <result column="org_id" jdbcType="VARCHAR" property="orgId" />
    <result column="org_name" jdbcType="VARCHAR" property="orgName" />
    <result column="operator_id" jdbcType="VARCHAR" property="operatorId" />
    <result column="operator_name" jdbcType="VARCHAR" property="operatorName" />
    <result column="supplier_id" jdbcType="VARCHAR" property="supplierId" />
    <result column="supplier_name" jdbcType="VARCHAR" property="supplierName" />
    <result column="biz_pay_type_id" jdbcType="VARCHAR" property="bizPayTypeId" />
    <result column="biz_pay_type_name" jdbcType="VARCHAR" property="bizPayTypeName" />
    <result column="platform_pay_type_id" jdbcType="BIGINT" property="platformPayTypeId" />
    <result column="platform_pay_type_name" jdbcType="VARCHAR" property="platformPayTypeName" />
    <result column="pay_status_id" jdbcType="TINYINT" property="payStatusId" />
    <result column="order_create_time" jdbcType="TIMESTAMP" property="orderCreateTime" />
    <result column="trading_time" jdbcType="TIMESTAMP" property="tradingTime" />
    <result column="finish_time" jdbcType="TIMESTAMP" property="finishTime" />
    <result column="accounting_status" jdbcType="TINYINT" property="accountingStatus" />
    <result column="accounting_order_sn_operator" jdbcType="VARCHAR" property="accountingOrderSnOperator" />
    <result column="is_settlement" jdbcType="TINYINT" property="isSettlement" />
    <result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <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">
    <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">
    id, order_credit_id, biz_type_id, order_sn, order_id, order_goods_id, biz_transaction_number, 
    third_party_transaction_number, biz_platform_code, biz_platform_name, order_type_code, 
    order_type_name, goods_type_id, goods_id, goods_name, order_amount, integral_type_id, 
    integral_type_name, batch, transactor_id, transactor_name, transactor_mobile, enterprise_id, 
    enterprise_name, org_id, org_name, operator_id, operator_name, supplier_id, supplier_name, 
    biz_pay_type_id, biz_pay_type_name, platform_pay_type_id, platform_pay_type_name, 
    pay_status_id, order_create_time, trading_time, finish_time, accounting_status, accounting_order_sn_operator, 
    is_settlement, create_user_id, create_time, update_user_id, update_time
  </sql>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCreditExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from unified_accounting_order_credit
    <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">
    select 
    <include refid="Base_Column_List" />
    from unified_accounting_order_credit
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from unified_accounting_order_credit
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCreditExample">
    delete from unified_accounting_order_credit
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCredit">
    insert into unified_accounting_order_credit (id, order_credit_id, biz_type_id, 
      order_sn, order_id, order_goods_id, 
      biz_transaction_number, third_party_transaction_number, 
      biz_platform_code, biz_platform_name, order_type_code, 
      order_type_name, goods_type_id, goods_id, 
      goods_name, order_amount, integral_type_id, 
      integral_type_name, batch, transactor_id, 
      transactor_name, transactor_mobile, enterprise_id, 
      enterprise_name, org_id, org_name, 
      operator_id, operator_name, supplier_id, 
      supplier_name, biz_pay_type_id, biz_pay_type_name, 
      platform_pay_type_id, platform_pay_type_name, 
      pay_status_id, order_create_time, trading_time, 
      finish_time, accounting_status, accounting_order_sn_operator, 
      is_settlement, create_user_id, create_time, 
      update_user_id, update_time)
    values (#{id,jdbcType=BIGINT}, #{orderCreditId,jdbcType=VARCHAR}, #{bizTypeId,jdbcType=TINYINT}, 
      #{orderSn,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{orderGoodsId,jdbcType=VARCHAR}, 
      #{bizTransactionNumber,jdbcType=VARCHAR}, #{thirdPartyTransactionNumber,jdbcType=VARCHAR}, 
      #{bizPlatformCode,jdbcType=VARCHAR}, #{bizPlatformName,jdbcType=VARCHAR}, #{orderTypeCode,jdbcType=VARCHAR}, 
      #{orderTypeName,jdbcType=VARCHAR}, #{goodsTypeId,jdbcType=TINYINT}, #{goodsId,jdbcType=VARCHAR}, 
      #{goodsName,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, #{integralTypeId,jdbcType=TINYINT}, 
      #{integralTypeName,jdbcType=VARCHAR}, #{batch,jdbcType=VARCHAR}, #{transactorId,jdbcType=VARCHAR}, 
      #{transactorName,jdbcType=VARCHAR}, #{transactorMobile,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=VARCHAR}, 
      #{enterpriseName,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, 
      #{operatorId,jdbcType=VARCHAR}, #{operatorName,jdbcType=VARCHAR}, #{supplierId,jdbcType=VARCHAR}, 
      #{supplierName,jdbcType=VARCHAR}, #{bizPayTypeId,jdbcType=VARCHAR}, #{bizPayTypeName,jdbcType=VARCHAR}, 
      #{platformPayTypeId,jdbcType=BIGINT}, #{platformPayTypeName,jdbcType=VARCHAR}, 
      #{payStatusId,jdbcType=TINYINT}, #{orderCreateTime,jdbcType=TIMESTAMP}, #{tradingTime,jdbcType=TIMESTAMP}, 
      #{finishTime,jdbcType=TIMESTAMP}, #{accountingStatus,jdbcType=TINYINT}, #{accountingOrderSnOperator,jdbcType=VARCHAR}, 
      #{isSettlement,jdbcType=TINYINT}, #{createUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateUserId,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCredit">
    insert into unified_accounting_order_credit
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="orderCreditId != null">
        order_credit_id,
      </if>
      <if test="bizTypeId != null">
        biz_type_id,
      </if>
      <if test="orderSn != null">
        order_sn,
      </if>
      <if test="orderId != null">
        order_id,
      </if>
      <if test="orderGoodsId != null">
        order_goods_id,
      </if>
      <if test="bizTransactionNumber != null">
        biz_transaction_number,
      </if>
      <if test="thirdPartyTransactionNumber != null">
        third_party_transaction_number,
      </if>
      <if test="bizPlatformCode != null">
        biz_platform_code,
      </if>
      <if test="bizPlatformName != null">
        biz_platform_name,
      </if>
      <if test="orderTypeCode != null">
        order_type_code,
      </if>
      <if test="orderTypeName != null">
        order_type_name,
      </if>
      <if test="goodsTypeId != null">
        goods_type_id,
      </if>
      <if test="goodsId != null">
        goods_id,
      </if>
      <if test="goodsName != null">
        goods_name,
      </if>
      <if test="orderAmount != null">
        order_amount,
      </if>
      <if test="integralTypeId != null">
        integral_type_id,
      </if>
      <if test="integralTypeName != null">
        integral_type_name,
      </if>
      <if test="batch != null">
        batch,
      </if>
      <if test="transactorId != null">
        transactor_id,
      </if>
      <if test="transactorName != null">
        transactor_name,
      </if>
      <if test="transactorMobile != null">
        transactor_mobile,
      </if>
      <if test="enterpriseId != null">
        enterprise_id,
      </if>
      <if test="enterpriseName != null">
        enterprise_name,
      </if>
      <if test="orgId != null">
        org_id,
      </if>
      <if test="orgName != null">
        org_name,
      </if>
      <if test="operatorId != null">
        operator_id,
      </if>
      <if test="operatorName != null">
        operator_name,
      </if>
      <if test="supplierId != null">
        supplier_id,
      </if>
      <if test="supplierName != null">
        supplier_name,
      </if>
      <if test="bizPayTypeId != null">
        biz_pay_type_id,
      </if>
      <if test="bizPayTypeName != null">
        biz_pay_type_name,
      </if>
      <if test="platformPayTypeId != null">
        platform_pay_type_id,
      </if>
      <if test="platformPayTypeName != null">
        platform_pay_type_name,
      </if>
      <if test="payStatusId != null">
        pay_status_id,
      </if>
      <if test="orderCreateTime != null">
        order_create_time,
      </if>
      <if test="tradingTime != null">
        trading_time,
      </if>
      <if test="finishTime != null">
        finish_time,
      </if>
      <if test="accountingStatus != null">
        accounting_status,
      </if>
      <if test="accountingOrderSnOperator != null">
        accounting_order_sn_operator,
      </if>
      <if test="isSettlement != null">
        is_settlement,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="orderCreditId != null">
        #{orderCreditId,jdbcType=VARCHAR},
      </if>
      <if test="bizTypeId != null">
        #{bizTypeId,jdbcType=TINYINT},
      </if>
      <if test="orderSn != null">
        #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderId != null">
        #{orderId,jdbcType=VARCHAR},
      </if>
      <if test="orderGoodsId != null">
        #{orderGoodsId,jdbcType=VARCHAR},
      </if>
      <if test="bizTransactionNumber != null">
        #{bizTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="thirdPartyTransactionNumber != null">
        #{thirdPartyTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="bizPlatformCode != null">
        #{bizPlatformCode,jdbcType=VARCHAR},
      </if>
      <if test="bizPlatformName != null">
        #{bizPlatformName,jdbcType=VARCHAR},
      </if>
      <if test="orderTypeCode != null">
        #{orderTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="orderTypeName != null">
        #{orderTypeName,jdbcType=VARCHAR},
      </if>
      <if test="goodsTypeId != null">
        #{goodsTypeId,jdbcType=TINYINT},
      </if>
      <if test="goodsId != null">
        #{goodsId,jdbcType=VARCHAR},
      </if>
      <if test="goodsName != null">
        #{goodsName,jdbcType=VARCHAR},
      </if>
      <if test="orderAmount != null">
        #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="integralTypeId != null">
        #{integralTypeId,jdbcType=TINYINT},
      </if>
      <if test="integralTypeName != null">
        #{integralTypeName,jdbcType=VARCHAR},
      </if>
      <if test="batch != null">
        #{batch,jdbcType=VARCHAR},
      </if>
      <if test="transactorId != null">
        #{transactorId,jdbcType=VARCHAR},
      </if>
      <if test="transactorName != null">
        #{transactorName,jdbcType=VARCHAR},
      </if>
      <if test="transactorMobile != null">
        #{transactorMobile,jdbcType=VARCHAR},
      </if>
      <if test="enterpriseId != null">
        #{enterpriseId,jdbcType=VARCHAR},
      </if>
      <if test="enterpriseName != null">
        #{enterpriseName,jdbcType=VARCHAR},
      </if>
      <if test="orgId != null">
        #{orgId,jdbcType=VARCHAR},
      </if>
      <if test="orgName != null">
        #{orgName,jdbcType=VARCHAR},
      </if>
      <if test="operatorId != null">
        #{operatorId,jdbcType=VARCHAR},
      </if>
      <if test="operatorName != null">
        #{operatorName,jdbcType=VARCHAR},
      </if>
      <if test="supplierId != null">
        #{supplierId,jdbcType=VARCHAR},
      </if>
      <if test="supplierName != null">
        #{supplierName,jdbcType=VARCHAR},
      </if>
      <if test="bizPayTypeId != null">
        #{bizPayTypeId,jdbcType=VARCHAR},
      </if>
      <if test="bizPayTypeName != null">
        #{bizPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="platformPayTypeId != null">
        #{platformPayTypeId,jdbcType=BIGINT},
      </if>
      <if test="platformPayTypeName != null">
        #{platformPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="payStatusId != null">
        #{payStatusId,jdbcType=TINYINT},
      </if>
      <if test="orderCreateTime != null">
        #{orderCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tradingTime != null">
        #{tradingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="accountingStatus != null">
        #{accountingStatus,jdbcType=TINYINT},
      </if>
      <if test="accountingOrderSnOperator != null">
        #{accountingOrderSnOperator,jdbcType=VARCHAR},
      </if>
      <if test="isSettlement != null">
        #{isSettlement,jdbcType=TINYINT},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCreditExample" resultType="java.lang.Long">
    select count(*) from unified_accounting_order_credit
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update unified_accounting_order_credit
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.orderCreditId != null">
        order_credit_id = #{record.orderCreditId,jdbcType=VARCHAR},
      </if>
      <if test="record.bizTypeId != null">
        biz_type_id = #{record.bizTypeId,jdbcType=TINYINT},
      </if>
      <if test="record.orderSn != null">
        order_sn = #{record.orderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.orderId != null">
        order_id = #{record.orderId,jdbcType=VARCHAR},
      </if>
      <if test="record.orderGoodsId != null">
        order_goods_id = #{record.orderGoodsId,jdbcType=VARCHAR},
      </if>
      <if test="record.bizTransactionNumber != null">
        biz_transaction_number = #{record.bizTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.thirdPartyTransactionNumber != null">
        third_party_transaction_number = #{record.thirdPartyTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.bizPlatformCode != null">
        biz_platform_code = #{record.bizPlatformCode,jdbcType=VARCHAR},
      </if>
      <if test="record.bizPlatformName != null">
        biz_platform_name = #{record.bizPlatformName,jdbcType=VARCHAR},
      </if>
      <if test="record.orderTypeCode != null">
        order_type_code = #{record.orderTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="record.orderTypeName != null">
        order_type_name = #{record.orderTypeName,jdbcType=VARCHAR},
      </if>
      <if test="record.goodsTypeId != null">
        goods_type_id = #{record.goodsTypeId,jdbcType=TINYINT},
      </if>
      <if test="record.goodsId != null">
        goods_id = #{record.goodsId,jdbcType=VARCHAR},
      </if>
      <if test="record.goodsName != null">
        goods_name = #{record.goodsName,jdbcType=VARCHAR},
      </if>
      <if test="record.orderAmount != null">
        order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.integralTypeId != null">
        integral_type_id = #{record.integralTypeId,jdbcType=TINYINT},
      </if>
      <if test="record.integralTypeName != null">
        integral_type_name = #{record.integralTypeName,jdbcType=VARCHAR},
      </if>
      <if test="record.batch != null">
        batch = #{record.batch,jdbcType=VARCHAR},
      </if>
      <if test="record.transactorId != null">
        transactor_id = #{record.transactorId,jdbcType=VARCHAR},
      </if>
      <if test="record.transactorName != null">
        transactor_name = #{record.transactorName,jdbcType=VARCHAR},
      </if>
      <if test="record.transactorMobile != null">
        transactor_mobile = #{record.transactorMobile,jdbcType=VARCHAR},
      </if>
      <if test="record.enterpriseId != null">
        enterprise_id = #{record.enterpriseId,jdbcType=VARCHAR},
      </if>
      <if test="record.enterpriseName != null">
        enterprise_name = #{record.enterpriseName,jdbcType=VARCHAR},
      </if>
      <if test="record.orgId != null">
        org_id = #{record.orgId,jdbcType=VARCHAR},
      </if>
      <if test="record.orgName != null">
        org_name = #{record.orgName,jdbcType=VARCHAR},
      </if>
      <if test="record.operatorId != null">
        operator_id = #{record.operatorId,jdbcType=VARCHAR},
      </if>
      <if test="record.operatorName != null">
        operator_name = #{record.operatorName,jdbcType=VARCHAR},
      </if>
      <if test="record.supplierId != null">
        supplier_id = #{record.supplierId,jdbcType=VARCHAR},
      </if>
      <if test="record.supplierName != null">
        supplier_name = #{record.supplierName,jdbcType=VARCHAR},
      </if>
      <if test="record.bizPayTypeId != null">
        biz_pay_type_id = #{record.bizPayTypeId,jdbcType=VARCHAR},
      </if>
      <if test="record.bizPayTypeName != null">
        biz_pay_type_name = #{record.bizPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="record.platformPayTypeId != null">
        platform_pay_type_id = #{record.platformPayTypeId,jdbcType=BIGINT},
      </if>
      <if test="record.platformPayTypeName != null">
        platform_pay_type_name = #{record.platformPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="record.payStatusId != null">
        pay_status_id = #{record.payStatusId,jdbcType=TINYINT},
      </if>
      <if test="record.orderCreateTime != null">
        order_create_time = #{record.orderCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.tradingTime != null">
        trading_time = #{record.tradingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.finishTime != null">
        finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.accountingStatus != null">
        accounting_status = #{record.accountingStatus,jdbcType=TINYINT},
      </if>
      <if test="record.accountingOrderSnOperator != null">
        accounting_order_sn_operator = #{record.accountingOrderSnOperator,jdbcType=VARCHAR},
      </if>
      <if test="record.isSettlement != null">
        is_settlement = #{record.isSettlement,jdbcType=TINYINT},
      </if>
      <if test="record.createUserId != null">
        create_user_id = #{record.createUserId,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateUserId != null">
        update_user_id = #{record.updateUserId,jdbcType=VARCHAR},
      </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">
    update unified_accounting_order_credit
    set id = #{record.id,jdbcType=BIGINT},
      order_credit_id = #{record.orderCreditId,jdbcType=VARCHAR},
      biz_type_id = #{record.bizTypeId,jdbcType=TINYINT},
      order_sn = #{record.orderSn,jdbcType=VARCHAR},
      order_id = #{record.orderId,jdbcType=VARCHAR},
      order_goods_id = #{record.orderGoodsId,jdbcType=VARCHAR},
      biz_transaction_number = #{record.bizTransactionNumber,jdbcType=VARCHAR},
      third_party_transaction_number = #{record.thirdPartyTransactionNumber,jdbcType=VARCHAR},
      biz_platform_code = #{record.bizPlatformCode,jdbcType=VARCHAR},
      biz_platform_name = #{record.bizPlatformName,jdbcType=VARCHAR},
      order_type_code = #{record.orderTypeCode,jdbcType=VARCHAR},
      order_type_name = #{record.orderTypeName,jdbcType=VARCHAR},
      goods_type_id = #{record.goodsTypeId,jdbcType=TINYINT},
      goods_id = #{record.goodsId,jdbcType=VARCHAR},
      goods_name = #{record.goodsName,jdbcType=VARCHAR},
      order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      integral_type_id = #{record.integralTypeId,jdbcType=TINYINT},
      integral_type_name = #{record.integralTypeName,jdbcType=VARCHAR},
      batch = #{record.batch,jdbcType=VARCHAR},
      transactor_id = #{record.transactorId,jdbcType=VARCHAR},
      transactor_name = #{record.transactorName,jdbcType=VARCHAR},
      transactor_mobile = #{record.transactorMobile,jdbcType=VARCHAR},
      enterprise_id = #{record.enterpriseId,jdbcType=VARCHAR},
      enterprise_name = #{record.enterpriseName,jdbcType=VARCHAR},
      org_id = #{record.orgId,jdbcType=VARCHAR},
      org_name = #{record.orgName,jdbcType=VARCHAR},
      operator_id = #{record.operatorId,jdbcType=VARCHAR},
      operator_name = #{record.operatorName,jdbcType=VARCHAR},
      supplier_id = #{record.supplierId,jdbcType=VARCHAR},
      supplier_name = #{record.supplierName,jdbcType=VARCHAR},
      biz_pay_type_id = #{record.bizPayTypeId,jdbcType=VARCHAR},
      biz_pay_type_name = #{record.bizPayTypeName,jdbcType=VARCHAR},
      platform_pay_type_id = #{record.platformPayTypeId,jdbcType=BIGINT},
      platform_pay_type_name = #{record.platformPayTypeName,jdbcType=VARCHAR},
      pay_status_id = #{record.payStatusId,jdbcType=TINYINT},
      order_create_time = #{record.orderCreateTime,jdbcType=TIMESTAMP},
      trading_time = #{record.tradingTime,jdbcType=TIMESTAMP},
      finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      accounting_status = #{record.accountingStatus,jdbcType=TINYINT},
      accounting_order_sn_operator = #{record.accountingOrderSnOperator,jdbcType=VARCHAR},
      is_settlement = #{record.isSettlement,jdbcType=TINYINT},
      create_user_id = #{record.createUserId,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCredit">
    update unified_accounting_order_credit
    <set>
      <if test="orderCreditId != null">
        order_credit_id = #{orderCreditId,jdbcType=VARCHAR},
      </if>
      <if test="bizTypeId != null">
        biz_type_id = #{bizTypeId,jdbcType=TINYINT},
      </if>
      <if test="orderSn != null">
        order_sn = #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderId != null">
        order_id = #{orderId,jdbcType=VARCHAR},
      </if>
      <if test="orderGoodsId != null">
        order_goods_id = #{orderGoodsId,jdbcType=VARCHAR},
      </if>
      <if test="bizTransactionNumber != null">
        biz_transaction_number = #{bizTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="thirdPartyTransactionNumber != null">
        third_party_transaction_number = #{thirdPartyTransactionNumber,jdbcType=VARCHAR},
      </if>
      <if test="bizPlatformCode != null">
        biz_platform_code = #{bizPlatformCode,jdbcType=VARCHAR},
      </if>
      <if test="bizPlatformName != null">
        biz_platform_name = #{bizPlatformName,jdbcType=VARCHAR},
      </if>
      <if test="orderTypeCode != null">
        order_type_code = #{orderTypeCode,jdbcType=VARCHAR},
      </if>
      <if test="orderTypeName != null">
        order_type_name = #{orderTypeName,jdbcType=VARCHAR},
      </if>
      <if test="goodsTypeId != null">
        goods_type_id = #{goodsTypeId,jdbcType=TINYINT},
      </if>
      <if test="goodsId != null">
        goods_id = #{goodsId,jdbcType=VARCHAR},
      </if>
      <if test="goodsName != null">
        goods_name = #{goodsName,jdbcType=VARCHAR},
      </if>
      <if test="orderAmount != null">
        order_amount = #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="integralTypeId != null">
        integral_type_id = #{integralTypeId,jdbcType=TINYINT},
      </if>
      <if test="integralTypeName != null">
        integral_type_name = #{integralTypeName,jdbcType=VARCHAR},
      </if>
      <if test="batch != null">
        batch = #{batch,jdbcType=VARCHAR},
      </if>
      <if test="transactorId != null">
        transactor_id = #{transactorId,jdbcType=VARCHAR},
      </if>
      <if test="transactorName != null">
        transactor_name = #{transactorName,jdbcType=VARCHAR},
      </if>
      <if test="transactorMobile != null">
        transactor_mobile = #{transactorMobile,jdbcType=VARCHAR},
      </if>
      <if test="enterpriseId != null">
        enterprise_id = #{enterpriseId,jdbcType=VARCHAR},
      </if>
      <if test="enterpriseName != null">
        enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
      </if>
      <if test="orgId != null">
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
      <if test="orgName != null">
        org_name = #{orgName,jdbcType=VARCHAR},
      </if>
      <if test="operatorId != null">
        operator_id = #{operatorId,jdbcType=VARCHAR},
      </if>
      <if test="operatorName != null">
        operator_name = #{operatorName,jdbcType=VARCHAR},
      </if>
      <if test="supplierId != null">
        supplier_id = #{supplierId,jdbcType=VARCHAR},
      </if>
      <if test="supplierName != null">
        supplier_name = #{supplierName,jdbcType=VARCHAR},
      </if>
      <if test="bizPayTypeId != null">
        biz_pay_type_id = #{bizPayTypeId,jdbcType=VARCHAR},
      </if>
      <if test="bizPayTypeName != null">
        biz_pay_type_name = #{bizPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="platformPayTypeId != null">
        platform_pay_type_id = #{platformPayTypeId,jdbcType=BIGINT},
      </if>
      <if test="platformPayTypeName != null">
        platform_pay_type_name = #{platformPayTypeName,jdbcType=VARCHAR},
      </if>
      <if test="payStatusId != null">
        pay_status_id = #{payStatusId,jdbcType=TINYINT},
      </if>
      <if test="orderCreateTime != null">
        order_create_time = #{orderCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tradingTime != null">
        trading_time = #{tradingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        finish_time = #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="accountingStatus != null">
        accounting_status = #{accountingStatus,jdbcType=TINYINT},
      </if>
      <if test="accountingOrderSnOperator != null">
        accounting_order_sn_operator = #{accountingOrderSnOperator,jdbcType=VARCHAR},
      </if>
      <if test="isSettlement != null">
        is_settlement = #{isSettlement,jdbcType=TINYINT},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.accounting.UnifiedAccountingOrderCredit">
    update unified_accounting_order_credit
    set order_credit_id = #{orderCreditId,jdbcType=VARCHAR},
      biz_type_id = #{bizTypeId,jdbcType=TINYINT},
      order_sn = #{orderSn,jdbcType=VARCHAR},
      order_id = #{orderId,jdbcType=VARCHAR},
      order_goods_id = #{orderGoodsId,jdbcType=VARCHAR},
      biz_transaction_number = #{bizTransactionNumber,jdbcType=VARCHAR},
      third_party_transaction_number = #{thirdPartyTransactionNumber,jdbcType=VARCHAR},
      biz_platform_code = #{bizPlatformCode,jdbcType=VARCHAR},
      biz_platform_name = #{bizPlatformName,jdbcType=VARCHAR},
      order_type_code = #{orderTypeCode,jdbcType=VARCHAR},
      order_type_name = #{orderTypeName,jdbcType=VARCHAR},
      goods_type_id = #{goodsTypeId,jdbcType=TINYINT},
      goods_id = #{goodsId,jdbcType=VARCHAR},
      goods_name = #{goodsName,jdbcType=VARCHAR},
      order_amount = #{orderAmount,jdbcType=DECIMAL},
      integral_type_id = #{integralTypeId,jdbcType=TINYINT},
      integral_type_name = #{integralTypeName,jdbcType=VARCHAR},
      batch = #{batch,jdbcType=VARCHAR},
      transactor_id = #{transactorId,jdbcType=VARCHAR},
      transactor_name = #{transactorName,jdbcType=VARCHAR},
      transactor_mobile = #{transactorMobile,jdbcType=VARCHAR},
      enterprise_id = #{enterpriseId,jdbcType=VARCHAR},
      enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
      org_id = #{orgId,jdbcType=VARCHAR},
      org_name = #{orgName,jdbcType=VARCHAR},
      operator_id = #{operatorId,jdbcType=VARCHAR},
      operator_name = #{operatorName,jdbcType=VARCHAR},
      supplier_id = #{supplierId,jdbcType=VARCHAR},
      supplier_name = #{supplierName,jdbcType=VARCHAR},
      biz_pay_type_id = #{bizPayTypeId,jdbcType=VARCHAR},
      biz_pay_type_name = #{bizPayTypeName,jdbcType=VARCHAR},
      platform_pay_type_id = #{platformPayTypeId,jdbcType=BIGINT},
      platform_pay_type_name = #{platformPayTypeName,jdbcType=VARCHAR},
      pay_status_id = #{payStatusId,jdbcType=TINYINT},
      order_create_time = #{orderCreateTime,jdbcType=TIMESTAMP},
      trading_time = #{tradingTime,jdbcType=TIMESTAMP},
      finish_time = #{finishTime,jdbcType=TIMESTAMP},
      accounting_status = #{accountingStatus,jdbcType=TINYINT},
      accounting_order_sn_operator = #{accountingOrderSnOperator,jdbcType=VARCHAR},
      is_settlement = #{isSettlement,jdbcType=TINYINT},
      create_user_id = #{createUserId,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>


</mapper>