<?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.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReportMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="batch_id" jdbcType="VARCHAR" property="batchId" />
    <result column="accounting_unified_supplier_order_jd_id" jdbcType="BIGINT" property="accountingUnifiedSupplierOrderJdId" />
    <result column="jd_accounting_order_sn" jdbcType="VARCHAR" property="jdAccountingOrderSn" />
    <result column="jd_order_sn" jdbcType="VARCHAR" property="jdOrderSn" />
    <result column="jd_original_order_sn" jdbcType="VARCHAR" property="jdOriginalOrderSn" />
    <result column="jd_order_amount" jdbcType="DECIMAL" property="jdOrderAmount" />
    <result column="whole_order_amount" jdbcType="DECIMAL" property="wholeOrderAmount" />
    <result column="jd_repayment_amount" jdbcType="DECIMAL" property="jdRepaymentAmount" />
    <result column="jd_refund_amount" jdbcType="DECIMAL" property="jdRefundAmount" />
    <result column="jd_out_standing_amount" jdbcType="DECIMAL" property="jdOutStandingAmount" />
    <result column="jd_order_state" jdbcType="TINYINT" property="jdOrderState" />
    <result column="jd_order_state_name" jdbcType="VARCHAR" property="jdOrderStateName" />
    <result column="were_accounted_state" jdbcType="TINYINT" property="wereAccountedState" />
    <result column="were_accounted_state_name" jdbcType="VARCHAR" property="wereAccountedStateName" />
    <result column="after_sale_state" jdbcType="TINYINT" property="afterSaleState" />
    <result column="after_sale_state_name" jdbcType="VARCHAR" property="afterSaleStateName" />
    <result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
    <result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
    <result column="order_cost_amount" jdbcType="DECIMAL" property="orderCostAmount" />
    <result column="refund_order_amount" jdbcType="DECIMAL" property="refundOrderAmount" />
    <result column="refund_order_cost_amount" jdbcType="DECIMAL" property="refundOrderCostAmount" />
    <result column="transport_amount" jdbcType="DECIMAL" property="transportAmount" />
    <result column="transport_merchant_assume_amount" jdbcType="DECIMAL" property="transportMerchantAssumeAmount" />
    <result column="goods_amount" jdbcType="DECIMAL" property="goodsAmount" />
    <result column="goods_cost_amount" jdbcType="DECIMAL" property="goodsCostAmount" />
    <result column="refund_goods_amount" jdbcType="DECIMAL" property="refundGoodsAmount" />
    <result column="refund_goods_cost_amount" jdbcType="DECIMAL" property="refundGoodsCostAmount" />
    <result column="order_state" jdbcType="TINYINT" property="orderState" />
    <result column="complet_state" jdbcType="TINYINT" property="completState" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="process_result" jdbcType="TINYINT" property="processResult" />
    <result column="compared_whole_amount" jdbcType="DECIMAL" property="comparedWholeAmount" />
    <result column="compared_order_amount" jdbcType="DECIMAL" property="comparedOrderAmount" />
    <result column="compared_refund_order_amount" jdbcType="DECIMAL" property="comparedRefundOrderAmount" />
    <result column="compared_transport_amount" jdbcType="DECIMAL" property="comparedTransportAmount" />
    <result column="define_error" jdbcType="TINYINT" property="defineError" />
    <result column="order_accounting_state_supplier" jdbcType="INTEGER" property="orderAccountingStateSupplier" />
    <result column="goods_accounting_state_supplier_eq_minus_1" jdbcType="INTEGER" property="goodsAccountingStateSupplierEqMinus1" />
    <result column="goods_accounting_state_supplier_eq_2" jdbcType="INTEGER" property="goodsAccountingStateSupplierEq2" />
    <result column="goods_accounting_state_supplier_eq_1" jdbcType="INTEGER" property="goodsAccountingStateSupplierEq1" />
    <result column="goods_accounting_state_supplier_eq_4" jdbcType="INTEGER" property="goodsAccountingStateSupplierEq4" />
    <result column="order_goods_item_quantity" jdbcType="INTEGER" property="orderGoodsItemQuantity" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    <result column="process_report" jdbcType="LONGVARCHAR" property="processReport" />
  </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, batch_id, accounting_unified_supplier_order_jd_id, jd_accounting_order_sn, jd_order_sn, 
    jd_original_order_sn, jd_order_amount, whole_order_amount, jd_repayment_amount, jd_refund_amount, 
    jd_out_standing_amount, jd_order_state, jd_order_state_name, were_accounted_state, 
    were_accounted_state_name, after_sale_state, after_sale_state_name, order_sn, order_amount, 
    order_cost_amount, refund_order_amount, refund_order_cost_amount, transport_amount, 
    transport_merchant_assume_amount, goods_amount, goods_cost_amount, refund_goods_amount, 
    refund_goods_cost_amount, order_state, complet_state, create_time, process_result, 
    compared_whole_amount, compared_order_amount, compared_refund_order_amount, compared_transport_amount, 
    define_error, order_accounting_state_supplier, goods_accounting_state_supplier_eq_minus_1, 
    goods_accounting_state_supplier_eq_2, goods_accounting_state_supplier_eq_1, goods_accounting_state_supplier_eq_4, 
    order_goods_item_quantity
  </sql>
  <sql id="Blob_Column_List">
    process_report
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReportExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from accounting_unified_supplier_order_jd_check_up_report
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReportExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from accounting_unified_supplier_order_jd_check_up_report
    <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="ResultMapWithBLOBs">
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from accounting_unified_supplier_order_jd_check_up_report
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from accounting_unified_supplier_order_jd_check_up_report
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReportExample">
    delete from accounting_unified_supplier_order_jd_check_up_report
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into accounting_unified_supplier_order_jd_check_up_report (batch_id, accounting_unified_supplier_order_jd_id, 
      jd_accounting_order_sn, jd_order_sn, jd_original_order_sn, 
      jd_order_amount, whole_order_amount, jd_repayment_amount, 
      jd_refund_amount, jd_out_standing_amount, jd_order_state, 
      jd_order_state_name, were_accounted_state, were_accounted_state_name, 
      after_sale_state, after_sale_state_name, order_sn, 
      order_amount, order_cost_amount, refund_order_amount, 
      refund_order_cost_amount, transport_amount, 
      transport_merchant_assume_amount, goods_amount, 
      goods_cost_amount, refund_goods_amount, refund_goods_cost_amount, 
      order_state, complet_state, create_time, 
      process_result, compared_whole_amount, compared_order_amount, 
      compared_refund_order_amount, compared_transport_amount, 
      define_error, order_accounting_state_supplier, 
      goods_accounting_state_supplier_eq_minus_1, goods_accounting_state_supplier_eq_2, 
      goods_accounting_state_supplier_eq_1, goods_accounting_state_supplier_eq_4, 
      order_goods_item_quantity, process_report
      )
    values (#{batchId,jdbcType=VARCHAR}, #{accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT}, 
      #{jdAccountingOrderSn,jdbcType=VARCHAR}, #{jdOrderSn,jdbcType=VARCHAR}, #{jdOriginalOrderSn,jdbcType=VARCHAR}, 
      #{jdOrderAmount,jdbcType=DECIMAL}, #{wholeOrderAmount,jdbcType=DECIMAL}, #{jdRepaymentAmount,jdbcType=DECIMAL}, 
      #{jdRefundAmount,jdbcType=DECIMAL}, #{jdOutStandingAmount,jdbcType=DECIMAL}, #{jdOrderState,jdbcType=TINYINT}, 
      #{jdOrderStateName,jdbcType=VARCHAR}, #{wereAccountedState,jdbcType=TINYINT}, #{wereAccountedStateName,jdbcType=VARCHAR}, 
      #{afterSaleState,jdbcType=TINYINT}, #{afterSaleStateName,jdbcType=VARCHAR}, #{orderSn,jdbcType=VARCHAR}, 
      #{orderAmount,jdbcType=DECIMAL}, #{orderCostAmount,jdbcType=DECIMAL}, #{refundOrderAmount,jdbcType=DECIMAL}, 
      #{refundOrderCostAmount,jdbcType=DECIMAL}, #{transportAmount,jdbcType=DECIMAL}, 
      #{transportMerchantAssumeAmount,jdbcType=DECIMAL}, #{goodsAmount,jdbcType=DECIMAL}, 
      #{goodsCostAmount,jdbcType=DECIMAL}, #{refundGoodsAmount,jdbcType=DECIMAL}, #{refundGoodsCostAmount,jdbcType=DECIMAL}, 
      #{orderState,jdbcType=TINYINT}, #{completState,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, 
      #{processResult,jdbcType=TINYINT}, #{comparedWholeAmount,jdbcType=DECIMAL}, #{comparedOrderAmount,jdbcType=DECIMAL}, 
      #{comparedRefundOrderAmount,jdbcType=DECIMAL}, #{comparedTransportAmount,jdbcType=DECIMAL}, 
      #{defineError,jdbcType=TINYINT}, #{orderAccountingStateSupplier,jdbcType=INTEGER}, 
      #{goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER}, #{goodsAccountingStateSupplierEq2,jdbcType=INTEGER}, 
      #{goodsAccountingStateSupplierEq1,jdbcType=INTEGER}, #{goodsAccountingStateSupplierEq4,jdbcType=INTEGER}, 
      #{orderGoodsItemQuantity,jdbcType=INTEGER}, #{processReport,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into accounting_unified_supplier_order_jd_check_up_report
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="batchId != null">
        batch_id,
      </if>
      <if test="accountingUnifiedSupplierOrderJdId != null">
        accounting_unified_supplier_order_jd_id,
      </if>
      <if test="jdAccountingOrderSn != null">
        jd_accounting_order_sn,
      </if>
      <if test="jdOrderSn != null">
        jd_order_sn,
      </if>
      <if test="jdOriginalOrderSn != null">
        jd_original_order_sn,
      </if>
      <if test="jdOrderAmount != null">
        jd_order_amount,
      </if>
      <if test="wholeOrderAmount != null">
        whole_order_amount,
      </if>
      <if test="jdRepaymentAmount != null">
        jd_repayment_amount,
      </if>
      <if test="jdRefundAmount != null">
        jd_refund_amount,
      </if>
      <if test="jdOutStandingAmount != null">
        jd_out_standing_amount,
      </if>
      <if test="jdOrderState != null">
        jd_order_state,
      </if>
      <if test="jdOrderStateName != null">
        jd_order_state_name,
      </if>
      <if test="wereAccountedState != null">
        were_accounted_state,
      </if>
      <if test="wereAccountedStateName != null">
        were_accounted_state_name,
      </if>
      <if test="afterSaleState != null">
        after_sale_state,
      </if>
      <if test="afterSaleStateName != null">
        after_sale_state_name,
      </if>
      <if test="orderSn != null">
        order_sn,
      </if>
      <if test="orderAmount != null">
        order_amount,
      </if>
      <if test="orderCostAmount != null">
        order_cost_amount,
      </if>
      <if test="refundOrderAmount != null">
        refund_order_amount,
      </if>
      <if test="refundOrderCostAmount != null">
        refund_order_cost_amount,
      </if>
      <if test="transportAmount != null">
        transport_amount,
      </if>
      <if test="transportMerchantAssumeAmount != null">
        transport_merchant_assume_amount,
      </if>
      <if test="goodsAmount != null">
        goods_amount,
      </if>
      <if test="goodsCostAmount != null">
        goods_cost_amount,
      </if>
      <if test="refundGoodsAmount != null">
        refund_goods_amount,
      </if>
      <if test="refundGoodsCostAmount != null">
        refund_goods_cost_amount,
      </if>
      <if test="orderState != null">
        order_state,
      </if>
      <if test="completState != null">
        complet_state,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="processResult != null">
        process_result,
      </if>
      <if test="comparedWholeAmount != null">
        compared_whole_amount,
      </if>
      <if test="comparedOrderAmount != null">
        compared_order_amount,
      </if>
      <if test="comparedRefundOrderAmount != null">
        compared_refund_order_amount,
      </if>
      <if test="comparedTransportAmount != null">
        compared_transport_amount,
      </if>
      <if test="defineError != null">
        define_error,
      </if>
      <if test="orderAccountingStateSupplier != null">
        order_accounting_state_supplier,
      </if>
      <if test="goodsAccountingStateSupplierEqMinus1 != null">
        goods_accounting_state_supplier_eq_minus_1,
      </if>
      <if test="goodsAccountingStateSupplierEq2 != null">
        goods_accounting_state_supplier_eq_2,
      </if>
      <if test="goodsAccountingStateSupplierEq1 != null">
        goods_accounting_state_supplier_eq_1,
      </if>
      <if test="goodsAccountingStateSupplierEq4 != null">
        goods_accounting_state_supplier_eq_4,
      </if>
      <if test="orderGoodsItemQuantity != null">
        order_goods_item_quantity,
      </if>
      <if test="processReport != null">
        process_report,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="batchId != null">
        #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="accountingUnifiedSupplierOrderJdId != null">
        #{accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      </if>
      <if test="jdAccountingOrderSn != null">
        #{jdAccountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOrderSn != null">
        #{jdOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOriginalOrderSn != null">
        #{jdOriginalOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOrderAmount != null">
        #{jdOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="wholeOrderAmount != null">
        #{wholeOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdRepaymentAmount != null">
        #{jdRepaymentAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdRefundAmount != null">
        #{jdRefundAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdOutStandingAmount != null">
        #{jdOutStandingAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdOrderState != null">
        #{jdOrderState,jdbcType=TINYINT},
      </if>
      <if test="jdOrderStateName != null">
        #{jdOrderStateName,jdbcType=VARCHAR},
      </if>
      <if test="wereAccountedState != null">
        #{wereAccountedState,jdbcType=TINYINT},
      </if>
      <if test="wereAccountedStateName != null">
        #{wereAccountedStateName,jdbcType=VARCHAR},
      </if>
      <if test="afterSaleState != null">
        #{afterSaleState,jdbcType=TINYINT},
      </if>
      <if test="afterSaleStateName != null">
        #{afterSaleStateName,jdbcType=VARCHAR},
      </if>
      <if test="orderSn != null">
        #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderAmount != null">
        #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderCostAmount != null">
        #{orderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundOrderAmount != null">
        #{refundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundOrderCostAmount != null">
        #{refundOrderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="transportAmount != null">
        #{transportAmount,jdbcType=DECIMAL},
      </if>
      <if test="transportMerchantAssumeAmount != null">
        #{transportMerchantAssumeAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsAmount != null">
        #{goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsCostAmount != null">
        #{goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundGoodsAmount != null">
        #{refundGoodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundGoodsCostAmount != null">
        #{refundGoodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderState != null">
        #{orderState,jdbcType=TINYINT},
      </if>
      <if test="completState != null">
        #{completState,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="processResult != null">
        #{processResult,jdbcType=TINYINT},
      </if>
      <if test="comparedWholeAmount != null">
        #{comparedWholeAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedOrderAmount != null">
        #{comparedOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedRefundOrderAmount != null">
        #{comparedRefundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedTransportAmount != null">
        #{comparedTransportAmount,jdbcType=DECIMAL},
      </if>
      <if test="defineError != null">
        #{defineError,jdbcType=TINYINT},
      </if>
      <if test="orderAccountingStateSupplier != null">
        #{orderAccountingStateSupplier,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEqMinus1 != null">
        #{goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq2 != null">
        #{goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq1 != null">
        #{goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq4 != null">
        #{goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      </if>
      <if test="orderGoodsItemQuantity != null">
        #{orderGoodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="processReport != null">
        #{processReport,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReportExample" resultType="java.lang.Long">
    select count(*) from accounting_unified_supplier_order_jd_check_up_report
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update accounting_unified_supplier_order_jd_check_up_report
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.batchId != null">
        batch_id = #{record.batchId,jdbcType=VARCHAR},
      </if>
      <if test="record.accountingUnifiedSupplierOrderJdId != null">
        accounting_unified_supplier_order_jd_id = #{record.accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      </if>
      <if test="record.jdAccountingOrderSn != null">
        jd_accounting_order_sn = #{record.jdAccountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.jdOrderSn != null">
        jd_order_sn = #{record.jdOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.jdOriginalOrderSn != null">
        jd_original_order_sn = #{record.jdOriginalOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.jdOrderAmount != null">
        jd_order_amount = #{record.jdOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.wholeOrderAmount != null">
        whole_order_amount = #{record.wholeOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.jdRepaymentAmount != null">
        jd_repayment_amount = #{record.jdRepaymentAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.jdRefundAmount != null">
        jd_refund_amount = #{record.jdRefundAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.jdOutStandingAmount != null">
        jd_out_standing_amount = #{record.jdOutStandingAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.jdOrderState != null">
        jd_order_state = #{record.jdOrderState,jdbcType=TINYINT},
      </if>
      <if test="record.jdOrderStateName != null">
        jd_order_state_name = #{record.jdOrderStateName,jdbcType=VARCHAR},
      </if>
      <if test="record.wereAccountedState != null">
        were_accounted_state = #{record.wereAccountedState,jdbcType=TINYINT},
      </if>
      <if test="record.wereAccountedStateName != null">
        were_accounted_state_name = #{record.wereAccountedStateName,jdbcType=VARCHAR},
      </if>
      <if test="record.afterSaleState != null">
        after_sale_state = #{record.afterSaleState,jdbcType=TINYINT},
      </if>
      <if test="record.afterSaleStateName != null">
        after_sale_state_name = #{record.afterSaleStateName,jdbcType=VARCHAR},
      </if>
      <if test="record.orderSn != null">
        order_sn = #{record.orderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.orderAmount != null">
        order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.orderCostAmount != null">
        order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.refundOrderAmount != null">
        refund_order_amount = #{record.refundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.refundOrderCostAmount != null">
        refund_order_cost_amount = #{record.refundOrderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.transportAmount != null">
        transport_amount = #{record.transportAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.transportMerchantAssumeAmount != null">
        transport_merchant_assume_amount = #{record.transportMerchantAssumeAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.goodsAmount != null">
        goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.goodsCostAmount != null">
        goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.refundGoodsAmount != null">
        refund_goods_amount = #{record.refundGoodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.refundGoodsCostAmount != null">
        refund_goods_cost_amount = #{record.refundGoodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.orderState != null">
        order_state = #{record.orderState,jdbcType=TINYINT},
      </if>
      <if test="record.completState != null">
        complet_state = #{record.completState,jdbcType=TINYINT},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.processResult != null">
        process_result = #{record.processResult,jdbcType=TINYINT},
      </if>
      <if test="record.comparedWholeAmount != null">
        compared_whole_amount = #{record.comparedWholeAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.comparedOrderAmount != null">
        compared_order_amount = #{record.comparedOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.comparedRefundOrderAmount != null">
        compared_refund_order_amount = #{record.comparedRefundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.comparedTransportAmount != null">
        compared_transport_amount = #{record.comparedTransportAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.defineError != null">
        define_error = #{record.defineError,jdbcType=TINYINT},
      </if>
      <if test="record.orderAccountingStateSupplier != null">
        order_accounting_state_supplier = #{record.orderAccountingStateSupplier,jdbcType=INTEGER},
      </if>
      <if test="record.goodsAccountingStateSupplierEqMinus1 != null">
        goods_accounting_state_supplier_eq_minus_1 = #{record.goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      </if>
      <if test="record.goodsAccountingStateSupplierEq2 != null">
        goods_accounting_state_supplier_eq_2 = #{record.goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      </if>
      <if test="record.goodsAccountingStateSupplierEq1 != null">
        goods_accounting_state_supplier_eq_1 = #{record.goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      </if>
      <if test="record.goodsAccountingStateSupplierEq4 != null">
        goods_accounting_state_supplier_eq_4 = #{record.goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      </if>
      <if test="record.orderGoodsItemQuantity != null">
        order_goods_item_quantity = #{record.orderGoodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.processReport != null">
        process_report = #{record.processReport,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    update accounting_unified_supplier_order_jd_check_up_report
    set id = #{record.id,jdbcType=BIGINT},
      batch_id = #{record.batchId,jdbcType=VARCHAR},
      accounting_unified_supplier_order_jd_id = #{record.accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      jd_accounting_order_sn = #{record.jdAccountingOrderSn,jdbcType=VARCHAR},
      jd_order_sn = #{record.jdOrderSn,jdbcType=VARCHAR},
      jd_original_order_sn = #{record.jdOriginalOrderSn,jdbcType=VARCHAR},
      jd_order_amount = #{record.jdOrderAmount,jdbcType=DECIMAL},
      whole_order_amount = #{record.wholeOrderAmount,jdbcType=DECIMAL},
      jd_repayment_amount = #{record.jdRepaymentAmount,jdbcType=DECIMAL},
      jd_refund_amount = #{record.jdRefundAmount,jdbcType=DECIMAL},
      jd_out_standing_amount = #{record.jdOutStandingAmount,jdbcType=DECIMAL},
      jd_order_state = #{record.jdOrderState,jdbcType=TINYINT},
      jd_order_state_name = #{record.jdOrderStateName,jdbcType=VARCHAR},
      were_accounted_state = #{record.wereAccountedState,jdbcType=TINYINT},
      were_accounted_state_name = #{record.wereAccountedStateName,jdbcType=VARCHAR},
      after_sale_state = #{record.afterSaleState,jdbcType=TINYINT},
      after_sale_state_name = #{record.afterSaleStateName,jdbcType=VARCHAR},
      order_sn = #{record.orderSn,jdbcType=VARCHAR},
      order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      refund_order_amount = #{record.refundOrderAmount,jdbcType=DECIMAL},
      refund_order_cost_amount = #{record.refundOrderCostAmount,jdbcType=DECIMAL},
      transport_amount = #{record.transportAmount,jdbcType=DECIMAL},
      transport_merchant_assume_amount = #{record.transportMerchantAssumeAmount,jdbcType=DECIMAL},
      goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      refund_goods_amount = #{record.refundGoodsAmount,jdbcType=DECIMAL},
      refund_goods_cost_amount = #{record.refundGoodsCostAmount,jdbcType=DECIMAL},
      order_state = #{record.orderState,jdbcType=TINYINT},
      complet_state = #{record.completState,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      process_result = #{record.processResult,jdbcType=TINYINT},
      compared_whole_amount = #{record.comparedWholeAmount,jdbcType=DECIMAL},
      compared_order_amount = #{record.comparedOrderAmount,jdbcType=DECIMAL},
      compared_refund_order_amount = #{record.comparedRefundOrderAmount,jdbcType=DECIMAL},
      compared_transport_amount = #{record.comparedTransportAmount,jdbcType=DECIMAL},
      define_error = #{record.defineError,jdbcType=TINYINT},
      order_accounting_state_supplier = #{record.orderAccountingStateSupplier,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_minus_1 = #{record.goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_2 = #{record.goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_1 = #{record.goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_4 = #{record.goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      order_goods_item_quantity = #{record.orderGoodsItemQuantity,jdbcType=INTEGER},
      process_report = #{record.processReport,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update accounting_unified_supplier_order_jd_check_up_report
    set id = #{record.id,jdbcType=BIGINT},
      batch_id = #{record.batchId,jdbcType=VARCHAR},
      accounting_unified_supplier_order_jd_id = #{record.accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      jd_accounting_order_sn = #{record.jdAccountingOrderSn,jdbcType=VARCHAR},
      jd_order_sn = #{record.jdOrderSn,jdbcType=VARCHAR},
      jd_original_order_sn = #{record.jdOriginalOrderSn,jdbcType=VARCHAR},
      jd_order_amount = #{record.jdOrderAmount,jdbcType=DECIMAL},
      whole_order_amount = #{record.wholeOrderAmount,jdbcType=DECIMAL},
      jd_repayment_amount = #{record.jdRepaymentAmount,jdbcType=DECIMAL},
      jd_refund_amount = #{record.jdRefundAmount,jdbcType=DECIMAL},
      jd_out_standing_amount = #{record.jdOutStandingAmount,jdbcType=DECIMAL},
      jd_order_state = #{record.jdOrderState,jdbcType=TINYINT},
      jd_order_state_name = #{record.jdOrderStateName,jdbcType=VARCHAR},
      were_accounted_state = #{record.wereAccountedState,jdbcType=TINYINT},
      were_accounted_state_name = #{record.wereAccountedStateName,jdbcType=VARCHAR},
      after_sale_state = #{record.afterSaleState,jdbcType=TINYINT},
      after_sale_state_name = #{record.afterSaleStateName,jdbcType=VARCHAR},
      order_sn = #{record.orderSn,jdbcType=VARCHAR},
      order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      refund_order_amount = #{record.refundOrderAmount,jdbcType=DECIMAL},
      refund_order_cost_amount = #{record.refundOrderCostAmount,jdbcType=DECIMAL},
      transport_amount = #{record.transportAmount,jdbcType=DECIMAL},
      transport_merchant_assume_amount = #{record.transportMerchantAssumeAmount,jdbcType=DECIMAL},
      goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      refund_goods_amount = #{record.refundGoodsAmount,jdbcType=DECIMAL},
      refund_goods_cost_amount = #{record.refundGoodsCostAmount,jdbcType=DECIMAL},
      order_state = #{record.orderState,jdbcType=TINYINT},
      complet_state = #{record.completState,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      process_result = #{record.processResult,jdbcType=TINYINT},
      compared_whole_amount = #{record.comparedWholeAmount,jdbcType=DECIMAL},
      compared_order_amount = #{record.comparedOrderAmount,jdbcType=DECIMAL},
      compared_refund_order_amount = #{record.comparedRefundOrderAmount,jdbcType=DECIMAL},
      compared_transport_amount = #{record.comparedTransportAmount,jdbcType=DECIMAL},
      define_error = #{record.defineError,jdbcType=TINYINT},
      order_accounting_state_supplier = #{record.orderAccountingStateSupplier,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_minus_1 = #{record.goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_2 = #{record.goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_1 = #{record.goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_4 = #{record.goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      order_goods_item_quantity = #{record.orderGoodsItemQuantity,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    update accounting_unified_supplier_order_jd_check_up_report
    <set>
      <if test="batchId != null">
        batch_id = #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="accountingUnifiedSupplierOrderJdId != null">
        accounting_unified_supplier_order_jd_id = #{accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      </if>
      <if test="jdAccountingOrderSn != null">
        jd_accounting_order_sn = #{jdAccountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOrderSn != null">
        jd_order_sn = #{jdOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOriginalOrderSn != null">
        jd_original_order_sn = #{jdOriginalOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="jdOrderAmount != null">
        jd_order_amount = #{jdOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="wholeOrderAmount != null">
        whole_order_amount = #{wholeOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdRepaymentAmount != null">
        jd_repayment_amount = #{jdRepaymentAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdRefundAmount != null">
        jd_refund_amount = #{jdRefundAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdOutStandingAmount != null">
        jd_out_standing_amount = #{jdOutStandingAmount,jdbcType=DECIMAL},
      </if>
      <if test="jdOrderState != null">
        jd_order_state = #{jdOrderState,jdbcType=TINYINT},
      </if>
      <if test="jdOrderStateName != null">
        jd_order_state_name = #{jdOrderStateName,jdbcType=VARCHAR},
      </if>
      <if test="wereAccountedState != null">
        were_accounted_state = #{wereAccountedState,jdbcType=TINYINT},
      </if>
      <if test="wereAccountedStateName != null">
        were_accounted_state_name = #{wereAccountedStateName,jdbcType=VARCHAR},
      </if>
      <if test="afterSaleState != null">
        after_sale_state = #{afterSaleState,jdbcType=TINYINT},
      </if>
      <if test="afterSaleStateName != null">
        after_sale_state_name = #{afterSaleStateName,jdbcType=VARCHAR},
      </if>
      <if test="orderSn != null">
        order_sn = #{orderSn,jdbcType=VARCHAR},
      </if>
      <if test="orderAmount != null">
        order_amount = #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderCostAmount != null">
        order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundOrderAmount != null">
        refund_order_amount = #{refundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundOrderCostAmount != null">
        refund_order_cost_amount = #{refundOrderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="transportAmount != null">
        transport_amount = #{transportAmount,jdbcType=DECIMAL},
      </if>
      <if test="transportMerchantAssumeAmount != null">
        transport_merchant_assume_amount = #{transportMerchantAssumeAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsAmount != null">
        goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsCostAmount != null">
        goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundGoodsAmount != null">
        refund_goods_amount = #{refundGoodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="refundGoodsCostAmount != null">
        refund_goods_cost_amount = #{refundGoodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderState != null">
        order_state = #{orderState,jdbcType=TINYINT},
      </if>
      <if test="completState != null">
        complet_state = #{completState,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="processResult != null">
        process_result = #{processResult,jdbcType=TINYINT},
      </if>
      <if test="comparedWholeAmount != null">
        compared_whole_amount = #{comparedWholeAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedOrderAmount != null">
        compared_order_amount = #{comparedOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedRefundOrderAmount != null">
        compared_refund_order_amount = #{comparedRefundOrderAmount,jdbcType=DECIMAL},
      </if>
      <if test="comparedTransportAmount != null">
        compared_transport_amount = #{comparedTransportAmount,jdbcType=DECIMAL},
      </if>
      <if test="defineError != null">
        define_error = #{defineError,jdbcType=TINYINT},
      </if>
      <if test="orderAccountingStateSupplier != null">
        order_accounting_state_supplier = #{orderAccountingStateSupplier,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEqMinus1 != null">
        goods_accounting_state_supplier_eq_minus_1 = #{goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq2 != null">
        goods_accounting_state_supplier_eq_2 = #{goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq1 != null">
        goods_accounting_state_supplier_eq_1 = #{goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      </if>
      <if test="goodsAccountingStateSupplierEq4 != null">
        goods_accounting_state_supplier_eq_4 = #{goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      </if>
      <if test="orderGoodsItemQuantity != null">
        order_goods_item_quantity = #{orderGoodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="processReport != null">
        process_report = #{processReport,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    update accounting_unified_supplier_order_jd_check_up_report
    set batch_id = #{batchId,jdbcType=VARCHAR},
      accounting_unified_supplier_order_jd_id = #{accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      jd_accounting_order_sn = #{jdAccountingOrderSn,jdbcType=VARCHAR},
      jd_order_sn = #{jdOrderSn,jdbcType=VARCHAR},
      jd_original_order_sn = #{jdOriginalOrderSn,jdbcType=VARCHAR},
      jd_order_amount = #{jdOrderAmount,jdbcType=DECIMAL},
      whole_order_amount = #{wholeOrderAmount,jdbcType=DECIMAL},
      jd_repayment_amount = #{jdRepaymentAmount,jdbcType=DECIMAL},
      jd_refund_amount = #{jdRefundAmount,jdbcType=DECIMAL},
      jd_out_standing_amount = #{jdOutStandingAmount,jdbcType=DECIMAL},
      jd_order_state = #{jdOrderState,jdbcType=TINYINT},
      jd_order_state_name = #{jdOrderStateName,jdbcType=VARCHAR},
      were_accounted_state = #{wereAccountedState,jdbcType=TINYINT},
      were_accounted_state_name = #{wereAccountedStateName,jdbcType=VARCHAR},
      after_sale_state = #{afterSaleState,jdbcType=TINYINT},
      after_sale_state_name = #{afterSaleStateName,jdbcType=VARCHAR},
      order_sn = #{orderSn,jdbcType=VARCHAR},
      order_amount = #{orderAmount,jdbcType=DECIMAL},
      order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      refund_order_amount = #{refundOrderAmount,jdbcType=DECIMAL},
      refund_order_cost_amount = #{refundOrderCostAmount,jdbcType=DECIMAL},
      transport_amount = #{transportAmount,jdbcType=DECIMAL},
      transport_merchant_assume_amount = #{transportMerchantAssumeAmount,jdbcType=DECIMAL},
      goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      refund_goods_amount = #{refundGoodsAmount,jdbcType=DECIMAL},
      refund_goods_cost_amount = #{refundGoodsCostAmount,jdbcType=DECIMAL},
      order_state = #{orderState,jdbcType=TINYINT},
      complet_state = #{completState,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      process_result = #{processResult,jdbcType=TINYINT},
      compared_whole_amount = #{comparedWholeAmount,jdbcType=DECIMAL},
      compared_order_amount = #{comparedOrderAmount,jdbcType=DECIMAL},
      compared_refund_order_amount = #{comparedRefundOrderAmount,jdbcType=DECIMAL},
      compared_transport_amount = #{comparedTransportAmount,jdbcType=DECIMAL},
      define_error = #{defineError,jdbcType=TINYINT},
      order_accounting_state_supplier = #{orderAccountingStateSupplier,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_minus_1 = #{goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_2 = #{goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_1 = #{goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_4 = #{goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      order_goods_item_quantity = #{orderGoodsItemQuantity,jdbcType=INTEGER},
      process_report = #{processReport,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.jd.AccountingUnifiedSupplierOrderJdCheckUpReport">
    update accounting_unified_supplier_order_jd_check_up_report
    set batch_id = #{batchId,jdbcType=VARCHAR},
      accounting_unified_supplier_order_jd_id = #{accountingUnifiedSupplierOrderJdId,jdbcType=BIGINT},
      jd_accounting_order_sn = #{jdAccountingOrderSn,jdbcType=VARCHAR},
      jd_order_sn = #{jdOrderSn,jdbcType=VARCHAR},
      jd_original_order_sn = #{jdOriginalOrderSn,jdbcType=VARCHAR},
      jd_order_amount = #{jdOrderAmount,jdbcType=DECIMAL},
      whole_order_amount = #{wholeOrderAmount,jdbcType=DECIMAL},
      jd_repayment_amount = #{jdRepaymentAmount,jdbcType=DECIMAL},
      jd_refund_amount = #{jdRefundAmount,jdbcType=DECIMAL},
      jd_out_standing_amount = #{jdOutStandingAmount,jdbcType=DECIMAL},
      jd_order_state = #{jdOrderState,jdbcType=TINYINT},
      jd_order_state_name = #{jdOrderStateName,jdbcType=VARCHAR},
      were_accounted_state = #{wereAccountedState,jdbcType=TINYINT},
      were_accounted_state_name = #{wereAccountedStateName,jdbcType=VARCHAR},
      after_sale_state = #{afterSaleState,jdbcType=TINYINT},
      after_sale_state_name = #{afterSaleStateName,jdbcType=VARCHAR},
      order_sn = #{orderSn,jdbcType=VARCHAR},
      order_amount = #{orderAmount,jdbcType=DECIMAL},
      order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      refund_order_amount = #{refundOrderAmount,jdbcType=DECIMAL},
      refund_order_cost_amount = #{refundOrderCostAmount,jdbcType=DECIMAL},
      transport_amount = #{transportAmount,jdbcType=DECIMAL},
      transport_merchant_assume_amount = #{transportMerchantAssumeAmount,jdbcType=DECIMAL},
      goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      refund_goods_amount = #{refundGoodsAmount,jdbcType=DECIMAL},
      refund_goods_cost_amount = #{refundGoodsCostAmount,jdbcType=DECIMAL},
      order_state = #{orderState,jdbcType=TINYINT},
      complet_state = #{completState,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      process_result = #{processResult,jdbcType=TINYINT},
      compared_whole_amount = #{comparedWholeAmount,jdbcType=DECIMAL},
      compared_order_amount = #{comparedOrderAmount,jdbcType=DECIMAL},
      compared_refund_order_amount = #{comparedRefundOrderAmount,jdbcType=DECIMAL},
      compared_transport_amount = #{comparedTransportAmount,jdbcType=DECIMAL},
      define_error = #{defineError,jdbcType=TINYINT},
      order_accounting_state_supplier = #{orderAccountingStateSupplier,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_minus_1 = #{goodsAccountingStateSupplierEqMinus1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_2 = #{goodsAccountingStateSupplierEq2,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_1 = #{goodsAccountingStateSupplierEq1,jdbcType=INTEGER},
      goods_accounting_state_supplier_eq_4 = #{goodsAccountingStateSupplierEq4,jdbcType=INTEGER},
      order_goods_item_quantity = #{orderGoodsItemQuantity,jdbcType=INTEGER}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>