<?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.meterworkbeltscaleactual.mapper.MeterWorkBeltScaleActualMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkbeltscaleactual.model.MeterWorkBeltScaleActual">
    <id column="ACTUAL_NO" jdbcType="VARCHAR" property="actualNo" />
    <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
    <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="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="PRODUCT_NO" jdbcType="VARCHAR" property="productNo" />
    <result column="PRODUCT_NAME" jdbcType="VARCHAR" property="productName" />
    <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="METER_CLASS" jdbcType="VARCHAR" property="meterClass" />
    <result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
    <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="START_WEIGHT" jdbcType="DECIMAL" property="startWeight" />
    <result column="START_TIME" jdbcType="TIMESTAMP" property="startTime" />
    <result column="END_WEIGHT" jdbcType="DECIMAL" property="endWeight" />
    <result column="END_TIME" jdbcType="TIMESTAMP" property="endTime" />
    <result column="SCALE_NAME" jdbcType="VARCHAR" property="scaleName" />
    <result column="OVERSTOCK" jdbcType="TIMESTAMP" property="overstock" />
    <result column="UNLOAD_SITE" jdbcType="VARCHAR" property="unloadSite" />
    <result column="FORWARDING_WEIGHT" jdbcType="DECIMAL" property="forwardingWeight" />
    <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
    <result column="UNLOAD_WHARF" jdbcType="VARCHAR" property="unloadWharf" />
    <result column="ORDER_NO" jdbcType="VARCHAR" property="orderNo" />
    <result column="SCALES_COMPARISON" jdbcType="DECIMAL" property="scalesComparison" />
    <result column="IS_UNLOAD_FINISH" jdbcType="VARCHAR" property="isUnloadFinish" />
    <result column="WEATHER" jdbcType="VARCHAR" property="weather" />
    <result column="CHECK_WEIGHT" jdbcType="DECIMAL" property="checkWeight" />
    <result column="DEPARTURE_TIME" jdbcType="TIMESTAMP" property="departureTime" />
    <result column="FIRST_PRINT" jdbcType="VARCHAR" property="firstPrint" />
    <result column="FIRST_PRINT_TIME" jdbcType="TIMESTAMP" property="firstPrintTime" />
    <result column="PRINT_NUM" jdbcType="DECIMAL" property="printNum" />
    <result column="SECOND_PRINT" jdbcType="VARCHAR" property="secondPrint" />
    <result column="SECOND_PRINT_TIME" jdbcType="TIMESTAMP" property="secondPrintTime" />
    <result column="PRINT_NO" jdbcType="VARCHAR" property="printNo" />
    <result column="new_mat_name" jdbcType="VARCHAR" property="newMatName" />
    <result column="new_gg" jdbcType="VARCHAR" property="newGg" />
    <result column="new_hlh" jdbcType="VARCHAR" property="newHlh" />
    <result column="new_supplier" jdbcType="VARCHAR" property="newSupplier" />
  </resultMap>
  <sql id="columns">
    ACTUAL_NO, PREDICTION_NO, NOTICE_NO, BATCH_NO, MEMO, 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, PRODUCT_NO, PRODUCT_NAME, 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, METER_CLASS, METER_GROUP,
    SPEC_NO, SPEC_NAME, HEAT_NO, HEAT_NO_MES, HEAT_NO_SEQ, THEORETICAL_WEIGHT, CHECK_MAN_NO,
    CHECK_MAN_NAME, CHECK_TIME, WEIGHT_DIFF, START_WEIGHT, START_TIME, END_WEIGHT, END_TIME,
    SCALE_NAME, OVERSTOCK, UNLOAD_SITE, FORWARDING_WEIGHT, SHIP_NO, UNLOAD_WHARF, ORDER_NO,
    SCALES_COMPARISON, IS_UNLOAD_FINISH, WEATHER, CHECK_WEIGHT, DEPARTURE_TIME, FIRST_PRINT,
    FIRST_PRINT_TIME, PRINT_NUM, SECOND_PRINT, SECOND_PRINT_TIME, PRINT_NO,new_mat_name,new_gg,new_hlh,new_supplier
  </sql>
  <sql id="columns_alias">
    t.ACTUAL_NO, t.PREDICTION_NO, t.NOTICE_NO, t.BATCH_NO, t.MEMO, 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.PRODUCT_NO, t.PRODUCT_NAME,
    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.METER_CLASS, t.METER_GROUP, 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.START_WEIGHT, t.START_TIME, t.END_WEIGHT, t.END_TIME, t.SCALE_NAME, t.OVERSTOCK,
    t.UNLOAD_SITE, t.FORWARDING_WEIGHT, t.SHIP_NO, t.UNLOAD_WHARF, t.ORDER_NO, t.SCALES_COMPARISON,
    t.IS_UNLOAD_FINISH, t.WEATHER, t.CHECK_WEIGHT, t.DEPARTURE_TIME, t.FIRST_PRINT, t.FIRST_PRINT_TIME,
    t.PRINT_NUM, t.SECOND_PRINT, t.SECOND_PRINT_TIME, t.PRINT_NO,t.new_mat_name,t.new_gg,t.new_hlh,t.new_supplier
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_WORK_BELT_SCALE_ACTUAL
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_WORK_BELT_SCALE_ACTUAL t
  </sql>
  <sql id="where">
    <where>
      <if test="actualNo != null and actualNo != ''">
        and ACTUAL_NO = #{actualNo}
      </if>
      <if test="predictionNo != null and predictionNo != ''">
        and PREDICTION_NO = #{predictionNo}
      </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="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="productNo != null and productNo != ''">
        and PRODUCT_NO = #{productNo}
      </if>
      <if test="productName != null and productName != ''">
        and PRODUCT_NAME = #{productName}
      </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="meterClass != null and meterClass != ''">
        and METER_CLASS = #{meterClass}
      </if>
      <if test="meterGroup != null and meterGroup != ''">
        and METER_GROUP = #{meterGroup}
      </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="startWeight != null">
        and START_WEIGHT = #{startWeight}
      </if>
      <if test="startTime != null">
        and TO_CHAR(START_TIME,'yyyy-MM-dd') = #{startTime}
      </if>
      <if test="endWeight != null">
        and END_WEIGHT = #{endWeight}
      </if>
      <if test="endTime != null">
        and TO_CHAR(END_TIME,'yyyy-MM-dd') = #{endTime}
      </if>
      <if test="scaleName != null and scaleName != ''">
        and SCALE_NAME = #{scaleName}
      </if>
      <if test="overstock != null">
        and TO_CHAR(OVERSTOCK,'yyyy-MM-dd') = #{overstock}
      </if>
      <if test="unloadSite != null and unloadSite != ''">
        and UNLOAD_SITE = #{unloadSite}
      </if>
      <if test="forwardingWeight != null">
        and FORWARDING_WEIGHT = #{forwardingWeight}
      </if>
      <if test="shipNo != null and shipNo != ''">
        and SHIP_NO = #{shipNo}
      </if>
      <if test="unloadWharf != null and unloadWharf != ''">
        and UNLOAD_WHARF = #{unloadWharf}
      </if>
      <if test="orderNo != null and orderNo != ''">
        and ORDER_NO = #{orderNo}
      </if>
      <if test="scalesComparison != null">
        and SCALES_COMPARISON = #{scalesComparison}
      </if>
      <if test="isUnloadFinish != null and isUnloadFinish != ''">
        and IS_UNLOAD_FINISH = #{isUnloadFinish}
      </if>
      <if test="weather != null and weather != ''">
        and WEATHER = #{weather}
      </if>
      <if test="checkWeight != null">
        and CHECK_WEIGHT = #{checkWeight}
      </if>
      <if test="departureTime != null">
        and TO_CHAR(DEPARTURE_TIME,'yyyy-MM-dd') = #{departureTime}
      </if>
      <if test="firstPrint != null and firstPrint != ''">
      and FIRST_PRINT = #{firstPrint}
      </if>
      <if test="firstPrintTime != null">
        and TO_CHAR(FIRST_PRINT_TIME,'yyyy-MM-dd') = #{firstPrintTime}
      </if>
      <if test="printNum != null">
        and PRINT_NUM = #{printNum}
      </if>
      <if test="secondPrint != null and secondPrint != ''">
        and SECOND_PRINT = #{secondPrint}
      </if>
      <if test="secondPrintTime != null">
        and TO_CHAR(SECOND_PRINT_TIME,'yyyy-MM-dd') = #{secondPrintTime}
      </if>
      <if test="printNo != null and printNo != ''">
        and PRINT_NO = #{printNo}
      </if>
      <if test="newMatName != null and newMatName != ''">
        and new_mat_name = #{newMatName}
      </if>
      <if test="newGg != null and newGg != ''">
        and new_gg = #{newGg}
      </if>
      <if test="newHlh != null and newHlh != ''">
        and new_hlh = #{newHlh}
      </if>
      <if test="newSupplier != null and newSupplier != ''">
        and new_supplier = #{newSupplier}
      </if>
    </where>
    order by CREATE_TIME desc
  </sql>
  <sql id="whereLike">
    <where>
      <if test="actualNo != null and actualNo != ''">
        and ACTUAL_NO LIKE '%${actualNo}%'
      </if>
      <if test="predictionNo != null and predictionNo != ''">
        and PREDICTION_NO LIKE '%${predictionNo}%'
      </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="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="productNo != null and productNo != ''">
        and PRODUCT_NO LIKE '%${productNo}%'
      </if>
      <if test="productName != null and productName != ''">
        and PRODUCT_NAME LIKE '%${productName}%'
      </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="meterClass != null and meterClass != ''">
        and METER_CLASS LIKE '%${meterClass}%'
      </if>
      <if test="meterGroup != null and meterGroup != ''">
        and METER_GROUP LIKE '%${meterGroup}%'
      </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="startWeight != null">
        and START_WEIGHT = #{startWeight}
      </if>
      <if test="startTime != null">
        and TO_CHAR(START_TIME,'yyyy-MM-dd') = #{startTime}
      </if>
      <if test="endWeight != null">
        and END_WEIGHT = #{endWeight}
      </if>
      <if test="endTime != null">
        and TO_CHAR(END_TIME,'yyyy-MM-dd') = #{endTime}
      </if>
      <if test="scaleName != null and scaleName != ''">
        and SCALE_NAME LIKE '%${scaleName}%'
      </if>
      <if test="overstock != null">
        and TO_CHAR(OVERSTOCK,'yyyy-MM-dd') = #{overstock}
      </if>
      <if test="unloadSite != null and unloadSite != ''">
        and UNLOAD_SITE LIKE '%${unloadSite}%'
      </if>
      <if test="forwardingWeight != null">
        and FORWARDING_WEIGHT = #{forwardingWeight}
      </if>
      <if test="shipNo != null and shipNo != ''">
        and SHIP_NO LIKE '%${shipNo}%'
      </if>
      <if test="unloadWharf != null and unloadWharf != ''">
        and UNLOAD_WHARF LIKE '%${unloadWharf}%'
      </if>
      <if test="orderNo != null and orderNo != ''">
        and ORDER_NO LIKE '%${orderNo}%'
      </if>
      <if test="scalesComparison != null">
        and SCALES_COMPARISON = #{scalesComparison}
      </if>
      <if test="isUnloadFinish != null and isUnloadFinish != ''">
        and IS_UNLOAD_FINISH LIKE '%${isUnloadFinish}%'
      </if>
      <if test="weather != null and weather != ''">
        and WEATHER LIKE '%${weather}%'
      </if>
      <if test="checkWeight != null">
        and CHECK_WEIGHT = #{checkWeight}
      </if>
      <if test="departureTime != null">
        and TO_CHAR(DEPARTURE_TIME,'yyyy-MM-dd') = #{departureTime}
      </if>
      <if test="firstPrint != null and firstPrint != ''">
        and FIRST_PRINT LIKE '%${firstPrint}%'
      </if>
      <if test="firstPrintTime != null">
        and TO_CHAR(FIRST_PRINT_TIME,'yyyy-MM-dd') = #{firstPrintTime}
      </if>
      <if test="printNum != null">
        and PRINT_NUM = #{printNum}
      </if>
      <if test="secondPrint != null and secondPrint != ''">
        and SECOND_PRINT LIKE '%${secondPrint}%'
      </if>
      <if test="secondPrintTime != null">
        and TO_CHAR(SECOND_PRINT_TIME,'yyyy-MM-dd') = #{secondPrintTime}
      </if>
      <if test="printNo != null and printNo != ''">
        and PRINT_NO LIKE '%${printNo}%'
      </if>
    </where>
    order by CREATE_TIME desc
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_WORK_BELT_SCALE_ACTUAL
    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_WORK_BELT_SCALE_ACTUAL
    where 1!=1
    <if test="predictionNo != null and predictionNo != ''">
      or PREDICTION_NO = #{predictionNo}
    </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="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="productNo != null and productNo != ''">
      or PRODUCT_NO = #{productNo}
    </if>
    <if test="productName != null and productName != ''">
      or PRODUCT_NAME = #{productName}
    </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="meterClass != null and meterClass != ''">
      or METER_CLASS = #{meterClass}
    </if>
    <if test="meterGroup != null and meterGroup != ''">
      or METER_GROUP = #{meterGroup}
    </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="startWeight != null">
      or START_WEIGHT = #{startWeight}
    </if>
    <if test="startTime != null">
      or TO_CHAR(START_TIME,'yyyy-MM-dd') = '#{startTime}'
    </if>
    <if test="endWeight != null">
      or END_WEIGHT = #{endWeight}
    </if>
    <if test="endTime != null">
      or TO_CHAR(END_TIME,'yyyy-MM-dd') = '#{endTime}'
    </if>
    <if test="scaleName != null and scaleName != ''">
      or SCALE_NAME = #{scaleName}
    </if>
    <if test="overstock != null">
      or TO_CHAR(OVERSTOCK,'yyyy-MM-dd') = '#{overstock}'
    </if>
    <if test="unloadSite != null and unloadSite != ''">
      or UNLOAD_SITE = #{unloadSite}
    </if>
    <if test="forwardingWeight != null">
      or FORWARDING_WEIGHT = #{forwardingWeight}
    </if>
    <if test="shipNo != null and shipNo != ''">
      or SHIP_NO = #{shipNo}
    </if>
    <if test="unloadWharf != null and unloadWharf != ''">
      or UNLOAD_WHARF = #{unloadWharf}
    </if>
    <if test="orderNo != null and orderNo != ''">
      or ORDER_NO = #{orderNo}
    </if>
    <if test="scalesComparison != null">
      or SCALES_COMPARISON = #{scalesComparison}
    </if>
    <if test="isUnloadFinish != null and isUnloadFinish != ''">
      or IS_UNLOAD_FINISH = #{isUnloadFinish}
    </if>
    <if test="weather != null and weather != ''">
      or WEATHER = #{weather}
    </if>
    <if test="checkWeight != null">
      or CHECK_WEIGHT = #{checkWeight}
    </if>
    <if test="departureTime != null">
      or TO_CHAR(DEPARTURE_TIME,'yyyy-MM-dd') = '#{departureTime}'
    </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkbeltscaleactual.model.MeterWorkBeltScaleActual">
   insert into METER_WORK_BELT_SCALE_ACTUAL (ACTUAL_NO, PREDICTION_NO, NOTICE_NO,
      BATCH_NO, MEMO, 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,
      PRODUCT_NO, PRODUCT_NAME, 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, METER_CLASS, METER_GROUP,
      SPEC_NO, SPEC_NAME, HEAT_NO,
      HEAT_NO_MES, HEAT_NO_SEQ, THEORETICAL_WEIGHT,
      CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME,
      WEIGHT_DIFF, START_WEIGHT, START_TIME,
      END_WEIGHT, END_TIME, SCALE_NAME,
      OVERSTOCK, UNLOAD_SITE, FORWARDING_WEIGHT,
      SHIP_NO, UNLOAD_WHARF, ORDER_NO,
      SCALES_COMPARISON, IS_UNLOAD_FINISH, WEATHER,
      CHECK_WEIGHT, DEPARTURE_TIME, FIRST_PRINT,
      FIRST_PRINT_TIME, PRINT_NUM, SECOND_PRINT,
      SECOND_PRINT_TIME, PRINT_NO)
    values (#{actualNo,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR},
      #{batchNo,jdbcType=VARCHAR}, #{memo,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},
      #{productNo,jdbcType=VARCHAR}, #{productName,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}, #{meterClass,jdbcType=VARCHAR}, #{meterGroup,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}, #{startWeight,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP},
      #{endWeight,jdbcType=DECIMAL}, #{endTime,jdbcType=TIMESTAMP}, #{scaleName,jdbcType=VARCHAR},
      #{overstock,jdbcType=TIMESTAMP}, #{unloadSite,jdbcType=VARCHAR}, #{forwardingWeight,jdbcType=DECIMAL},
      #{shipNo,jdbcType=VARCHAR}, #{unloadWharf,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR},
      #{scalesComparison,jdbcType=DECIMAL}, #{isUnloadFinish,jdbcType=VARCHAR}, #{weather,jdbcType=VARCHAR},
      #{checkWeight,jdbcType=DECIMAL}, #{departureTime,jdbcType=TIMESTAMP}, #{firstPrint,jdbcType=VARCHAR},
      #{firstPrintTime,jdbcType=TIMESTAMP}, #{printNum,jdbcType=DECIMAL}, #{secondPrint,jdbcType=VARCHAR},
      #{secondPrintTime,jdbcType=TIMESTAMP}, #{printNo,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkbeltscaleactual.model.MeterWorkBeltScaleActual">
    insert into METER_WORK_BELT_SCALE_ACTUAL
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="actualNo != null">
        ACTUAL_NO,
      </if>
      <if test="predictionNo != null">
        PREDICTION_NO,
      </if>
      <if test="noticeNo != null">
        NOTICE_NO,
      </if>
      <if test="batchNo != null">
        BATCH_NO,
      </if>
      <if test="memo != null">
        MEMO,
      </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="productNo != null">
        PRODUCT_NO,
      </if>
      <if test="productName != null">
        PRODUCT_NAME,
      </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="meterClass != null">
        METER_CLASS,
      </if>
      <if test="meterGroup != null">
        METER_GROUP,
      </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="startWeight != null">
        START_WEIGHT,
      </if>
      <if test="startTime != null">
        START_TIME,
      </if>
      <if test="endWeight != null">
        END_WEIGHT,
      </if>
      <if test="endTime != null">
        END_TIME,
      </if>
      <if test="scaleName != null">
        SCALE_NAME,
      </if>
      <if test="overstock != null">
        OVERSTOCK,
      </if>
      <if test="unloadSite != null">
        UNLOAD_SITE,
      </if>
      <if test="forwardingWeight != null">
        FORWARDING_WEIGHT,
      </if>
      <if test="shipNo != null">
        SHIP_NO,
      </if>
      <if test="unloadWharf != null">
        UNLOAD_WHARF,
      </if>
      <if test="orderNo != null">
        ORDER_NO,
      </if>
      <if test="scalesComparison != null">
        SCALES_COMPARISON,
      </if>
      <if test="isUnloadFinish != null">
        IS_UNLOAD_FINISH,
      </if>
      <if test="weather != null">
        WEATHER,
      </if>
      <if test="checkWeight != null">
        CHECK_WEIGHT,
      </if>
      <if test="departureTime != null">
        DEPARTURE_TIME,
      </if>
      <if test="firstPrint != null">
        FIRST_PRINT,
      </if>
      <if test="firstPrintTime != null">
        FIRST_PRINT_TIME,
      </if>
      <if test="printNum != null">
        PRINT_NUM,
      </if>
      <if test="secondPrint != null">
        SECOND_PRINT,
      </if>
      <if test="secondPrintTime != null">
        SECOND_PRINT_TIME,
      </if>
      <if test="printNo != null">
        PRINT_NO,
      </if>
      <if test="newMatName != null">
        new_mat_name,
      </if>
      <if test="newGg != null">
        new_gg,
      </if>
      <if test="newHlh != null">
        new_hlh,
      </if>
      <if test="newSupplier != null">
        new_supplier,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="actualNo != null">
        #{actualNo,jdbcType=VARCHAR},
      </if>
      <if test="predictionNo != null">
        #{predictionNo,jdbcType=VARCHAR},
      </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="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="productNo != null">
        #{productNo,jdbcType=VARCHAR},
      </if>
      <if test="productName != null">
        #{productName,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="meterClass != null">
        #{meterClass,jdbcType=VARCHAR},
      </if>
      <if test="meterGroup != null">
        #{meterGroup,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="startWeight != null">
        #{startWeight,jdbcType=DECIMAL},
      </if>
      <if test="startTime != null">
        #{startTime,jdbcType=TIMESTAMP},
      </if>
      <if test="endWeight != null">
        #{endWeight,jdbcType=DECIMAL},
      </if>
      <if test="endTime != null">
        #{endTime,jdbcType=TIMESTAMP},
      </if>
      <if test="scaleName != null">
        #{scaleName,jdbcType=VARCHAR},
      </if>
      <if test="overstock != null">
        #{overstock,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadSite != null">
        #{unloadSite,jdbcType=VARCHAR},
      </if>
      <if test="forwardingWeight != null">
        #{forwardingWeight,jdbcType=DECIMAL},
      </if>
      <if test="shipNo != null">
        #{shipNo,jdbcType=VARCHAR},
      </if>
      <if test="unloadWharf != null">
        #{unloadWharf,jdbcType=VARCHAR},
      </if>
      <if test="orderNo != null">
        #{orderNo,jdbcType=VARCHAR},
      </if>
      <if test="scalesComparison != null">
        #{scalesComparison,jdbcType=DECIMAL},
      </if>
      <if test="isUnloadFinish != null">
        #{isUnloadFinish,jdbcType=VARCHAR},
      </if>
      <if test="weather != null">
        #{weather,jdbcType=VARCHAR},
      </if>
      <if test="checkWeight != null">
        #{checkWeight,jdbcType=DECIMAL},
      </if>
      <if test="departureTime != null">
        #{departureTime,jdbcType=TIMESTAMP},
      </if>
      <if test="firstPrint != null">
        #{firstPrint,jdbcType=VARCHAR},
      </if>
      <if test="firstPrintTime != null">
        #{firstPrintTime,jdbcType=TIMESTAMP},
      </if>
      <if test="printNum != null">
        #{printNum,jdbcType=DECIMAL},
      </if>
      <if test="secondPrint != null">
        #{secondPrint,jdbcType=VARCHAR},
      </if>
      <if test="secondPrintTime != null">
        #{secondPrintTime,jdbcType=TIMESTAMP},
      </if>
      <if test="printNo != null">
        #{printNo,jdbcType=VARCHAR},
      </if>
      <if test="newMatName != null">
        #{newMatName,jdbcType=VARCHAR},
      </if>
      <if test="newGg != null">
        #{newGg,jdbcType=VARCHAR},
      </if>
      <if test="newHlh != null">
        #{newHlh,jdbcType=VARCHAR},
      </if>
      <if test="newSupplier != null">
        #{newSupplier,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkbeltscaleactual.model.MeterWorkBeltScaleActual">
    update METER_WORK_BELT_SCALE_ACTUAL
    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
      NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
      MEMO = #{memo,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},
      PRODUCT_NO = #{productNo,jdbcType=VARCHAR},
      PRODUCT_NAME = #{productName,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},
      METER_CLASS = #{meterClass,jdbcType=VARCHAR},
      METER_GROUP = #{meterGroup,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},
      START_WEIGHT = #{startWeight,jdbcType=DECIMAL},
      START_TIME = #{startTime,jdbcType=TIMESTAMP},
      END_WEIGHT = #{endWeight,jdbcType=DECIMAL},
      END_TIME = #{endTime,jdbcType=TIMESTAMP},
      SCALE_NAME = #{scaleName,jdbcType=VARCHAR},
      OVERSTOCK = #{overstock,jdbcType=TIMESTAMP},
      UNLOAD_SITE = #{unloadSite,jdbcType=VARCHAR},
      FORWARDING_WEIGHT = #{forwardingWeight,jdbcType=DECIMAL},
      SHIP_NO = #{shipNo,jdbcType=VARCHAR},
      UNLOAD_WHARF = #{unloadWharf,jdbcType=VARCHAR},
      ORDER_NO = #{orderNo,jdbcType=VARCHAR},
      SCALES_COMPARISON = #{scalesComparison,jdbcType=DECIMAL},
      IS_UNLOAD_FINISH = #{isUnloadFinish,jdbcType=VARCHAR},
      WEATHER = #{weather,jdbcType=VARCHAR},
      CHECK_WEIGHT = #{checkWeight,jdbcType=DECIMAL},
      DEPARTURE_TIME = #{departureTime,jdbcType=TIMESTAMP},
      FIRST_PRINT = #{firstPrint,jdbcType=VARCHAR},
      FIRST_PRINT_TIME = #{firstPrintTime,jdbcType=TIMESTAMP},
      PRINT_NUM = #{printNum,jdbcType=DECIMAL},
      SECOND_PRINT = #{secondPrint,jdbcType=VARCHAR},
      SECOND_PRINT_TIME = #{secondPrintTime,jdbcType=TIMESTAMP},
      PRINT_NO = #{printNo,jdbcType=VARCHAR}
    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkbeltscaleactual.model.MeterWorkBeltScaleActual">
    update METER_WORK_BELT_SCALE_ACTUAL
    <set>
      <if test="predictionNo != null">
        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
      </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="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="productNo != null">
        PRODUCT_NO = #{productNo,jdbcType=VARCHAR},
      </if>
      <if test="productName != null">
        PRODUCT_NAME = #{productName,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="meterClass != null">
        METER_CLASS = #{meterClass,jdbcType=VARCHAR},
      </if>
      <if test="meterGroup != null">
        METER_GROUP = #{meterGroup,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="startWeight != null">
        START_WEIGHT = #{startWeight,jdbcType=DECIMAL},
      </if>
      <if test="startTime != null">
        START_TIME = #{startTime,jdbcType=TIMESTAMP},
      </if>
      <if test="endWeight != null">
        END_WEIGHT = #{endWeight,jdbcType=DECIMAL},
      </if>
      <if test="endTime != null">
        END_TIME = #{endTime,jdbcType=TIMESTAMP},
      </if>
      <if test="scaleName != null">
        SCALE_NAME = #{scaleName,jdbcType=VARCHAR},
      </if>
      <if test="overstock != null">
        OVERSTOCK = #{overstock,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadSite != null">
        UNLOAD_SITE = #{unloadSite,jdbcType=VARCHAR},
      </if>
      <if test="forwardingWeight != null">
        FORWARDING_WEIGHT = #{forwardingWeight,jdbcType=DECIMAL},
      </if>
      <if test="shipNo != null">
        SHIP_NO = #{shipNo,jdbcType=VARCHAR},
      </if>
      <if test="unloadWharf != null">
        UNLOAD_WHARF = #{unloadWharf,jdbcType=VARCHAR},
      </if>
      <if test="orderNo != null">
        ORDER_NO = #{orderNo,jdbcType=VARCHAR},
      </if>
      <if test="scalesComparison != null">
        SCALES_COMPARISON = #{scalesComparison,jdbcType=DECIMAL},
      </if>
      <if test="isUnloadFinish != null">
        IS_UNLOAD_FINISH = #{isUnloadFinish,jdbcType=VARCHAR},
      </if>
      <if test="weather != null">
        WEATHER = #{weather,jdbcType=VARCHAR},
      </if>
      <if test="checkWeight != null">
        CHECK_WEIGHT = #{checkWeight,jdbcType=DECIMAL},
      </if>
      <if test="departureTime != null">
        DEPARTURE_TIME = #{departureTime,jdbcType=TIMESTAMP},
      </if>
      <if test="firstPrint != null">
        FIRST_PRINT = #{firstPrint,jdbcType=VARCHAR},
      </if>
      <if test="firstPrintTime != null">
        FIRST_PRINT_TIME = #{firstPrintTime,jdbcType=TIMESTAMP},
      </if>
      <if test="printNum != null">
        PRINT_NUM = #{printNum,jdbcType=DECIMAL},
      </if>
      <if test="secondPrint != null">
        SECOND_PRINT = #{secondPrint,jdbcType=VARCHAR},
      </if>
      <if test="secondPrintTime != null">
        SECOND_PRINT_TIME = #{secondPrintTime,jdbcType=TIMESTAMP},
      </if>
      <if test="printNo != null">
        PRINT_NO = #{printNo,jdbcType=VARCHAR},
      </if>
      <if test="newMatName != null">
        new_mat_name = #{newMatName,jdbcType=VARCHAR},
      </if>
      <if test="newGg != null">
        new_gg = #{newGg,jdbcType=VARCHAR},
      </if>
      <if test="newHlh != null">
        new_hlh =#{newHlh,jdbcType=VARCHAR},
      </if>
      <if test="newSupplier != null">
        new_supplier =#{newSupplier,jdbcType=VARCHAR},
      </if>
    </set>
    where
    <if test="orderNo != null">
      ORDER_NO = #{orderNo,jdbcType=VARCHAR} and CHECK_FLAG = '1' and VALUE_FLAG='1'
    </if>
    <if test="actualNo != null">
      ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
    </if>
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where ACTUAL_NO = #{actualNo,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_SCALE_ACTUAL
    (ACTUAL_NO,
    PREDICTION_NO, NOTICE_NO, BATCH_NO,
    MEMO, 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,
    PRODUCT_NO, PRODUCT_NAME, 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, METER_CLASS,
    METER_GROUP, SPEC_NO, SPEC_NAME,
    HEAT_NO, HEAT_NO_MES, HEAT_NO_SEQ,
    THEORETICAL_WEIGHT, CHECK_MAN_NO,
    CHECK_MAN_NAME, CHECK_TIME, WEIGHT_DIFF,
    START_WEIGHT, START_TIME, END_WEIGHT,
    END_TIME, SCALE_NAME, OVERSTOCK,
    UNLOAD_SITE, FORWARDING_WEIGHT,
    SHIP_NO, UNLOAD_WHARF, ORDER_NO,
    SCALES_COMPARISON, IS_UNLOAD_FINISH,
    WEATHER, CHECK_WEIGHT, DEPARTURE_TIME,
    FIRST_PRINT, FIRST_PRINT_TIME,
    PRINT_NUM, SECOND_PRINT, SECOND_PRINT_TIME,
    PRINT_NO)
    ( <foreach collection="list" item="item" separator="union all">
    select
    #{item.actualNo,jdbcType=VARCHAR},
    #{item.predictionNo,jdbcType=VARCHAR}, #{item.noticeNo,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR},
    #{item.memo,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.productNo,jdbcType=VARCHAR}, #{item.productName,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.meterClass,jdbcType=VARCHAR},
    #{item.meterGroup,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.startWeight,jdbcType=DECIMAL}, #{item.startTime,jdbcType=TIMESTAMP}, #{item.endWeight,jdbcType=DECIMAL},
    #{item.endTime,jdbcType=TIMESTAMP}, #{item.scaleName,jdbcType=VARCHAR}, #{item.overstock,jdbcType=TIMESTAMP},
    #{item.unloadSite,jdbcType=VARCHAR}, #{item.forwardingWeight,jdbcType=DECIMAL},
    #{item.shipNo,jdbcType=VARCHAR}, #{item.unloadWharf,jdbcType=VARCHAR}, #{item.orderNo,jdbcType=VARCHAR},
    #{item.scalesComparison,jdbcType=DECIMAL}, #{item.isUnloadFinish,jdbcType=VARCHAR},
    #{item.weather,jdbcType=VARCHAR}, #{item.checkWeight,jdbcType=DECIMAL}, #{item.departureTime,jdbcType=TIMESTAMP},
    #{item.firstPrint,jdbcType=VARCHAR}, #{item.firstPrintTime,jdbcType=TIMESTAMP},
    #{item.printNum,jdbcType=DECIMAL}, #{item.secondPrint,jdbcType=VARCHAR}, #{item.secondPrintTime,jdbcType=TIMESTAMP},
    #{item.printNo,jdbcType=VARCHAR} from dual
  </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
    update METER_WORK_BELT_SCALE_ACTUAL
    set
    ACTUAL_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
    ,PREDICTION_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
    </foreach>
    ,NOTICE_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
    </foreach>
    ,BATCH_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
    </foreach>
    ,MEMO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
    </foreach>
    ,VALUE_FLAG=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
    </foreach>
    ,CREATE_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
    </foreach>
    ,CREATE_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
    </foreach>
    ,CREATE_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
    </foreach>
    ,UPDATE_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
    </foreach>
    ,UPDATE_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
    </foreach>
    ,UPDATE_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
    </foreach>
    ,DELETE_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
    </foreach>
    ,DELETE_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
    </foreach>
    ,DELETE_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
    </foreach>
    ,PRODUCT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.productNo,jdbcType=VARCHAR}
    </foreach>
    ,PRODUCT_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.productName,jdbcType=VARCHAR}
    </foreach>
    ,GRADE_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.gradeNo,jdbcType=VARCHAR}
    </foreach>
    ,GRADE_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.gradeName,jdbcType=VARCHAR}
    </foreach>
    ,STANDARD_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.standardNo,jdbcType=VARCHAR}
    </foreach>
    ,STANDARD_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.standardName,jdbcType=VARCHAR}
    </foreach>
    ,PACKAGE_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.packageNo,jdbcType=VARCHAR}
    </foreach>
    ,BLOCK_NUM=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.blockNum,jdbcType=VARCHAR}
    </foreach>
    ,PRODUCT_DATE=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.productDate,jdbcType=TIMESTAMP}
    </foreach>
    ,SEAL_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.sealNo,jdbcType=VARCHAR}
    </foreach>
    ,BUCKET_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.bucketNo,jdbcType=VARCHAR}
    </foreach>
    ,ACTUAL_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualWeight,jdbcType=DECIMAL}
    </foreach>
    ,REFER_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.referWeight,jdbcType=DECIMAL}
    </foreach>
    ,TARE_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareWeight,jdbcType=DECIMAL}
    </foreach>
    ,GROSS_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossWeight,jdbcType=DECIMAL}
    </foreach>
    ,COMBIN_PACKAGE_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.combinPackageNo,jdbcType=VARCHAR}
    </foreach>
    ,WEIGHT_TYPE=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.weightType,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_FLAG=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkFlag,jdbcType=VARCHAR}
    </foreach>
    ,BASE_SPOT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
    </foreach>
    ,BASE_SPOT_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
    </foreach>
    ,NET_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.netWeight,jdbcType=DECIMAL}
    </foreach>
    ,CUSTOMER_SUPPLIER_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
    </foreach>
    ,CUSTOMER_SUPPLIER_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
    </foreach>
    ,FORWARDING_UNIT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
    </foreach>
    ,FORWARDING_UNIT_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
    </foreach>
    ,RECEIVING_UINT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
    </foreach>
    ,RECEIVING_UINT_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
    </foreach>
    ,METER_CLASS=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterClass,jdbcType=VARCHAR}
    </foreach>
    ,METER_GROUP=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterGroup,jdbcType=VARCHAR}
    </foreach>
    ,SPEC_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
    </foreach>
    ,SPEC_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
    </foreach>
    ,HEAT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
    </foreach>
    ,HEAT_NO_MES=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.heatNoMes,jdbcType=VARCHAR}
    </foreach>
    ,HEAT_NO_SEQ=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.heatNoSeq,jdbcType=VARCHAR}
    </foreach>
    ,THEORETICAL_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.theoreticalWeight,jdbcType=DECIMAL}
    </foreach>
    ,CHECK_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
    </foreach>
    ,WEIGHT_DIFF=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.weightDiff,jdbcType=DECIMAL}
    </foreach>
    ,START_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.startWeight,jdbcType=DECIMAL}
    </foreach>
    ,START_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.startTime,jdbcType=TIMESTAMP}
    </foreach>
    ,END_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.endWeight,jdbcType=DECIMAL}
    </foreach>
    ,END_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.endTime,jdbcType=TIMESTAMP}
    </foreach>
    ,SCALE_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.scaleName,jdbcType=VARCHAR}
    </foreach>
    ,OVERSTOCK=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.overstock,jdbcType=TIMESTAMP}
    </foreach>
    ,UNLOAD_SITE=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.unloadSite,jdbcType=VARCHAR}
    </foreach>
    ,FORWARDING_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingWeight,jdbcType=DECIMAL}
    </foreach>
    ,SHIP_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.shipNo,jdbcType=VARCHAR}
    </foreach>
    ,UNLOAD_WHARF=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.unloadWharf,jdbcType=VARCHAR}
    </foreach>
    ,ORDER_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.orderNo,jdbcType=VARCHAR}
    </foreach>
    ,SCALES_COMPARISON=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.scalesComparison,jdbcType=DECIMAL}
    </foreach>
    ,IS_UNLOAD_FINISH=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.isUnloadFinish,jdbcType=VARCHAR}
    </foreach>
    ,WEATHER=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.weather,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_WEIGHT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkWeight,jdbcType=DECIMAL}
    </foreach>
    ,DEPARTURE_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.departureTime,jdbcType=TIMESTAMP}
    </foreach>
    ,FIRST_PRINT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.firstPrint,jdbcType=VARCHAR}
    </foreach>
    ,FIRST_PRINT_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.firstPrintTime,jdbcType=TIMESTAMP}
    </foreach>
    ,PRINT_NUM=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.printNum,jdbcType=DECIMAL}
    </foreach>
    ,SECOND_PRINT=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.secondPrint,jdbcType=VARCHAR}
    </foreach>
    ,SECOND_PRINT_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.secondPrintTime,jdbcType=TIMESTAMP}
    </foreach>
    ,PRINT_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.printNo,jdbcType=VARCHAR}
    </foreach>
    where ACTUAL_NO in
    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_WORK_BELT_SCALE_ACTUAL
    where ACTUAL_NO in
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  <select id="doQueryActualInfoAndGroup" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    select t.new_mat_name,sum(t.net_weight) net_weight,count(*) REFER_WEIGHT,sum(t.start_weight) start_weight,sum(t.end_weight) end_weight
    <if test="forwardingUnitName != null and forwardingUnitName != '' ">
       ,t.FORWARDING_UNIT_NAME
    </if>
    <if test="newSupplier != null and newSupplier != ''">
      ,t.new_supplier
    </if>
    <if test="receivingUintName != null and receivingUintName != ''  ">
      ,t.RECEIVING_UINT_NAME
    </if>
    <if test="shipNo != null and shipNo != '' ">
      ,t.SHIP_NO
    </if>
    <if test="baseSpotName != null and baseSpotName != ''  ">
      ,t.BASE_SPOT_NAME
    </if>
    <if test="unloadSite != null and unloadSite != '' ">
      ,t.UNLOAD_SITE
    </if>
    <if test="orderNo != null and orderNo != '' ">
      ,t.ORDER_NO
    </if>
    from METER_WORK_BELT_SCALE_ACTUAL t
     <where>
       t.value_flag = #{valueFlag}
       <if test="startTime1 != null">
         and t.CREATE_TIME between TO_DATE(#{startTime1},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime1},'yyyy-MM-dd HH24:mi:ss')
       </if>
       <if test="baseSpotName != null and baseSpotName != '' and baseSpotName!='1'.toString()">
         and t.BASE_SPOT_NAME = #{baseSpotName}
       </if>
       <if test="checkFlag != null and checkFlag != ''">
         and t.CHECK_FLAG = #{checkFlag}
       </if>
       <if test="productName != null and productName != ''  and productName!='1'.toString()">
         and t.PRODUCT_NAME LIKE '%${productName}%'
       </if>
       <if test="newMatName != null and newMatName != ''  and newMatName!='1'.toString()">
         and t.new_mat_name LIKE '%${newMatName}%'
       </if>
       <if test="unloadSite != null and unloadSite != '' and unloadSite!='1'.toString()">
         and t.UNLOAD_SITE LIKE '%${unloadSite}%'
       </if>
       <if test="newSupplier != null and newSupplier != '' and newSupplier!='1'.toString()">
         and t.new_supplier LIKE '%${newSupplier}%'
       </if>
       <if test="forwardingUnitName != null and forwardingUnitName != '' and forwardingUnitName!='1'.toString()">
         and t.FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
       </if>
       <if test="receivingUintName != null and receivingUintName != '' and receivingUintName!='1'.toString()">
         and t.RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
       </if>
       <if test="shipNo != null and shipNo != '' and shipNo!='1'.toString()">
         and t.SHIP_NO LIKE '%${shipNo}%'
       </if>
     </where>
      group by t.new_mat_name
    <if test="forwardingUnitName != null and forwardingUnitName != '' ">
      ,t.FORWARDING_UNIT_NAME
    </if>
    <if test="newSupplier != null and newSupplier != ''">
      ,t.new_supplier
    </if>
    <if test="receivingUintName != null and receivingUintName != ''  ">
      ,t.RECEIVING_UINT_NAME
    </if>
    <if test="shipNo != null and shipNo != '' ">
      ,t.SHIP_NO
    </if>
    <if test="baseSpotName != null and baseSpotName != '' ">
      ,t.BASE_SPOT_NAME
    </if>
    <if test="unloadSite != null and unloadSite != '' ">
      ,t.UNLOAD_SITE
    </if>
    <if test="orderNo != null and orderNo != '' ">
      ,t.ORDER_NO
    </if>
  </select>
  <select id="doQueryActualInfoFlags" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    SELECT <include refid="columns"/> from METER_WORK_BELT_SCALE_ACTUAL
    <where>
      <if test="actualNo != null and actualNo != ''">
        and ACTUAL_NO = #{actualNo}
      </if>
      <if test="predictionNo != null and predictionNo != ''">
        and PREDICTION_NO = #{predictionNo}
      </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="valueFlag != null and valueFlag != '' and valueFlag !='9'.toString() ">
        and VALUE_FLAG = #{valueFlag}
      </if>
      <if test="valueFlag != null and valueFlag != '' and valueFlag =='9'.toString()">
        and VALUE_FLAG in ('0','1')
      </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="productNo != null and productNo != ''">
        and PRODUCT_NO = #{productNo}
      </if>
      <if test="productName != null and productName != ''">
        and PRODUCT_NAME = #{productName}
      </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="productDate != null">
        and TO_CHAR(PRODUCT_DATE,'yyyy-MM-dd') = #{productDate}
      </if>
      <if test="weightType != null and weightType != ''">
        and WEIGHT_TYPE = #{weightType}
      </if>
      <if test="checkFlag != null and checkFlag != '' and checkFlag !='9'.toString() ">
        and CHECK_FLAG = #{checkFlag}
      </if>
      <if test="checkFlag != null and checkFlag != '' and checkFlag =='9'.toString()">
        and CHECK_FLAG in ('0','1')
      </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="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="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 CHECK_TIME between TO_DATE(#{startTime},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime},'yyyy-MM-dd HH24:mi:ss')
      </if>
      <if test="startTime != null">
        and START_TIME between TO_DATE(#{startTime},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime},'yyyy-MM-dd HH24:mi:ss')
      </if>
<!--      <if test="endTime != null">
        and END_TIME between TO_DATE(#{startTime},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime},'yyyy-MM-dd HH24:mi:ss')
      </if>-->
      <if test="scaleName != null and scaleName != ''">
        and SCALE_NAME = #{scaleName}
      </if>
      <if test="overstock != null">
        and TO_CHAR(OVERSTOCK,'yyyy-MM-dd') = #{overstock}
      </if>
      <if test="unloadSite != null and unloadSite != ''">
        and UNLOAD_SITE = #{unloadSite}
      </if>
      <if test="shipNo != null and shipNo != ''">
        and SHIP_NO = #{shipNo}
      </if>
      <if test="unloadWharf != null and unloadWharf != ''">
        and UNLOAD_WHARF = #{unloadWharf}
      </if>
      <if test="newMatName != null and newMatName != ''">
        and new_mat_name = #{newMatName,jdbcType=VARCHAR}
      </if>
      <if test="newGg != null and newGg != ''">
        and new_gg = #{newGg,jdbcType=VARCHAR}
      </if>
      <if test="newHlh != null and newHlh != ''">
        and new_hlh =#{newHlh,jdbcType=VARCHAR}
      </if>
      <if test="newSupplier != null and newSupplier != ''">
        and new_supplier =#{newSupplier,jdbcType=VARCHAR}
      </if>
    </where>
    order by CREATE_TIME desc
  </select>
  <select id="doQueryAndMultiple" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    SELECT <include refid="columns"/> from METER_WORK_BELT_SCALE_ACTUAL
    where  1=1
    <if test="checkTime != null">
      and CHECK_TIME between TO_DATE(#{startTime1},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime1},'yyyy-MM-dd HH24:mi:ss')
    </if>
    <if test="startTime != null">
      and START_TIME between TO_DATE(#{startTime1},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime1},'yyyy-MM-dd HH24:mi:ss')
    </if>
    <if test="endTime != null">
      and END_TIME between TO_DATE(#{startTime1},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime1},'yyyy-MM-dd HH24:mi:ss')
    </if>
    <if test="baseSpotName != null and baseSpotName != ''">
      and BASE_SPOT_NAME = #{baseSpotName}
    </if>
    <if test="baseSpotNo != null and baseSpotNo != ''">
      and BASE_SPOT_NO = #{baseSpotNo}
    </if>
    <if test="valueFlag != null and valueFlag != '' and valueFlag !='9'.toString() ">
      and VALUE_FLAG = #{valueFlag}
    </if>
    <if test="valueFlag != null and valueFlag != '' and valueFlag =='9'.toString()">
      and VALUE_FLAG in ('0','1')
    </if>
    <if test="checkFlag != null and checkFlag != '' and checkFlag !='9'.toString() ">
      and CHECK_FLAG = #{checkFlag}
    </if>
    <if test="valueFlag != null and checkFlag != '' and checkFlag =='9'.toString()">
      and CHECK_FLAG in ('0','1')
    </if>
    <if test="scaleName != null and scaleName != ''">
      and SCALE_NAME = #{scaleName}
    </if>
    <if test="productName != null and productName != ''">
      and PRODUCT_NAME LIKE '%${productName}%'
    </if>
    <if test="forwardingUnitName != null and forwardingUnitName != ''">
      and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
    </if>
    <if test="receivingUintName != null and receivingUintName != ''">
      and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
    </if>
    <if test="shipNo != null and shipNo != ''">
      and SHIP_NO LIKE '%${shipNo}%'
    </if>
    <if test="unloadSite != null and unloadSite != ''">
      and UNLOAD_SITE like '%{unloadSite}%'
    </if>
    <if test="newMatName != null and newMatName != ''">
      and new_mat_name LIKE '%${newMatName}%'
    </if>
    <if test="newGg != null and newGg != ''">
      and new_gg LIKE '%${newGg}%'
    </if>
    <if test="newHlh != null and newHlh != ''">
      and new_hlh LIKE '%${newHlh}%'
    </if>
    <if test="newSupplier != null and newSupplier != ''">
      and new_supplier LIKE '%${newSupplier}%'
    </if>
    <if test="orderNo != null and orderNo != ''">
      and ORDER_NO = #{orderNo}
    </if>
    order by CREATE_TIME desc
  </select>
  <update id="doUpdateFlags_0" parameterType="java.util.List">
    update  METER_WORK_BELT_SCALE_ACTUAL
    set VALUE_FLAG = '0'
    where ACTUAL_NO in
    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
  </update>
  <update id="doUpdateFlags_1" parameterType="java.util.List">
    update  METER_WORK_BELT_SCALE_ACTUAL
    set VALUE_FLAG = '1'
    where ACTUAL_NO in
    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
  </update>
  <update id="doUpdateCheckFlags_0" parameterType="java.util.List">
    update  METER_WORK_BELT_SCALE_ACTUAL
    set CHECK_FLAG = '0'
    ,CHECK_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
    </foreach>
    where ACTUAL_NO in
    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
  </update>
  <update id="doUpdateCheckFlags_1" parameterType="java.util.List">
    update  METER_WORK_BELT_SCALE_ACTUAL
    set CHECK_FLAG = '1'
    ,CHECK_MAN_NO=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_MAN_NAME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
    </foreach>
    ,CHECK_TIME=
    <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
      when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
    </foreach>
    where ACTUAL_NO in
    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      #{item.actualNo,jdbcType=VARCHAR}
    </foreach>
  </update>
  <select id="doQueryMaxPno" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    SELECT max(print_no) print_no from METER_WORK_BELT_SCALE_ACTUAL
    <where>
      <if test="printNo != null and printNo != ''">
        and PRINT_NO like  '%${printNo}%'
      </if>
      <if test="checkFlag != null and checkFlag != ''">
        and CHECK_FLAG = #{checkFlag}
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        and VALUE_FLAG = #{valueFlag}
      </if>
    </where>

  </select>
</mapper>