<?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.OperationCenterOrderTransactionLogMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.operationCenter.OperationCenterOrderTransactionLog">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="biz_type_id" jdbcType="TINYINT" property="bizTypeId" />
    <result column="order_goods_id" jdbcType="VARCHAR" property="orderGoodsId" />
    <result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
    <result column="order_id" jdbcType="VARCHAR" property="orderId" />
    <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_sku" jdbcType="VARCHAR" property="goodsSku" />
    <result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
    <result column="unit" jdbcType="VARCHAR" property="unit" />
    <result column="settlement_amount" jdbcType="DECIMAL" property="settlementAmount" />
    <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="biz_pay_channel_id" jdbcType="VARCHAR" property="bizPayChannelId" />
    <result column="biz_pay_channel_name" jdbcType="VARCHAR" property="bizPayChannelName" />
    <result column="transaction_fee" jdbcType="DECIMAL" property="transactionFee" />
    <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="refund_origin_order_sn" jdbcType="VARCHAR" property="refundOriginOrderSn" />
    <result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
    <result column="create_user_name" jdbcType="VARCHAR" property="createUserName" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  </resultMap>

  <sql id="Base_Column_List">
    id, biz_type_id, order_goods_id, order_sn, order_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_sku, goods_name, unit, settlement_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, biz_pay_channel_id, 
    biz_pay_channel_name, transaction_fee, order_create_time, trading_time, finish_time, 
    refund_origin_order_sn, create_user_id, create_user_name, create_time
  </sql>

  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_operation_center_order_transaction_log
    where id = #{id,jdbcType=BIGINT}
  </select>

  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from tb_operation_center_order_transaction_log
    where id = #{id,jdbcType=BIGINT}
  </delete>

  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.OperationCenterOrderTransactionLog">
    insert into tb_operation_center_order_transaction_log (id, biz_type_id, order_goods_id, 
      order_sn, order_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_sku, 
      goods_name, unit, settlement_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, biz_pay_channel_id, biz_pay_channel_name, 
      transaction_fee, order_create_time, trading_time, 
      finish_time, refund_origin_order_sn, create_user_id, 
      create_user_name, create_time)
    values (#{id,jdbcType=BIGINT}, #{bizTypeId,jdbcType=TINYINT}, #{orderGoodsId,jdbcType=VARCHAR}, 
      #{orderSn,jdbcType=VARCHAR}, #{orderId,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}, #{goodsSku,jdbcType=VARCHAR}, 
      #{goodsName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{settlementAmount,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}, #{bizPayChannelId,jdbcType=VARCHAR}, #{bizPayChannelName,jdbcType=VARCHAR}, 
      #{transactionFee,jdbcType=DECIMAL}, #{orderCreateTime,jdbcType=TIMESTAMP}, #{tradingTime,jdbcType=TIMESTAMP}, 
      #{finishTime,jdbcType=TIMESTAMP}, #{refundOriginOrderSn,jdbcType=VARCHAR}, #{createUserId,jdbcType=VARCHAR}, 
      #{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.OperationCenterOrderTransactionLog">
    insert into tb_operation_center_order_transaction_log
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bizTypeId != null">
        biz_type_id,
      </if>
      <if test="orderGoodsId != null">
        order_goods_id,
      </if>
      <if test="orderSn != null">
        order_sn,
      </if>
      <if test="orderId != null">
        order_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="goodsSku != null">
        goods_sku,
      </if>
      <if test="goodsName != null">
        goods_name,
      </if>
      <if test="unit != null">
        unit,
      </if>
      <if test="settlementAmount != null">
        settlement_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="bizPayChannelId != null">
        biz_pay_channel_id,
      </if>
      <if test="bizPayChannelName != null">
        biz_pay_channel_name,
      </if>
      <if test="transactionFee != null">
        transaction_fee,
      </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="refundOriginOrderSn != null">
        refund_origin_order_sn,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createUserName != null">
        create_user_name,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="bizTypeId != null">
        #{bizTypeId,jdbcType=TINYINT},
      </if>
      <if test="orderGoodsId != null">
        #{orderGoodsId,jdbcType=VARCHAR},
      </if>
      <if test="orderSn != null">
        #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderId != null">
        #{orderId,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="goodsSku != null">
        #{goodsSku,jdbcType=VARCHAR},
      </if>
      <if test="goodsName != null">
        #{goodsName,jdbcType=VARCHAR},
      </if>
      <if test="unit != null">
        #{unit,jdbcType=VARCHAR},
      </if>
      <if test="settlementAmount != null">
        #{settlementAmount,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="bizPayChannelId != null">
        #{bizPayChannelId,jdbcType=VARCHAR},
      </if>
      <if test="bizPayChannelName != null">
        #{bizPayChannelName,jdbcType=VARCHAR},
      </if>
      <if test="transactionFee != null">
        #{transactionFee,jdbcType=DECIMAL},
      </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="refundOriginOrderSn != null">
        #{refundOriginOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=VARCHAR},
      </if>
      <if test="createUserName != null">
        #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>

  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.OperationCenterOrderTransactionLog">
    update tb_operation_center_order_transaction_log
    <set>
      <if test="bizTypeId != null">
        biz_type_id = #{bizTypeId,jdbcType=TINYINT},
      </if>
      <if test="orderGoodsId != null">
        order_goods_id = #{orderGoodsId,jdbcType=VARCHAR},
      </if>
      <if test="orderSn != null">
        order_sn = #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderId != null">
        order_id = #{orderId,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="goodsSku != null">
        goods_sku = #{goodsSku,jdbcType=VARCHAR},
      </if>
      <if test="goodsName != null">
        goods_name = #{goodsName,jdbcType=VARCHAR},
      </if>
      <if test="unit != null">
        unit = #{unit,jdbcType=VARCHAR},
      </if>
      <if test="settlementAmount != null">
        settlement_amount = #{settlementAmount,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="bizPayChannelId != null">
        biz_pay_channel_id = #{bizPayChannelId,jdbcType=VARCHAR},
      </if>
      <if test="bizPayChannelName != null">
        biz_pay_channel_name = #{bizPayChannelName,jdbcType=VARCHAR},
      </if>
      <if test="transactionFee != null">
        transaction_fee = #{transactionFee,jdbcType=DECIMAL},
      </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="refundOriginOrderSn != null">
        refund_origin_order_sn = #{refundOriginOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=VARCHAR},
      </if>
      <if test="createUserName != null">
        create_user_name = #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.operationCenter.OperationCenterOrderTransactionLog">
    update tb_operation_center_order_transaction_log
    set biz_type_id = #{bizTypeId,jdbcType=TINYINT},
      order_goods_id = #{orderGoodsId,jdbcType=VARCHAR},
      order_sn = #{orderSn,jdbcType=VARCHAR},
      order_id = #{orderId,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_sku = #{goodsSku,jdbcType=VARCHAR},
      goods_name = #{goodsName,jdbcType=VARCHAR},
      unit = #{unit,jdbcType=VARCHAR},
      settlement_amount = #{settlementAmount,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},
      biz_pay_channel_id = #{bizPayChannelId,jdbcType=VARCHAR},
      biz_pay_channel_name = #{bizPayChannelName,jdbcType=VARCHAR},
      transaction_fee = #{transactionFee,jdbcType=DECIMAL},
      order_create_time = #{orderCreateTime,jdbcType=TIMESTAMP},
      trading_time = #{tradingTime,jdbcType=TIMESTAMP},
      finish_time = #{finishTime,jdbcType=TIMESTAMP},
      refund_origin_order_sn = #{refundOriginOrderSn,jdbcType=VARCHAR},
      create_user_id = #{createUserId,jdbcType=VARCHAR},
      create_user_name = #{createUserName,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>

  <select id="getOrderTransactionListByOrderSn"
          resultType="cn.superdesk.uniorder.dto.vo.operationCenter.order.OperationCenterOrderTransactionLogVo">
    SELECT
      t.biz_type_id bizTypeId,
      t.order_type_name orderTypeName,
      t.order_goods_id orderGoodsId,
      t.order_sn orderSn,
      t.biz_transaction_number bizTransactionNumber,
      t.third_party_transaction_number thirdPartyTransactionNumber,
      t.order_create_time orderCreateTime,
      t.trading_time tradingTime,
      t.finish_time finishTime,
      t.goods_type_id goodsTypeId,
      t.goods_id goodsId,
      t.goods_sku goodsSku,
      t.goods_name goodsName,
      t.settlement_amount settlementAmount,
      t.platform_pay_type_name platformPayTypeName,
      t.pay_status_id payStatusId,
      t.integral_type_name integralTypeName,
      t.batch ,
      t.transactor_name transactorName,
      t.transactor_mobile transactorMobile,
      t.refund_origin_order_sn refundOriginOrderSn,
      t.operator_name   operatorName,
      t.biz_platform_name  bizPlatformName
    FROM
      tb_operation_center_order_transaction_log t
    WHERE
    1=1
    <if test="platformCode != null and platformCode !=''">
      and  t.biz_platform_code=#{platformCode}
    </if>
    <if test="orderSn != null and orderSn !=''">
      and  t.order_sn=#{orderSn}
    </if>

    order by t.id
  </select>

</mapper>