<?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="com.steerinfo.meterwork.meterworkbelttiminginfo.mapper.MeterWorkBeltTiminginfoMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkbelttiminginfo.model.MeterWorkBeltTiminginfo">
    <id column="TIMING_NO" jdbcType="VARCHAR" property="timingNo" />
    <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
    <result column="WEIGHT" jdbcType="DECIMAL" property="weight" />
    <result column="REALTIME_AMOUNT" jdbcType="DECIMAL" property="realtimeAmount" />
    <result column="BELT_SPEED" jdbcType="DECIMAL" property="beltSpeed" />
    <result column="DIFFERENCE" jdbcType="DECIMAL" property="difference" />
    <result column="PRODUCT_NAME" jdbcType="VARCHAR" property="productName" />
    <result column="PRODUCT_NO" jdbcType="VARCHAR" property="productNo" />
    <result column="METER_CLASS" jdbcType="VARCHAR" property="meterClass" />
    <result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="ACTUAL_NO" jdbcType="VARCHAR" property="actualNo" />
    <result column="GRADE_NO" jdbcType="VARCHAR" property="gradeNo" />
    <result column="GRADE_NAME" jdbcType="VARCHAR" property="gradeName" />
    <result column="STANDARD_NO" jdbcType="VARCHAR" property="standardNo" />
    <result column="STANDARD_NAME" jdbcType="VARCHAR" property="standardName" />
    <result column="PACKAGE_NO" jdbcType="VARCHAR" property="packageNo" />
    <result column="BLOCK_NUM" jdbcType="VARCHAR" property="blockNum" />
    <result column="PRODUCT_DATE" jdbcType="TIMESTAMP" property="productDate" />
    <result column="SEAL_NO" jdbcType="VARCHAR" property="sealNo" />
    <result column="BUCKET_NO" jdbcType="VARCHAR" property="bucketNo" />
    <result column="ACTUAL_WEIGHT" jdbcType="DECIMAL" property="actualWeight" />
    <result column="REFER_WEIGHT" jdbcType="DECIMAL" property="referWeight" />
    <result column="TARE_WEIGHT" jdbcType="DECIMAL" property="tareWeight" />
    <result column="GROSS_WEIGHT" jdbcType="DECIMAL" property="grossWeight" />
    <result column="COMBIN_PACKAGE_NO" jdbcType="VARCHAR" property="combinPackageNo" />
    <result column="WEIGHT_TYPE" jdbcType="VARCHAR" property="weightType" />
    <result column="CHECK_FLAG" jdbcType="VARCHAR" property="checkFlag" />
    <result column="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
    <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
    <result column="NET_WEIGHT" jdbcType="DECIMAL" property="netWeight" />
    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
    <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
    <result column="HEAT_NO_MES" jdbcType="VARCHAR" property="heatNoMes" />
    <result column="HEAT_NO_SEQ" jdbcType="VARCHAR" property="heatNoSeq" />
    <result column="THEORETICAL_WEIGHT" jdbcType="DECIMAL" property="theoreticalWeight" />
    <result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
    <result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
    <result column="CHECK_TIME" jdbcType="TIMESTAMP" property="checkTime" />
    <result column="WEIGHT_DIFF" jdbcType="DECIMAL" property="weightDiff" />
    <result column="SCALE_NAME" jdbcType="VARCHAR" property="scaleName" />
  </resultMap>
  <sql id="columns">
    TIMING_NO, PREDICTION_NO, WEIGHT, REALTIME_AMOUNT, BELT_SPEED, DIFFERENCE, PRODUCT_NAME, 
    PRODUCT_NO, METER_CLASS, METER_GROUP, VALUE_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, 
    CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
    DELETE_TIME, NOTICE_NO, BATCH_NO, MEMO, ACTUAL_NO, GRADE_NO, GRADE_NAME, STANDARD_NO, 
    STANDARD_NAME, PACKAGE_NO, BLOCK_NUM, PRODUCT_DATE, SEAL_NO, BUCKET_NO, ACTUAL_WEIGHT, 
    REFER_WEIGHT, TARE_WEIGHT, GROSS_WEIGHT, COMBIN_PACKAGE_NO, WEIGHT_TYPE, CHECK_FLAG, 
    BASE_SPOT_NO, BASE_SPOT_NAME, NET_WEIGHT, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
    SPEC_NO, SPEC_NAME, HEAT_NO, HEAT_NO_MES, HEAT_NO_SEQ, THEORETICAL_WEIGHT, CHECK_MAN_NO, 
    CHECK_MAN_NAME, CHECK_TIME, WEIGHT_DIFF, SCALE_NAME
  </sql>
  <sql id="columns_alias">
    t.TIMING_NO, t.PREDICTION_NO, t.WEIGHT, t.REALTIME_AMOUNT, t.BELT_SPEED, t.DIFFERENCE, 
    t.PRODUCT_NAME, t.PRODUCT_NO, t.METER_CLASS, t.METER_GROUP, t.VALUE_FLAG, t.CREATE_MAN_NO, 
    t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, 
    t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.NOTICE_NO, t.BATCH_NO, t.MEMO, 
    t.ACTUAL_NO, t.GRADE_NO, t.GRADE_NAME, t.STANDARD_NO, t.STANDARD_NAME, t.PACKAGE_NO, 
    t.BLOCK_NUM, t.PRODUCT_DATE, t.SEAL_NO, t.BUCKET_NO, t.ACTUAL_WEIGHT, t.REFER_WEIGHT, 
    t.TARE_WEIGHT, t.GROSS_WEIGHT, t.COMBIN_PACKAGE_NO, t.WEIGHT_TYPE, t.CHECK_FLAG, 
    t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.NET_WEIGHT, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, 
    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
    t.SPEC_NO, t.SPEC_NAME, t.HEAT_NO, t.HEAT_NO_MES, t.HEAT_NO_SEQ, t.THEORETICAL_WEIGHT, 
    t.CHECK_MAN_NO, t.CHECK_MAN_NAME, t.CHECK_TIME, t.WEIGHT_DIFF, t.SCALE_NAME
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_WORK_BELT_TIMINGINFO
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_WORK_BELT_TIMINGINFO t
  </sql>
  <sql id="where">
    <where> 
      <if test="timingNo != null and timingNo != ''">
        and TIMING_NO = #{timingNo}
      </if>
      <if test="predictionNo != null and predictionNo != ''">
        and PREDICTION_NO = #{predictionNo}
      </if>
      <if test="weight != null">
        and WEIGHT = #{weight}
      </if>
      <if test="realtimeAmount != null">
        and REALTIME_AMOUNT = #{realtimeAmount}
      </if>
      <if test="beltSpeed != null">
        and BELT_SPEED = #{beltSpeed}
      </if>
      <if test="difference != null">
        and DIFFERENCE = #{difference}
      </if>
      <if test="productName != null and productName != ''">
        and PRODUCT_NAME = #{productName}
      </if>
      <if test="productNo != null and productNo != ''">
        and PRODUCT_NO = #{productNo}
      </if>
      <if test="meterClass != null and meterClass != ''">
        and METER_CLASS = #{meterClass}
      </if>
      <if test="meterGroup != null and meterGroup != ''">
        and METER_GROUP = #{meterGroup}
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        and VALUE_FLAG = #{valueFlag}
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="deleteManNo != null and deleteManNo != ''">
        and DELETE_MAN_NO = #{deleteManNo}
      </if>
      <if test="deleteManName != null and deleteManName != ''">
        and DELETE_MAN_NAME = #{deleteManName}
      </if>
      <if test="deleteTime != null">
        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
      </if>
      <if test="noticeNo != null and noticeNo != ''">
        and NOTICE_NO = #{noticeNo}
      </if>
      <if test="batchNo != null and batchNo != ''">
        and BATCH_NO = #{batchNo}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO = #{memo}
      </if>
      <if test="actualNo != null and actualNo != ''">
        and ACTUAL_NO = #{actualNo}
      </if>
      <if test="gradeNo != null and gradeNo != ''">
        and GRADE_NO = #{gradeNo}
      </if>
      <if test="gradeName != null and gradeName != ''">
        and GRADE_NAME = #{gradeName}
      </if>
      <if test="standardNo != null and standardNo != ''">
        and STANDARD_NO = #{standardNo}
      </if>
      <if test="standardName != null and standardName != ''">
        and STANDARD_NAME = #{standardName}
      </if>
      <if test="packageNo != null and packageNo != ''">
        and PACKAGE_NO = #{packageNo}
      </if>
      <if test="blockNum != null and blockNum != ''">
        and BLOCK_NUM = #{blockNum}
      </if>
      <if test="productDate != null">
        and TO_CHAR(PRODUCT_DATE,'yyyy-MM-dd') = #{productDate}
      </if>
      <if test="sealNo != null and sealNo != ''">
        and SEAL_NO = #{sealNo}
      </if>
      <if test="bucketNo != null and bucketNo != ''">
        and BUCKET_NO = #{bucketNo}
      </if>
      <if test="actualWeight != null">
        and ACTUAL_WEIGHT = #{actualWeight}
      </if>
      <if test="referWeight != null">
        and REFER_WEIGHT = #{referWeight}
      </if>
      <if test="tareWeight != null">
        and TARE_WEIGHT = #{tareWeight}
      </if>
      <if test="grossWeight != null">
        and GROSS_WEIGHT = #{grossWeight}
      </if>
      <if test="combinPackageNo != null and combinPackageNo != ''">
        and COMBIN_PACKAGE_NO = #{combinPackageNo}
      </if>
      <if test="weightType != null and weightType != ''">
        and WEIGHT_TYPE = #{weightType}
      </if>
      <if test="checkFlag != null and checkFlag != ''">
        and CHECK_FLAG = #{checkFlag}
      </if>
      <if test="baseSpotNo != null and baseSpotNo != ''">
        and BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        and BASE_SPOT_NAME = #{baseSpotName}
      </if>
      <if test="netWeight != null">
        and NET_WEIGHT = #{netWeight}
      </if>
      <if test="customerSupplierNo != null and customerSupplierNo != ''">
        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
      </if>
      <if test="customerSupplierName != null and customerSupplierName != ''">
        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
      </if>
      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
      </if>
      <if test="forwardingUnitName != null and forwardingUnitName != ''">
        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
      </if>
      <if test="receivingUintNo != null and receivingUintNo != ''">
        and RECEIVING_UINT_NO = #{receivingUintNo}
      </if>
      <if test="receivingUintName != null and receivingUintName != ''">
        and RECEIVING_UINT_NAME = #{receivingUintName}
      </if>
      <if test="specNo != null and specNo != ''">
        and SPEC_NO = #{specNo}
      </if>
      <if test="specName != null and specName != ''">
        and SPEC_NAME = #{specName}
      </if>
      <if test="heatNo != null and heatNo != ''">
        and HEAT_NO = #{heatNo}
      </if>
      <if test="heatNoMes != null and heatNoMes != ''">
        and HEAT_NO_MES = #{heatNoMes}
      </if>
      <if test="heatNoSeq != null and heatNoSeq != ''">
        and HEAT_NO_SEQ = #{heatNoSeq}
      </if>
      <if test="theoreticalWeight != null">
        and THEORETICAL_WEIGHT = #{theoreticalWeight}
      </if>
      <if test="checkManNo != null and checkManNo != ''">
        and CHECK_MAN_NO = #{checkManNo}
      </if>
      <if test="checkManName != null and checkManName != ''">
        and CHECK_MAN_NAME = #{checkManName}
      </if>
      <if test="checkTime != null">
        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
      </if>
      <if test="weightDiff != null">
        and WEIGHT_DIFF = #{weightDiff}
      </if>
      <if test="scaleName != null and scaleName != ''">
        and SCALE_NAME = #{scaleName}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="timingNo != null and timingNo != ''">
        and TIMING_NO LIKE '%${timingNo}%'
      </if>
      <if test="predictionNo != null and predictionNo != ''">
        and PREDICTION_NO LIKE '%${predictionNo}%'
      </if>
      <if test="weight != null">
        and WEIGHT = #{weight}
      </if>
      <if test="realtimeAmount != null">
        and REALTIME_AMOUNT = #{realtimeAmount}
      </if>
      <if test="beltSpeed != null">
        and BELT_SPEED = #{beltSpeed}
      </if>
      <if test="difference != null">
        and DIFFERENCE = #{difference}
      </if>
      <if test="productName != null and productName != ''">
        and PRODUCT_NAME LIKE '%${productName}%'
      </if>
      <if test="productNo != null and productNo != ''">
        and PRODUCT_NO LIKE '%${productNo}%'
      </if>
      <if test="meterClass != null and meterClass != ''">
        and METER_CLASS LIKE '%${meterClass}%'
      </if>
      <if test="meterGroup != null and meterGroup != ''">
        and METER_GROUP LIKE '%${meterGroup}%'
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        and VALUE_FLAG LIKE '%${valueFlag}%'
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO LIKE '%${createManNo}%'
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME LIKE '%${createManName}%'
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="deleteManNo != null and deleteManNo != ''">
        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
      </if>
      <if test="deleteManName != null and deleteManName != ''">
        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
      </if>
      <if test="deleteTime != null">
        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
      </if>
      <if test="noticeNo != null and noticeNo != ''">
        and NOTICE_NO LIKE '%${noticeNo}%'
      </if>
      <if test="batchNo != null and batchNo != ''">
        and BATCH_NO LIKE '%${batchNo}%'
      </if>
      <if test="memo != null and memo != ''">
        and MEMO LIKE '%${memo}%'
      </if>
      <if test="actualNo != null and actualNo != ''">
        and ACTUAL_NO LIKE '%${actualNo}%'
      </if>
      <if test="gradeNo != null and gradeNo != ''">
        and GRADE_NO LIKE '%${gradeNo}%'
      </if>
      <if test="gradeName != null and gradeName != ''">
        and GRADE_NAME LIKE '%${gradeName}%'
      </if>
      <if test="standardNo != null and standardNo != ''">
        and STANDARD_NO LIKE '%${standardNo}%'
      </if>
      <if test="standardName != null and standardName != ''">
        and STANDARD_NAME LIKE '%${standardName}%'
      </if>
      <if test="packageNo != null and packageNo != ''">
        and PACKAGE_NO LIKE '%${packageNo}%'
      </if>
      <if test="blockNum != null and blockNum != ''">
        and BLOCK_NUM LIKE '%${blockNum}%'
      </if>
      <if test="productDate != null">
        and TO_CHAR(PRODUCT_DATE,'yyyy-MM-dd') = #{productDate}
      </if>
      <if test="sealNo != null and sealNo != ''">
        and SEAL_NO LIKE '%${sealNo}%'
      </if>
      <if test="bucketNo != null and bucketNo != ''">
        and BUCKET_NO LIKE '%${bucketNo}%'
      </if>
      <if test="actualWeight != null">
        and ACTUAL_WEIGHT = #{actualWeight}
      </if>
      <if test="referWeight != null">
        and REFER_WEIGHT = #{referWeight}
      </if>
      <if test="tareWeight != null">
        and TARE_WEIGHT = #{tareWeight}
      </if>
      <if test="grossWeight != null">
        and GROSS_WEIGHT = #{grossWeight}
      </if>
      <if test="combinPackageNo != null and combinPackageNo != ''">
        and COMBIN_PACKAGE_NO LIKE '%${combinPackageNo}%'
      </if>
      <if test="weightType != null and weightType != ''">
        and WEIGHT_TYPE LIKE '%${weightType}%'
      </if>
      <if test="checkFlag != null and checkFlag != ''">
        and CHECK_FLAG LIKE '%${checkFlag}%'
      </if>
      <if test="baseSpotNo != null and baseSpotNo != ''">
        and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
      </if>
      <if test="netWeight != null">
        and NET_WEIGHT = #{netWeight}
      </if>
      <if test="customerSupplierNo != null and customerSupplierNo != ''">
        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
      </if>
      <if test="customerSupplierName != null and customerSupplierName != ''">
        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
      </if>
      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
      </if>
      <if test="forwardingUnitName != null and forwardingUnitName != ''">
        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
      </if>
      <if test="receivingUintNo != null and receivingUintNo != ''">
        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
      </if>
      <if test="receivingUintName != null and receivingUintName != ''">
        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
      </if>
      <if test="specNo != null and specNo != ''">
        and SPEC_NO LIKE '%${specNo}%'
      </if>
      <if test="specName != null and specName != ''">
        and SPEC_NAME LIKE '%${specName}%'
      </if>
      <if test="heatNo != null and heatNo != ''">
        and HEAT_NO LIKE '%${heatNo}%'
      </if>
      <if test="heatNoMes != null and heatNoMes != ''">
        and HEAT_NO_MES LIKE '%${heatNoMes}%'
      </if>
      <if test="heatNoSeq != null and heatNoSeq != ''">
        and HEAT_NO_SEQ LIKE '%${heatNoSeq}%'
      </if>
      <if test="theoreticalWeight != null">
        and THEORETICAL_WEIGHT = #{theoreticalWeight}
      </if>
      <if test="checkManNo != null and checkManNo != ''">
        and CHECK_MAN_NO LIKE '%${checkManNo}%'
      </if>
      <if test="checkManName != null and checkManName != ''">
        and CHECK_MAN_NAME LIKE '%${checkManName}%'
      </if>
      <if test="checkTime != null">
        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
      </if>
      <if test="weightDiff != null">
        and WEIGHT_DIFF = #{weightDiff}
      </if>
      <if test="scaleName != null and scaleName != ''">
        and SCALE_NAME LIKE '%${scaleName}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_WORK_BELT_TIMINGINFO
    where TIMING_NO = #{timingNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_WORK_BELT_TIMINGINFO
    where 1!=1 
      <if test="predictionNo != null and predictionNo != ''">
        or PREDICTION_NO = #{predictionNo}
      </if>
      <if test="weight != null">
        or WEIGHT = #{weight}
      </if>
      <if test="realtimeAmount != null">
        or REALTIME_AMOUNT = #{realtimeAmount}
      </if>
      <if test="beltSpeed != null">
        or BELT_SPEED = #{beltSpeed}
      </if>
      <if test="difference != null">
        or DIFFERENCE = #{difference}
      </if>
      <if test="productName != null and productName != ''">
        or PRODUCT_NAME = #{productName}
      </if>
      <if test="productNo != null and productNo != ''">
        or PRODUCT_NO = #{productNo}
      </if>
      <if test="meterClass != null and meterClass != ''">
        or METER_CLASS = #{meterClass}
      </if>
      <if test="meterGroup != null and meterGroup != ''">
        or METER_GROUP = #{meterGroup}
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        or VALUE_FLAG = #{valueFlag}
      </if>
      <if test="createManNo != null and createManNo != ''">
        or CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        or CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        or UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        or UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
      </if>
      <if test="deleteManNo != null and deleteManNo != ''">
        or DELETE_MAN_NO = #{deleteManNo}
      </if>
      <if test="deleteManName != null and deleteManName != ''">
        or DELETE_MAN_NAME = #{deleteManName}
      </if>
      <if test="deleteTime != null">
        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
      </if>
      <if test="noticeNo != null and noticeNo != ''">
        or NOTICE_NO = #{noticeNo}
      </if>
      <if test="batchNo != null and batchNo != ''">
        or BATCH_NO = #{batchNo}
      </if>
      <if test="memo != null and memo != ''">
        or MEMO = #{memo}
      </if>
      <if test="actualNo != null and actualNo != ''">
        or ACTUAL_NO = #{actualNo}
      </if>
      <if test="gradeNo != null and gradeNo != ''">
        or GRADE_NO = #{gradeNo}
      </if>
      <if test="gradeName != null and gradeName != ''">
        or GRADE_NAME = #{gradeName}
      </if>
      <if test="standardNo != null and standardNo != ''">
        or STANDARD_NO = #{standardNo}
      </if>
      <if test="standardName != null and standardName != ''">
        or STANDARD_NAME = #{standardName}
      </if>
      <if test="packageNo != null and packageNo != ''">
        or PACKAGE_NO = #{packageNo}
      </if>
      <if test="blockNum != null and blockNum != ''">
        or BLOCK_NUM = #{blockNum}
      </if>
      <if test="productDate != null">
        or TO_CHAR(PRODUCT_DATE,'yyyy-MM-dd') = '#{productDate}'
      </if>
      <if test="sealNo != null and sealNo != ''">
        or SEAL_NO = #{sealNo}
      </if>
      <if test="bucketNo != null and bucketNo != ''">
        or BUCKET_NO = #{bucketNo}
      </if>
      <if test="actualWeight != null">
        or ACTUAL_WEIGHT = #{actualWeight}
      </if>
      <if test="referWeight != null">
        or REFER_WEIGHT = #{referWeight}
      </if>
      <if test="tareWeight != null">
        or TARE_WEIGHT = #{tareWeight}
      </if>
      <if test="grossWeight != null">
        or GROSS_WEIGHT = #{grossWeight}
      </if>
      <if test="combinPackageNo != null and combinPackageNo != ''">
        or COMBIN_PACKAGE_NO = #{combinPackageNo}
      </if>
      <if test="weightType != null and weightType != ''">
        or WEIGHT_TYPE = #{weightType}
      </if>
      <if test="checkFlag != null and checkFlag != ''">
        or CHECK_FLAG = #{checkFlag}
      </if>
      <if test="baseSpotNo != null and baseSpotNo != ''">
        or BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        or BASE_SPOT_NAME = #{baseSpotName}
      </if>
      <if test="netWeight != null">
        or NET_WEIGHT = #{netWeight}
      </if>
      <if test="customerSupplierNo != null and customerSupplierNo != ''">
        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
      </if>
      <if test="customerSupplierName != null and customerSupplierName != ''">
        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
      </if>
      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
      </if>
      <if test="forwardingUnitName != null and forwardingUnitName != ''">
        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
      </if>
      <if test="receivingUintNo != null and receivingUintNo != ''">
        or RECEIVING_UINT_NO = #{receivingUintNo}
      </if>
      <if test="receivingUintName != null and receivingUintName != ''">
        or RECEIVING_UINT_NAME = #{receivingUintName}
      </if>
      <if test="specNo != null and specNo != ''">
        or SPEC_NO = #{specNo}
      </if>
      <if test="specName != null and specName != ''">
        or SPEC_NAME = #{specName}
      </if>
      <if test="heatNo != null and heatNo != ''">
        or HEAT_NO = #{heatNo}
      </if>
      <if test="heatNoMes != null and heatNoMes != ''">
        or HEAT_NO_MES = #{heatNoMes}
      </if>
      <if test="heatNoSeq != null and heatNoSeq != ''">
        or HEAT_NO_SEQ = #{heatNoSeq}
      </if>
      <if test="theoreticalWeight != null">
        or THEORETICAL_WEIGHT = #{theoreticalWeight}
      </if>
      <if test="checkManNo != null and checkManNo != ''">
        or CHECK_MAN_NO = #{checkManNo}
      </if>
      <if test="checkManName != null and checkManName != ''">
        or CHECK_MAN_NAME = #{checkManName}
      </if>
      <if test="checkTime != null">
        or TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = '#{checkTime}'
      </if>
      <if test="weightDiff != null">
        or WEIGHT_DIFF = #{weightDiff}
      </if>
      <if test="scaleName != null and scaleName != ''">
        or SCALE_NAME = #{scaleName}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkbelttiminginfo.model.MeterWorkBeltTiminginfo">
    insert into METER_WORK_BELT_TIMINGINFO (TIMING_NO, PREDICTION_NO, WEIGHT, 
      REALTIME_AMOUNT, BELT_SPEED, DIFFERENCE, 
      PRODUCT_NAME, PRODUCT_NO, METER_CLASS, 
      METER_GROUP, VALUE_FLAG, CREATE_MAN_NO, 
      CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
      UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, 
      DELETE_MAN_NAME, DELETE_TIME, NOTICE_NO, 
      BATCH_NO, MEMO, ACTUAL_NO, 
      GRADE_NO, GRADE_NAME, STANDARD_NO, 
      STANDARD_NAME, PACKAGE_NO, BLOCK_NUM, 
      PRODUCT_DATE, SEAL_NO, BUCKET_NO, 
      ACTUAL_WEIGHT, REFER_WEIGHT, TARE_WEIGHT, 
      GROSS_WEIGHT, COMBIN_PACKAGE_NO, WEIGHT_TYPE, 
      CHECK_FLAG, BASE_SPOT_NO, BASE_SPOT_NAME, 
      NET_WEIGHT, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, 
      RECEIVING_UINT_NAME, SPEC_NO, SPEC_NAME, 
      HEAT_NO, HEAT_NO_MES, HEAT_NO_SEQ, 
      THEORETICAL_WEIGHT, CHECK_MAN_NO, CHECK_MAN_NAME, 
      CHECK_TIME, WEIGHT_DIFF, SCALE_NAME
      )
    values (#{timingNo,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, 
      #{realtimeAmount,jdbcType=DECIMAL}, #{beltSpeed,jdbcType=DECIMAL}, #{difference,jdbcType=DECIMAL}, 
      #{productName,jdbcType=VARCHAR}, #{productNo,jdbcType=VARCHAR}, #{meterClass,jdbcType=VARCHAR}, 
      #{meterGroup,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, 
      #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, 
      #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, 
      #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{noticeNo,jdbcType=VARCHAR}, 
      #{batchNo,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{actualNo,jdbcType=VARCHAR}, 
      #{gradeNo,jdbcType=VARCHAR}, #{gradeName,jdbcType=VARCHAR}, #{standardNo,jdbcType=VARCHAR}, 
      #{standardName,jdbcType=VARCHAR}, #{packageNo,jdbcType=VARCHAR}, #{blockNum,jdbcType=VARCHAR}, 
      #{productDate,jdbcType=TIMESTAMP}, #{sealNo,jdbcType=VARCHAR}, #{bucketNo,jdbcType=VARCHAR}, 
      #{actualWeight,jdbcType=DECIMAL}, #{referWeight,jdbcType=DECIMAL}, #{tareWeight,jdbcType=DECIMAL}, 
      #{grossWeight,jdbcType=DECIMAL}, #{combinPackageNo,jdbcType=VARCHAR}, #{weightType,jdbcType=VARCHAR}, 
      #{checkFlag,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR}, 
      #{netWeight,jdbcType=DECIMAL}, #{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR}, 
      #{forwardingUnitNo,jdbcType=VARCHAR}, #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, 
      #{receivingUintName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR}, #{specName,jdbcType=VARCHAR}, 
      #{heatNo,jdbcType=VARCHAR}, #{heatNoMes,jdbcType=VARCHAR}, #{heatNoSeq,jdbcType=VARCHAR}, 
      #{theoreticalWeight,jdbcType=DECIMAL}, #{checkManNo,jdbcType=VARCHAR}, #{checkManName,jdbcType=VARCHAR}, 
      #{checkTime,jdbcType=TIMESTAMP}, #{weightDiff,jdbcType=DECIMAL}, #{scaleName,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkbelttiminginfo.model.MeterWorkBeltTiminginfo">
    insert into METER_WORK_BELT_TIMINGINFO
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="timingNo != null">
        TIMING_NO,
      </if>
      <if test="predictionNo != null">
        PREDICTION_NO,
      </if>
      <if test="weight != null">
        WEIGHT,
      </if>
      <if test="realtimeAmount != null">
        REALTIME_AMOUNT,
      </if>
      <if test="beltSpeed != null">
        BELT_SPEED,
      </if>
      <if test="difference != null">
        DIFFERENCE,
      </if>
      <if test="productName != null">
        PRODUCT_NAME,
      </if>
      <if test="productNo != null">
        PRODUCT_NO,
      </if>
      <if test="meterClass != null">
        METER_CLASS,
      </if>
      <if test="meterGroup != null">
        METER_GROUP,
      </if>
      <if test="valueFlag != null">
        VALUE_FLAG,
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO,
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME,
      </if>
      <if test="createTime != null">
        CREATE_TIME,
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO,
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME,
      </if>
      <if test="updateTime != null">
        UPDATE_TIME,
      </if>
      <if test="deleteManNo != null">
        DELETE_MAN_NO,
      </if>
      <if test="deleteManName != null">
        DELETE_MAN_NAME,
      </if>
      <if test="deleteTime != null">
        DELETE_TIME,
      </if>
      <if test="noticeNo != null">
        NOTICE_NO,
      </if>
      <if test="batchNo != null">
        BATCH_NO,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="actualNo != null">
        ACTUAL_NO,
      </if>
      <if test="gradeNo != null">
        GRADE_NO,
      </if>
      <if test="gradeName != null">
        GRADE_NAME,
      </if>
      <if test="standardNo != null">
        STANDARD_NO,
      </if>
      <if test="standardName != null">
        STANDARD_NAME,
      </if>
      <if test="packageNo != null">
        PACKAGE_NO,
      </if>
      <if test="blockNum != null">
        BLOCK_NUM,
      </if>
      <if test="productDate != null">
        PRODUCT_DATE,
      </if>
      <if test="sealNo != null">
        SEAL_NO,
      </if>
      <if test="bucketNo != null">
        BUCKET_NO,
      </if>
      <if test="actualWeight != null">
        ACTUAL_WEIGHT,
      </if>
      <if test="referWeight != null">
        REFER_WEIGHT,
      </if>
      <if test="tareWeight != null">
        TARE_WEIGHT,
      </if>
      <if test="grossWeight != null">
        GROSS_WEIGHT,
      </if>
      <if test="combinPackageNo != null">
        COMBIN_PACKAGE_NO,
      </if>
      <if test="weightType != null">
        WEIGHT_TYPE,
      </if>
      <if test="checkFlag != null">
        CHECK_FLAG,
      </if>
      <if test="baseSpotNo != null">
        BASE_SPOT_NO,
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME,
      </if>
      <if test="netWeight != null">
        NET_WEIGHT,
      </if>
      <if test="customerSupplierNo != null">
        CUSTOMER_SUPPLIER_NO,
      </if>
      <if test="customerSupplierName != null">
        CUSTOMER_SUPPLIER_NAME,
      </if>
      <if test="forwardingUnitNo != null">
        FORWARDING_UNIT_NO,
      </if>
      <if test="forwardingUnitName != null">
        FORWARDING_UNIT_NAME,
      </if>
      <if test="receivingUintNo != null">
        RECEIVING_UINT_NO,
      </if>
      <if test="receivingUintName != null">
        RECEIVING_UINT_NAME,
      </if>
      <if test="specNo != null">
        SPEC_NO,
      </if>
      <if test="specName != null">
        SPEC_NAME,
      </if>
      <if test="heatNo != null">
        HEAT_NO,
      </if>
      <if test="heatNoMes != null">
        HEAT_NO_MES,
      </if>
      <if test="heatNoSeq != null">
        HEAT_NO_SEQ,
      </if>
      <if test="theoreticalWeight != null">
        THEORETICAL_WEIGHT,
      </if>
      <if test="checkManNo != null">
        CHECK_MAN_NO,
      </if>
      <if test="checkManName != null">
        CHECK_MAN_NAME,
      </if>
      <if test="checkTime != null">
        CHECK_TIME,
      </if>
      <if test="weightDiff != null">
        WEIGHT_DIFF,
      </if>
      <if test="scaleName != null">
        SCALE_NAME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="timingNo != null">
        #{timingNo,jdbcType=VARCHAR},
      </if>
      <if test="predictionNo != null">
        #{predictionNo,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        #{weight,jdbcType=DECIMAL},
      </if>
      <if test="realtimeAmount != null">
        #{realtimeAmount,jdbcType=DECIMAL},
      </if>
      <if test="beltSpeed != null">
        #{beltSpeed,jdbcType=DECIMAL},
      </if>
      <if test="difference != null">
        #{difference,jdbcType=DECIMAL},
      </if>
      <if test="productName != null">
        #{productName,jdbcType=VARCHAR},
      </if>
      <if test="productNo != null">
        #{productNo,jdbcType=VARCHAR},
      </if>
      <if test="meterClass != null">
        #{meterClass,jdbcType=VARCHAR},
      </if>
      <if test="meterGroup != null">
        #{meterGroup,jdbcType=VARCHAR},
      </if>
      <if test="valueFlag != null">
        #{valueFlag,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteManNo != null">
        #{deleteManNo,jdbcType=VARCHAR},
      </if>
      <if test="deleteManName != null">
        #{deleteManName,jdbcType=VARCHAR},
      </if>
      <if test="deleteTime != null">
        #{deleteTime,jdbcType=TIMESTAMP},
      </if>
      <if test="noticeNo != null">
        #{noticeNo,jdbcType=VARCHAR},
      </if>
      <if test="batchNo != null">
        #{batchNo,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="actualNo != null">
        #{actualNo,jdbcType=VARCHAR},
      </if>
      <if test="gradeNo != null">
        #{gradeNo,jdbcType=VARCHAR},
      </if>
      <if test="gradeName != null">
        #{gradeName,jdbcType=VARCHAR},
      </if>
      <if test="standardNo != null">
        #{standardNo,jdbcType=VARCHAR},
      </if>
      <if test="standardName != null">
        #{standardName,jdbcType=VARCHAR},
      </if>
      <if test="packageNo != null">
        #{packageNo,jdbcType=VARCHAR},
      </if>
      <if test="blockNum != null">
        #{blockNum,jdbcType=VARCHAR},
      </if>
      <if test="productDate != null">
        #{productDate,jdbcType=TIMESTAMP},
      </if>
      <if test="sealNo != null">
        #{sealNo,jdbcType=VARCHAR},
      </if>
      <if test="bucketNo != null">
        #{bucketNo,jdbcType=VARCHAR},
      </if>
      <if test="actualWeight != null">
        #{actualWeight,jdbcType=DECIMAL},
      </if>
      <if test="referWeight != null">
        #{referWeight,jdbcType=DECIMAL},
      </if>
      <if test="tareWeight != null">
        #{tareWeight,jdbcType=DECIMAL},
      </if>
      <if test="grossWeight != null">
        #{grossWeight,jdbcType=DECIMAL},
      </if>
      <if test="combinPackageNo != null">
        #{combinPackageNo,jdbcType=VARCHAR},
      </if>
      <if test="weightType != null">
        #{weightType,jdbcType=VARCHAR},
      </if>
      <if test="checkFlag != null">
        #{checkFlag,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotNo != null">
        #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        #{baseSpotName,jdbcType=VARCHAR},
      </if>
      <if test="netWeight != null">
        #{netWeight,jdbcType=DECIMAL},
      </if>
      <if test="customerSupplierNo != null">
        #{customerSupplierNo,jdbcType=VARCHAR},
      </if>
      <if test="customerSupplierName != null">
        #{customerSupplierName,jdbcType=VARCHAR},
      </if>
      <if test="forwardingUnitNo != null">
        #{forwardingUnitNo,jdbcType=VARCHAR},
      </if>
      <if test="forwardingUnitName != null">
        #{forwardingUnitName,jdbcType=VARCHAR},
      </if>
      <if test="receivingUintNo != null">
        #{receivingUintNo,jdbcType=VARCHAR},
      </if>
      <if test="receivingUintName != null">
        #{receivingUintName,jdbcType=VARCHAR},
      </if>
      <if test="specNo != null">
        #{specNo,jdbcType=VARCHAR},
      </if>
      <if test="specName != null">
        #{specName,jdbcType=VARCHAR},
      </if>
      <if test="heatNo != null">
        #{heatNo,jdbcType=VARCHAR},
      </if>
      <if test="heatNoMes != null">
        #{heatNoMes,jdbcType=VARCHAR},
      </if>
      <if test="heatNoSeq != null">
        #{heatNoSeq,jdbcType=VARCHAR},
      </if>
      <if test="theoreticalWeight != null">
        #{theoreticalWeight,jdbcType=DECIMAL},
      </if>
      <if test="checkManNo != null">
        #{checkManNo,jdbcType=VARCHAR},
      </if>
      <if test="checkManName != null">
        #{checkManName,jdbcType=VARCHAR},
      </if>
      <if test="checkTime != null">
        #{checkTime,jdbcType=TIMESTAMP},
      </if>
      <if test="weightDiff != null">
        #{weightDiff,jdbcType=DECIMAL},
      </if>
      <if test="scaleName != null">
        #{scaleName,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkbelttiminginfo.model.MeterWorkBeltTiminginfo">
    update METER_WORK_BELT_TIMINGINFO
    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
      WEIGHT = #{weight,jdbcType=DECIMAL},
      REALTIME_AMOUNT = #{realtimeAmount,jdbcType=DECIMAL},
      BELT_SPEED = #{beltSpeed,jdbcType=DECIMAL},
      DIFFERENCE = #{difference,jdbcType=DECIMAL},
      PRODUCT_NAME = #{productName,jdbcType=VARCHAR},
      PRODUCT_NO = #{productNo,jdbcType=VARCHAR},
      METER_CLASS = #{meterClass,jdbcType=VARCHAR},
      METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
      NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
      MEMO = #{memo,jdbcType=VARCHAR},
      ACTUAL_NO = #{actualNo,jdbcType=VARCHAR},
      GRADE_NO = #{gradeNo,jdbcType=VARCHAR},
      GRADE_NAME = #{gradeName,jdbcType=VARCHAR},
      STANDARD_NO = #{standardNo,jdbcType=VARCHAR},
      STANDARD_NAME = #{standardName,jdbcType=VARCHAR},
      PACKAGE_NO = #{packageNo,jdbcType=VARCHAR},
      BLOCK_NUM = #{blockNum,jdbcType=VARCHAR},
      PRODUCT_DATE = #{productDate,jdbcType=TIMESTAMP},
      SEAL_NO = #{sealNo,jdbcType=VARCHAR},
      BUCKET_NO = #{bucketNo,jdbcType=VARCHAR},
      ACTUAL_WEIGHT = #{actualWeight,jdbcType=DECIMAL},
      REFER_WEIGHT = #{referWeight,jdbcType=DECIMAL},
      TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
      GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
      COMBIN_PACKAGE_NO = #{combinPackageNo,jdbcType=VARCHAR},
      WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
      CHECK_FLAG = #{checkFlag,jdbcType=VARCHAR},
      BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
      SPEC_NO = #{specNo,jdbcType=VARCHAR},
      SPEC_NAME = #{specName,jdbcType=VARCHAR},
      HEAT_NO = #{heatNo,jdbcType=VARCHAR},
      HEAT_NO_MES = #{heatNoMes,jdbcType=VARCHAR},
      HEAT_NO_SEQ = #{heatNoSeq,jdbcType=VARCHAR},
      THEORETICAL_WEIGHT = #{theoreticalWeight,jdbcType=DECIMAL},
      CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
      CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
      CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
      WEIGHT_DIFF = #{weightDiff,jdbcType=DECIMAL},
      SCALE_NAME = #{scaleName,jdbcType=VARCHAR}
    where TIMING_NO = #{timingNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkbelttiminginfo.model.MeterWorkBeltTiminginfo">
    update METER_WORK_BELT_TIMINGINFO
    <set>
      <if test="predictionNo != null">
        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        WEIGHT = #{weight,jdbcType=DECIMAL},
      </if>
      <if test="realtimeAmount != null">
        REALTIME_AMOUNT = #{realtimeAmount,jdbcType=DECIMAL},
      </if>
      <if test="beltSpeed != null">
        BELT_SPEED = #{beltSpeed,jdbcType=DECIMAL},
      </if>
      <if test="difference != null">
        DIFFERENCE = #{difference,jdbcType=DECIMAL},
      </if>
      <if test="productName != null">
        PRODUCT_NAME = #{productName,jdbcType=VARCHAR},
      </if>
      <if test="productNo != null">
        PRODUCT_NO = #{productNo,jdbcType=VARCHAR},
      </if>
      <if test="meterClass != null">
        METER_CLASS = #{meterClass,jdbcType=VARCHAR},
      </if>
      <if test="meterGroup != null">
        METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
      </if>
      <if test="valueFlag != null">
        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteManNo != null">
        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
      </if>
      <if test="deleteManName != null">
        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
      </if>
      <if test="deleteTime != null">
        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
      </if>
      <if test="noticeNo != null">
        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
      </if>
      <if test="batchNo != null">
        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="actualNo != null">
        ACTUAL_NO = #{actualNo,jdbcType=VARCHAR},
      </if>
      <if test="gradeNo != null">
        GRADE_NO = #{gradeNo,jdbcType=VARCHAR},
      </if>
      <if test="gradeName != null">
        GRADE_NAME = #{gradeName,jdbcType=VARCHAR},
      </if>
      <if test="standardNo != null">
        STANDARD_NO = #{standardNo,jdbcType=VARCHAR},
      </if>
      <if test="standardName != null">
        STANDARD_NAME = #{standardName,jdbcType=VARCHAR},
      </if>
      <if test="packageNo != null">
        PACKAGE_NO = #{packageNo,jdbcType=VARCHAR},
      </if>
      <if test="blockNum != null">
        BLOCK_NUM = #{blockNum,jdbcType=VARCHAR},
      </if>
      <if test="productDate != null">
        PRODUCT_DATE = #{productDate,jdbcType=TIMESTAMP},
      </if>
      <if test="sealNo != null">
        SEAL_NO = #{sealNo,jdbcType=VARCHAR},
      </if>
      <if test="bucketNo != null">
        BUCKET_NO = #{bucketNo,jdbcType=VARCHAR},
      </if>
      <if test="actualWeight != null">
        ACTUAL_WEIGHT = #{actualWeight,jdbcType=DECIMAL},
      </if>
      <if test="referWeight != null">
        REFER_WEIGHT = #{referWeight,jdbcType=DECIMAL},
      </if>
      <if test="tareWeight != null">
        TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
      </if>
      <if test="grossWeight != null">
        GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
      </if>
      <if test="combinPackageNo != null">
        COMBIN_PACKAGE_NO = #{combinPackageNo,jdbcType=VARCHAR},
      </if>
      <if test="weightType != null">
        WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
      </if>
      <if test="checkFlag != null">
        CHECK_FLAG = #{checkFlag,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotNo != null">
        BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      </if>
      <if test="netWeight != null">
        NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
      </if>
      <if test="customerSupplierNo != null">
        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
      </if>
      <if test="customerSupplierName != null">
        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
      </if>
      <if test="forwardingUnitNo != null">
        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
      </if>
      <if test="forwardingUnitName != null">
        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
      </if>
      <if test="receivingUintNo != null">
        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
      </if>
      <if test="receivingUintName != null">
        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
      </if>
      <if test="specNo != null">
        SPEC_NO = #{specNo,jdbcType=VARCHAR},
      </if>
      <if test="specName != null">
        SPEC_NAME = #{specName,jdbcType=VARCHAR},
      </if>
      <if test="heatNo != null">
        HEAT_NO = #{heatNo,jdbcType=VARCHAR},
      </if>
      <if test="heatNoMes != null">
        HEAT_NO_MES = #{heatNoMes,jdbcType=VARCHAR},
      </if>
      <if test="heatNoSeq != null">
        HEAT_NO_SEQ = #{heatNoSeq,jdbcType=VARCHAR},
      </if>
      <if test="theoreticalWeight != null">
        THEORETICAL_WEIGHT = #{theoreticalWeight,jdbcType=DECIMAL},
      </if>
      <if test="checkManNo != null">
        CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
      </if>
      <if test="checkManName != null">
        CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
      </if>
      <if test="checkTime != null">
        CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
      </if>
      <if test="weightDiff != null">
        WEIGHT_DIFF = #{weightDiff,jdbcType=DECIMAL},
      </if>
      <if test="scaleName != null">
        SCALE_NAME = #{scaleName,jdbcType=VARCHAR},
      </if>
    </set>
    where TIMING_NO = #{timingNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where TIMING_NO = #{timingNo,jdbcType=VARCHAR}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="where"/>
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="whereLike"/>
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into METER_WORK_BELT_TIMINGINFO 
      (TIMING_NO, 
      PREDICTION_NO, WEIGHT, REALTIME_AMOUNT, 
      BELT_SPEED, DIFFERENCE, PRODUCT_NAME, 
      PRODUCT_NO, METER_CLASS, METER_GROUP, 
      VALUE_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, 
      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
      UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
      DELETE_TIME, NOTICE_NO, BATCH_NO, 
      MEMO, ACTUAL_NO, GRADE_NO, 
      GRADE_NAME, STANDARD_NO, STANDARD_NAME, 
      PACKAGE_NO, BLOCK_NUM, PRODUCT_DATE, 
      SEAL_NO, BUCKET_NO, ACTUAL_WEIGHT, 
      REFER_WEIGHT, TARE_WEIGHT, GROSS_WEIGHT, 
      COMBIN_PACKAGE_NO, WEIGHT_TYPE, 
      CHECK_FLAG, BASE_SPOT_NO, BASE_SPOT_NAME, 
      NET_WEIGHT, CUSTOMER_SUPPLIER_NO, 
      CUSTOMER_SUPPLIER_NAME, FORWARDING_UNIT_NO, 
      FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, 
      RECEIVING_UINT_NAME, SPEC_NO, SPEC_NAME, 
      HEAT_NO, HEAT_NO_MES, HEAT_NO_SEQ, 
      THEORETICAL_WEIGHT, CHECK_MAN_NO, 
      CHECK_MAN_NAME, CHECK_TIME, WEIGHT_DIFF, 
      SCALE_NAME)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.timingNo,jdbcType=VARCHAR}, 
      #{item.predictionNo,jdbcType=VARCHAR}, #{item.weight,jdbcType=DECIMAL}, #{item.realtimeAmount,jdbcType=DECIMAL}, 
      #{item.beltSpeed,jdbcType=DECIMAL}, #{item.difference,jdbcType=DECIMAL}, #{item.productName,jdbcType=VARCHAR}, 
      #{item.productNo,jdbcType=VARCHAR}, #{item.meterClass,jdbcType=VARCHAR}, #{item.meterGroup,jdbcType=VARCHAR}, 
      #{item.valueFlag,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, 
      #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, 
      #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.noticeNo,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR}, 
      #{item.memo,jdbcType=VARCHAR}, #{item.actualNo,jdbcType=VARCHAR}, #{item.gradeNo,jdbcType=VARCHAR}, 
      #{item.gradeName,jdbcType=VARCHAR}, #{item.standardNo,jdbcType=VARCHAR}, #{item.standardName,jdbcType=VARCHAR}, 
      #{item.packageNo,jdbcType=VARCHAR}, #{item.blockNum,jdbcType=VARCHAR}, #{item.productDate,jdbcType=TIMESTAMP}, 
      #{item.sealNo,jdbcType=VARCHAR}, #{item.bucketNo,jdbcType=VARCHAR}, #{item.actualWeight,jdbcType=DECIMAL}, 
      #{item.referWeight,jdbcType=DECIMAL}, #{item.tareWeight,jdbcType=DECIMAL}, #{item.grossWeight,jdbcType=DECIMAL}, 
      #{item.combinPackageNo,jdbcType=VARCHAR}, #{item.weightType,jdbcType=VARCHAR}, 
      #{item.checkFlag,jdbcType=VARCHAR}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, 
      #{item.netWeight,jdbcType=DECIMAL}, #{item.customerSupplierNo,jdbcType=VARCHAR}, 
      #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.forwardingUnitNo,jdbcType=VARCHAR}, 
      #{item.forwardingUnitName,jdbcType=VARCHAR}, #{item.receivingUintNo,jdbcType=VARCHAR}, 
      #{item.receivingUintName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, #{item.specName,jdbcType=VARCHAR}, 
      #{item.heatNo,jdbcType=VARCHAR}, #{item.heatNoMes,jdbcType=VARCHAR}, #{item.heatNoSeq,jdbcType=VARCHAR}, 
      #{item.theoreticalWeight,jdbcType=DECIMAL}, #{item.checkManNo,jdbcType=VARCHAR}, 
      #{item.checkManName,jdbcType=VARCHAR}, #{item.checkTime,jdbcType=TIMESTAMP}, #{item.weightDiff,jdbcType=DECIMAL}, 
      #{item.scaleName,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_WORK_BELT_TIMINGINFO
     set
       TIMING_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.timingNo,jdbcType=VARCHAR}
       </foreach>
       ,PREDICTION_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
       </foreach>
       ,WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.weight,jdbcType=DECIMAL}
       </foreach>
       ,REALTIME_AMOUNT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.realtimeAmount,jdbcType=DECIMAL}
       </foreach>
       ,BELT_SPEED=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.beltSpeed,jdbcType=DECIMAL}
       </foreach>
       ,DIFFERENCE=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.difference,jdbcType=DECIMAL}
       </foreach>
       ,PRODUCT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.productName,jdbcType=VARCHAR}
       </foreach>
       ,PRODUCT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.productNo,jdbcType=VARCHAR}
       </foreach>
       ,METER_CLASS=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.meterClass,jdbcType=VARCHAR}
       </foreach>
       ,METER_GROUP=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.meterGroup,jdbcType=VARCHAR}
       </foreach>
       ,VALUE_FLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
       ,DELETE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
       </foreach>
       ,DELETE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
       </foreach>
       ,DELETE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
       </foreach>
       ,NOTICE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
       </foreach>
       ,BATCH_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
       </foreach>
       ,MEMO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
       </foreach>
       ,ACTUAL_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.actualNo,jdbcType=VARCHAR}
       </foreach>
       ,GRADE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.gradeNo,jdbcType=VARCHAR}
       </foreach>
       ,GRADE_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.gradeName,jdbcType=VARCHAR}
       </foreach>
       ,STANDARD_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.standardNo,jdbcType=VARCHAR}
       </foreach>
       ,STANDARD_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.standardName,jdbcType=VARCHAR}
       </foreach>
       ,PACKAGE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.packageNo,jdbcType=VARCHAR}
       </foreach>
       ,BLOCK_NUM=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.blockNum,jdbcType=VARCHAR}
       </foreach>
       ,PRODUCT_DATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.productDate,jdbcType=TIMESTAMP}
       </foreach>
       ,SEAL_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.sealNo,jdbcType=VARCHAR}
       </foreach>
       ,BUCKET_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.bucketNo,jdbcType=VARCHAR}
       </foreach>
       ,ACTUAL_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.actualWeight,jdbcType=DECIMAL}
       </foreach>
       ,REFER_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.referWeight,jdbcType=DECIMAL}
       </foreach>
       ,TARE_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.tareWeight,jdbcType=DECIMAL}
       </foreach>
       ,GROSS_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.grossWeight,jdbcType=DECIMAL}
       </foreach>
       ,COMBIN_PACKAGE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.combinPackageNo,jdbcType=VARCHAR}
       </foreach>
       ,WEIGHT_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.weightType,jdbcType=VARCHAR}
       </foreach>
       ,CHECK_FLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.checkFlag,jdbcType=VARCHAR}
       </foreach>
       ,BASE_SPOT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
       </foreach>
       ,BASE_SPOT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
       </foreach>
       ,NET_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.netWeight,jdbcType=DECIMAL}
       </foreach>
       ,CUSTOMER_SUPPLIER_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
       </foreach>
       ,CUSTOMER_SUPPLIER_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
       </foreach>
       ,FORWARDING_UNIT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
       </foreach>
       ,FORWARDING_UNIT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
       </foreach>
       ,RECEIVING_UINT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
       </foreach>
       ,RECEIVING_UINT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
       </foreach>
       ,SPEC_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
       </foreach>
       ,SPEC_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
       </foreach>
       ,HEAT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
       </foreach>
       ,HEAT_NO_MES=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.heatNoMes,jdbcType=VARCHAR}
       </foreach>
       ,HEAT_NO_SEQ=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.heatNoSeq,jdbcType=VARCHAR}
       </foreach>
       ,THEORETICAL_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.theoreticalWeight,jdbcType=DECIMAL}
       </foreach>
       ,CHECK_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
       </foreach>
       ,CHECK_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
       </foreach>
       ,CHECK_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
       </foreach>
       ,WEIGHT_DIFF=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.weightDiff,jdbcType=DECIMAL}
       </foreach>
       ,SCALE_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case TIMING_NO" close="end">
          when #{item.timingNo,jdbcType=VARCHAR} then #{item.scaleName,jdbcType=VARCHAR}
       </foreach>
     where TIMING_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.timingNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_WORK_BELT_TIMINGINFO
    where TIMING_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->

  <select id="doQueryWf" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    SELECT <include refid="columns"/> from METER_WORK_BELT_TIMINGINFO
    where CREATE_TIME between TO_DATE(#{startTime},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime},'yyyy-MM-dd HH24:mi:ss')
    <if test="baseSpotNo != null and baseSpotNo != ''">
      and BASE_SPOT_NO = #{baseSpotNo}
    </if>
    <if test="createManNo != null and createManNo != ''">
      and CREATE_MAN_NO = #{createManNo}
    </if>
    <if test="valueFlag != null and valueFlag != ''">
      and VALUE_FLAG = #{valueFlag}
    </if>
    <if test="productNo != null and productNo != ''">
      and PRODUCT_NO = #{productNo}
    </if>
    <if test="scaleName != null and scaleName != ''">
      and SCALE_NAME = #{scaleName}
    </if>
    <if test="weightType != null and weightType != ''">
      and WEIGHT_TYPE = #{weightType}
    </if>
    order by CREATE_TIME desc
  </select>

  <!-- 暂时没用到-->
  <select id="doQueryLefty" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    select table_A.*,table_B.*,(table_A.Weight_a-table_B.weight_b) diff
    from (select t.timing_no  timing_no_A,
    t.weight          weight_A,
    t.realtime_amount realtime_amount_A,
    t.belt_speed      belt_speed_A,
    t.package_no,
    t.forwarding_unit_name,
    t.product_name,
    t.difference,
    t.create_time
    from METER_WORK_BELT_TIMINGINFO t
    where t.base_spot_name = '东区4#皮带秤'
    and t.scale_name = 'A' and t.value_flag='1') table_A
    left join (select t.timing_no       timing_no_B,
    t.weight          weight_B,
    t.realtime_amount realtime_amount_B,
    t.belt_speed      belt_speed_B,
    t.package_no
    from METER_WORK_BELT_TIMINGINFO t
    where t.base_spot_name = '东区4#皮带秤'
    and t.scale_name = 'B' and t.value_flag='1') table_B
    on table_A.Package_No = table_B.Package_No;
  </select>



</mapper>