<?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.appservice.appcmmcarweightresults.mapper.AppCmmCarweightresultsMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.appservice.appcmmcarweightresults.model.AppCmmCarweightresults">
    <id column="WGT_NO" jdbcType="VARCHAR" property="wgtNo" />
    <result column="BILLNO" jdbcType="VARCHAR" property="billno" />
    <result column="TRU_NO" jdbcType="VARCHAR" property="truNo" />
    <result column="LGS_NO" jdbcType="VARCHAR" property="lgsNo" />
    <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
    <result column="ICD_NO" jdbcType="VARCHAR" property="icdNo" />
    <result column="GRS_BOX_NO" jdbcType="DECIMAL" property="grsBoxNo" />
    <result column="TAR_BOX_NO" jdbcType="DECIMAL" property="tarBoxNo" />
    <result column="GRS_SPD" jdbcType="DECIMAL" property="grsSpd" />
    <result column="TAR_SPD" jdbcType="DECIMAL" property="tarSpd" />
    <result column="TRN_TYPE" jdbcType="VARCHAR" property="trnType" />
    <result column="GRS_VDO_FILE" jdbcType="VARCHAR" property="grsVdoFile" />
    <result column="TAR_VDO_FILE" jdbcType="VARCHAR" property="tarVdoFile" />
    <result column="GRS_TRN_NO" jdbcType="VARCHAR" property="grsTrnNo" />
    <result column="TAR_TRN_NO" jdbcType="VARCHAR" property="tarTrnNo" />
    <result column="WGT_TYPE" jdbcType="VARCHAR" property="wgtType" />
    <result column="GRS_WGT" jdbcType="DECIMAL" property="grsWgt" />
    <result column="TAR_WGT" jdbcType="DECIMAL" property="tarWgt" />
    <result column="NET_WGT" jdbcType="DECIMAL" property="netWgt" />
    <result column="NO2_WGT" jdbcType="DECIMAL" property="no2Wgt" />
    <result column="GRS_WGT_NO" jdbcType="VARCHAR" property="grsWgtNo" />
    <result column="TAR_WGT_NO" jdbcType="VARCHAR" property="tarWgtNo" />
    <result column="TAR_TYPE" jdbcType="CHAR" property="tarType" />
    <result column="TAR_INF_MODE" jdbcType="CHAR" property="tarInfMode" />
    <result column="GRS_INF_MODE" jdbcType="CHAR" property="grsInfMode" />
    <result column="NET_INF_MODE" jdbcType="CHAR" property="netInfMode" />
    <result column="GRS_TIME" jdbcType="TIMESTAMP" property="grsTime" />
    <result column="TAR_TIME" jdbcType="TIMESTAMP" property="tarTime" />
    <result column="NET_TIME" jdbcType="TIMESTAMP" property="netTime" />
    <result column="GRS_WRK_ORD" jdbcType="VARCHAR" property="grsWrkOrd" />
    <result column="TAR_WRK_ORD" jdbcType="VARCHAR" property="tarWrkOrd" />
    <result column="NET_WRK_ORD" jdbcType="VARCHAR" property="netWrkOrd" />
    <result column="GRS_WRK_GRP" jdbcType="VARCHAR" property="grsWrkGrp" />
    <result column="TAR_WRK_GRP" jdbcType="VARCHAR" property="tarWrkGrp" />
    <result column="NET_WRK_GRP" jdbcType="VARCHAR" property="netWrkGrp" />
    <result column="GRS_OPR" jdbcType="VARCHAR" property="grsOpr" />
    <result column="TAR_OPR" jdbcType="VARCHAR" property="tarOpr" />
    <result column="NET_OPR" jdbcType="VARCHAR" property="netOpr" />
    <result column="GRS_PNT_NAME" jdbcType="VARCHAR" property="grsPntName" />
    <result column="TAR_PNT_NAME" jdbcType="VARCHAR" property="tarPntName" />
    <result column="NET_PNT_NAME" jdbcType="VARCHAR" property="netPntName" />
    <result column="GRS_PNT_NO" jdbcType="VARCHAR" property="grsPntNo" />
    <result column="TAR_PNT_NO" jdbcType="VARCHAR" property="tarPntNo" />
    <result column="NET_PNT_NO" jdbcType="VARCHAR" property="netPntNo" />
    <result column="NOTE" jdbcType="VARCHAR" property="note" />
    <result column="SDR_TYPE" jdbcType="VARCHAR" property="sdrType" />
    <result column="SDR_NAME" jdbcType="VARCHAR" property="sdrName" />
    <result column="SENDER" jdbcType="VARCHAR" property="sender" />
    <result column="SDR_NOTE" jdbcType="VARCHAR" property="sdrNote" />
    <result column="RCV_TYPE" jdbcType="VARCHAR" property="rcvType" />
    <result column="RCV_NAME" jdbcType="VARCHAR" property="rcvName" />
    <result column="RECEIVER" jdbcType="VARCHAR" property="receiver" />
    <result column="RCV_NOTE" jdbcType="VARCHAR" property="rcvNote" />
    <result column="MAT_NAME" jdbcType="VARCHAR" property="matName" />
    <result column="MAT_CODE" jdbcType="VARCHAR" property="matCode" />
    <result column="B1_PRN_NUM" jdbcType="DECIMAL" property="b1PrnNum" />
    <result column="B2_PRN_NUM" jdbcType="DECIMAL" property="b2PrnNum" />
    <result column="B1_PRN_NUM_2" jdbcType="DECIMAL" property="b1PrnNum2" />
    <result column="UPL_FLG" jdbcType="VARCHAR" property="uplFlg" />
    <result column="UPL_TIME" jdbcType="TIMESTAMP" property="uplTime" />
    <result column="DEL_FLG" jdbcType="VARCHAR" property="delFlg" />
    <result column="EXT_BOX" jdbcType="CHAR" property="extBox" />
    <result column="SDR_GRS_WGT" jdbcType="DECIMAL" property="sdrGrsWgt" />
    <result column="SDR_TAR_WGT" jdbcType="DECIMAL" property="sdrTarWgt" />
    <result column="SDR_NET_WGT" jdbcType="DECIMAL" property="sdrNetWgt" />
    <result column="DIS_WGT" jdbcType="DECIMAL" property="disWgt" />
    <result column="DIS_RATIO" jdbcType="DECIMAL" property="disRatio" />
    <result column="NET_END" jdbcType="DECIMAL" property="netEnd" />
    <result column="NO1_WGT_MODE" jdbcType="VARCHAR" property="no1WgtMode" />
    <result column="NO2_WGT_MODE" jdbcType="VARCHAR" property="no2WgtMode" />
    <result column="RFID_NO" jdbcType="VARCHAR" property="rfidNo" />
    <result column="CHK_FLG" jdbcType="VARCHAR" property="chkFlg" />
    <result column="CHECKER" jdbcType="VARCHAR" property="checker" />
    <result column="CHK_TIME" jdbcType="TIMESTAMP" property="chkTime" />
    <result column="CHM_PER" jdbcType="VARCHAR" property="chmPer" />
    <result column="CHM_TIME" jdbcType="TIMESTAMP" property="chmTime" />
    <result column="CHM_TYPE" jdbcType="VARCHAR" property="chmType" />
    <result column="TRANSPORT" jdbcType="VARCHAR" property="transport" />
    <result column="TRANS_NAME" jdbcType="VARCHAR" property="transName" />
    <result column="GRS_WGT_CURVE" jdbcType="VARCHAR" property="grsWgtCurve" />
    <result column="TAR_WGT_CURVE" jdbcType="VARCHAR" property="tarWgtCurve" />
    <result column="DIS_OPR" jdbcType="VARCHAR" property="disOpr" />
    <result column="DIS_TIME" jdbcType="TIMESTAMP" property="disTime" />
    <result column="FD_UPFLG" jdbcType="VARCHAR" property="fdUpflg" />
    <result column="CH_UP" jdbcType="VARCHAR" property="chUp" />
    <result column="CH_OPR" jdbcType="VARCHAR" property="chOpr" />
    <result column="CH_TIME" jdbcType="TIMESTAMP" property="chTime" />
    <result column="TD_NO" jdbcType="VARCHAR" property="tdNo" />
    <result column="TD_WGT" jdbcType="DECIMAL" property="tdWgt" />
    <result column="DD_NO" jdbcType="VARCHAR" property="ddNo" />
  </resultMap>
  <sql id="columns">
    WGT_NO, BILLNO, TRU_NO, LGS_NO, CAR_NO, ICD_NO, GRS_BOX_NO, TAR_BOX_NO, GRS_SPD, 
    TAR_SPD, TRN_TYPE, GRS_VDO_FILE, TAR_VDO_FILE, GRS_TRN_NO, TAR_TRN_NO, WGT_TYPE, 
    GRS_WGT, TAR_WGT, NET_WGT, NO2_WGT, GRS_WGT_NO, TAR_WGT_NO, TAR_TYPE, TAR_INF_MODE, 
    GRS_INF_MODE, NET_INF_MODE, GRS_TIME, TAR_TIME, NET_TIME, GRS_WRK_ORD, TAR_WRK_ORD, 
    NET_WRK_ORD, GRS_WRK_GRP, TAR_WRK_GRP, NET_WRK_GRP, GRS_OPR, TAR_OPR, NET_OPR, GRS_PNT_NAME, 
    TAR_PNT_NAME, NET_PNT_NAME, GRS_PNT_NO, TAR_PNT_NO, NET_PNT_NO, NOTE, SDR_TYPE, SDR_NAME, 
    SENDER, SDR_NOTE, RCV_TYPE, RCV_NAME, RECEIVER, RCV_NOTE, MAT_NAME, MAT_CODE, B1_PRN_NUM, 
    B2_PRN_NUM, B1_PRN_NUM_2, UPL_FLG, UPL_TIME, DEL_FLG, EXT_BOX, SDR_GRS_WGT, SDR_TAR_WGT, 
    SDR_NET_WGT, DIS_WGT, DIS_RATIO, NET_END, NO1_WGT_MODE, NO2_WGT_MODE, RFID_NO, CHK_FLG, 
    CHECKER, CHK_TIME, CHM_PER, CHM_TIME, CHM_TYPE, TRANSPORT, TRANS_NAME, GRS_WGT_CURVE, 
    TAR_WGT_CURVE, DIS_OPR, DIS_TIME, FD_UPFLG, CH_UP, CH_OPR, CH_TIME, TD_NO, TD_WGT, 
    DD_NO
  </sql>
  <sql id="columns_alias">
    t.WGT_NO, t.BILLNO, t.TRU_NO, t.LGS_NO, t.CAR_NO, t.ICD_NO, t.GRS_BOX_NO, t.TAR_BOX_NO, 
    t.GRS_SPD, t.TAR_SPD, t.TRN_TYPE, t.GRS_VDO_FILE, t.TAR_VDO_FILE, t.GRS_TRN_NO, t.TAR_TRN_NO, 
    t.WGT_TYPE, t.GRS_WGT, t.TAR_WGT, t.NET_WGT, t.NO2_WGT, t.GRS_WGT_NO, t.TAR_WGT_NO, 
    t.TAR_TYPE, t.TAR_INF_MODE, t.GRS_INF_MODE, t.NET_INF_MODE, t.GRS_TIME, t.TAR_TIME, 
    t.NET_TIME, t.GRS_WRK_ORD, t.TAR_WRK_ORD, t.NET_WRK_ORD, t.GRS_WRK_GRP, t.TAR_WRK_GRP, 
    t.NET_WRK_GRP, t.GRS_OPR, t.TAR_OPR, t.NET_OPR, t.GRS_PNT_NAME, t.TAR_PNT_NAME, t.NET_PNT_NAME, 
    t.GRS_PNT_NO, t.TAR_PNT_NO, t.NET_PNT_NO, t.NOTE, t.SDR_TYPE, t.SDR_NAME, t.SENDER, 
    t.SDR_NOTE, t.RCV_TYPE, t.RCV_NAME, t.RECEIVER, t.RCV_NOTE, t.MAT_NAME, t.MAT_CODE, 
    t.B1_PRN_NUM, t.B2_PRN_NUM, t.B1_PRN_NUM_2, t.UPL_FLG, t.UPL_TIME, t.DEL_FLG, t.EXT_BOX, 
    t.SDR_GRS_WGT, t.SDR_TAR_WGT, t.SDR_NET_WGT, t.DIS_WGT, t.DIS_RATIO, t.NET_END, t.NO1_WGT_MODE, 
    t.NO2_WGT_MODE, t.RFID_NO, t.CHK_FLG, t.CHECKER, t.CHK_TIME, t.CHM_PER, t.CHM_TIME, 
    t.CHM_TYPE, t.TRANSPORT, t.TRANS_NAME, t.GRS_WGT_CURVE, t.TAR_WGT_CURVE, t.DIS_OPR, 
    t.DIS_TIME, t.FD_UPFLG, t.CH_UP, t.CH_OPR, t.CH_TIME, t.TD_NO, t.TD_WGT, t.DD_NO
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS  t
  </sql>
  <sql id="where">
    <where> 
      <if test="wgtNo != null and wgtNo != ''">
        and WGT_NO = #{wgtNo}
      </if>
      <if test="billno != null and billno != ''">
        and BILLNO = #{billno}
      </if>
      <if test="truNo != null and truNo != ''">
        and TRU_NO = #{truNo}
      </if>
      <if test="lgsNo != null and lgsNo != ''">
        and LGS_NO = #{lgsNo}
      </if>
      <if test="carNo != null and carNo != ''">
        and CAR_NO = #{carNo}
      </if>
      <if test="icdNo != null and icdNo != ''">
        and ICD_NO = #{icdNo}
      </if>
      <if test="grsBoxNo != null">
        and GRS_BOX_NO = #{grsBoxNo}
      </if>
      <if test="tarBoxNo != null">
        and TAR_BOX_NO = #{tarBoxNo}
      </if>
      <if test="grsSpd != null">
        and GRS_SPD = #{grsSpd}
      </if>
      <if test="tarSpd != null">
        and TAR_SPD = #{tarSpd}
      </if>
      <if test="trnType != null and trnType != ''">
        and TRN_TYPE = #{trnType}
      </if>
      <if test="grsVdoFile != null and grsVdoFile != ''">
        and GRS_VDO_FILE = #{grsVdoFile}
      </if>
      <if test="tarVdoFile != null and tarVdoFile != ''">
        and TAR_VDO_FILE = #{tarVdoFile}
      </if>
      <if test="grsTrnNo != null and grsTrnNo != ''">
        and GRS_TRN_NO = #{grsTrnNo}
      </if>
      <if test="tarTrnNo != null and tarTrnNo != ''">
        and TAR_TRN_NO = #{tarTrnNo}
      </if>
      <if test="wgtType != null and wgtType != ''">
        and WGT_TYPE = #{wgtType}
      </if>
      <if test="grsWgt != null">
        and GRS_WGT = #{grsWgt}
      </if>
      <if test="tarWgt != null">
        and TAR_WGT = #{tarWgt}
      </if>
      <if test="netWgt != null">
        and NET_WGT = #{netWgt}
      </if>
      <if test="no2Wgt != null">
        and NO2_WGT = #{no2Wgt}
      </if>
      <if test="grsWgtNo != null and grsWgtNo != ''">
        and GRS_WGT_NO = #{grsWgtNo}
      </if>
      <if test="tarWgtNo != null and tarWgtNo != ''">
        and TAR_WGT_NO = #{tarWgtNo}
      </if>
      <if test="tarType != null">
        and TAR_TYPE = #{tarType}
      </if>
      <if test="tarInfMode != null">
        and TAR_INF_MODE = #{tarInfMode}
      </if>
      <if test="grsInfMode != null">
        and GRS_INF_MODE = #{grsInfMode}
      </if>
      <if test="netInfMode != null">
        and NET_INF_MODE = #{netInfMode}
      </if>
      <if test="grsTime != null">
        and TO_CHAR(GRS_TIME,'yyyy-MM-dd') = #{grsTime}
      </if>
      <if test="tarTime != null">
        and TO_CHAR(TAR_TIME,'yyyy-MM-dd') = #{tarTime}
      </if>
      <if test="netTime != null">
        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
      </if>
      <if test="grsWrkOrd != null and grsWrkOrd != ''">
        and GRS_WRK_ORD = #{grsWrkOrd}
      </if>
      <if test="tarWrkOrd != null and tarWrkOrd != ''">
        and TAR_WRK_ORD = #{tarWrkOrd}
      </if>
      <if test="netWrkOrd != null and netWrkOrd != ''">
        and NET_WRK_ORD = #{netWrkOrd}
      </if>
      <if test="grsWrkGrp != null and grsWrkGrp != ''">
        and GRS_WRK_GRP = #{grsWrkGrp}
      </if>
      <if test="tarWrkGrp != null and tarWrkGrp != ''">
        and TAR_WRK_GRP = #{tarWrkGrp}
      </if>
      <if test="netWrkGrp != null and netWrkGrp != ''">
        and NET_WRK_GRP = #{netWrkGrp}
      </if>
      <if test="grsOpr != null and grsOpr != ''">
        and GRS_OPR = #{grsOpr}
      </if>
      <if test="tarOpr != null and tarOpr != ''">
        and TAR_OPR = #{tarOpr}
      </if>
      <if test="netOpr != null and netOpr != ''">
        and NET_OPR = #{netOpr}
      </if>
      <if test="grsPntName != null and grsPntName != ''">
        and GRS_PNT_NAME = #{grsPntName}
      </if>
      <if test="tarPntName != null and tarPntName != ''">
        and TAR_PNT_NAME = #{tarPntName}
      </if>
      <if test="netPntName != null and netPntName != ''">
        and NET_PNT_NAME = #{netPntName}
      </if>
      <if test="grsPntNo != null and grsPntNo != ''">
        and GRS_PNT_NO = #{grsPntNo}
      </if>
      <if test="tarPntNo != null and tarPntNo != ''">
        and TAR_PNT_NO = #{tarPntNo}
      </if>
      <if test="netPntNo != null and netPntNo != ''">
        and NET_PNT_NO = #{netPntNo}
      </if>
      <if test="note != null and note != ''">
        and (SDR_NAME = #{note} or RCV_NAME = #{note})
      </if>
      <if test="sdrType != null and sdrType != ''">
        and SDR_TYPE = #{sdrType}
      </if>
      <if test="sdrName != null and sdrName != ''">
        and SDR_NAME = #{sdrName}
      </if>
      <if test="sender != null and sender != ''">
        and SENDER = #{sender}
      </if>
      <if test="sdrNote != null and sdrNote != ''">
        and SDR_NOTE = #{sdrNote}
      </if>
      <if test="rcvType != null and rcvType != ''">
        and RCV_TYPE = #{rcvType}
      </if>
      <if test="rcvName != null and rcvName != ''">
        and RCV_NAME = #{rcvName}
      </if>
      <if test="receiver != null and receiver != ''">
        and RECEIVER = #{receiver}
      </if>
      <if test="rcvNote != null and rcvNote != ''">
        and RCV_NOTE = #{rcvNote}
      </if>
      <if test="matName != null and matName != ''">
        and MAT_NAME = #{matName}
      </if>
      <if test="matCode != null and matCode != ''">
        and MAT_CODE = #{matCode}
      </if>
      <if test="b1PrnNum != null">
        and B1_PRN_NUM = #{b1PrnNum}
      </if>
      <if test="b2PrnNum != null">
        and B2_PRN_NUM = #{b2PrnNum}
      </if>
      <if test="b1PrnNum2 != null">
        and B1_PRN_NUM_2 = #{b1PrnNum2}
      </if>
      <if test="uplFlg != null and uplFlg != ''">
        and UPL_FLG = #{uplFlg}
      </if>
      <if test="uplTime != null">
        and TO_CHAR(UPL_TIME,'yyyy-MM-dd') = #{uplTime}
      </if>
      <if test="delFlg != null and delFlg != ''">
        and DEL_FLG = #{delFlg}
      </if>
      <if test="extBox != null">
        and EXT_BOX = #{extBox}
      </if>
      <if test="sdrGrsWgt != null">
        and SDR_GRS_WGT = #{sdrGrsWgt}
      </if>
      <if test="sdrTarWgt != null">
        and SDR_TAR_WGT = #{sdrTarWgt}
      </if>
      <if test="sdrNetWgt != null">
        and SDR_NET_WGT = #{sdrNetWgt}
      </if>
      <if test="disWgt != null">
        and DIS_WGT = #{disWgt}
      </if>
      <if test="disRatio != null">
        and DIS_RATIO = #{disRatio}
      </if>
      <if test="netEnd != null">
        and NET_END = #{netEnd}
      </if>
      <if test="no1WgtMode != null and no1WgtMode != ''">
        and NO1_WGT_MODE = #{no1WgtMode}
      </if>
      <if test="no2WgtMode != null and no2WgtMode != ''">
        and NO2_WGT_MODE = #{no2WgtMode}
      </if>
      <if test="rfidNo != null and rfidNo != ''">
        and RFID_NO = #{rfidNo}
      </if>
      <if test="chkFlg != null and chkFlg != ''">
        and CHK_FLG = #{chkFlg}
      </if>
      <if test="checker != null and checker != ''">
        and CHECKER = #{checker}
      </if>
      <if test="chkTime != null">
        and TO_CHAR(CHK_TIME,'yyyy-MM-dd') = #{chkTime}
      </if>
      <if test="chmPer != null and chmPer != ''">
        and CHM_PER = #{chmPer}
      </if>
      <if test="chmTime != null">
        and TO_CHAR(CHM_TIME,'yyyy-MM-dd') = #{chmTime}
      </if>
      <if test="chmType != null and chmType != ''">
        and CHM_TYPE = #{chmType}
      </if>
      <if test="transport != null and transport != ''">
        and TRANSPORT = #{transport}
      </if>
      <if test="transName != null and transName != ''">
        and TRANS_NAME = #{transName}
      </if>
      <if test="grsWgtCurve != null and grsWgtCurve != ''">
        and GRS_WGT_CURVE = #{grsWgtCurve}
      </if>
      <if test="tarWgtCurve != null and tarWgtCurve != ''">
        and TAR_WGT_CURVE = #{tarWgtCurve}
      </if>
      <if test="disOpr != null and disOpr != ''">
        and DIS_OPR = #{disOpr}
      </if>
      <if test="disTime != null">
        and TO_CHAR(DIS_TIME,'yyyy-MM-dd') = #{disTime}
      </if>
      <if test="fdUpflg != null and fdUpflg != ''">
        and FD_UPFLG = #{fdUpflg}
      </if>
      <if test="chUp != null and chUp != ''">
        and CH_UP = #{chUp}
      </if>
      <if test="chOpr != null and chOpr != ''">
        and CH_OPR = #{chOpr}
      </if>
      <if test="chTime != null">
        and TO_CHAR(CH_TIME,'yyyy-MM-dd') = #{chTime}
      </if>
      <if test="tdNo != null and tdNo != ''">
        and TD_NO = #{tdNo}
      </if>
      <if test="tdWgt != null">
        and TD_WGT = #{tdWgt}
      </if>
      <if test="ddNo != null and ddNo != ''">
        and DD_NO = #{ddNo}
      </if>
      <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
        and TO_CHAR(NET_TIME,'yyyy-MM-dd HH24:mi:ss') >= #{startTime} and TO_CHAR(NET_TIME,'yyyy-MM-dd HH24:mi:ss') &lt;= #{endTime}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="wgtNo != null and wgtNo != ''">
        and WGT_NO LIKE '%${wgtNo}%'
      </if>
      <if test="billno != null and billno != ''">
        and BILLNO LIKE '%${billno}%'
      </if>
      <if test="truNo != null and truNo != ''">
        and TRU_NO LIKE '%${truNo}%'
      </if>
      <if test="lgsNo != null and lgsNo != ''">
        and LGS_NO LIKE '%${lgsNo}%'
      </if>
      <if test="carNo != null and carNo != ''">
        and CAR_NO LIKE '%${carNo}%'
      </if>
      <if test="icdNo != null and icdNo != ''">
        and ICD_NO LIKE '%${icdNo}%'
      </if>
      <if test="grsBoxNo != null">
        and GRS_BOX_NO = #{grsBoxNo}
      </if>
      <if test="tarBoxNo != null">
        and TAR_BOX_NO = #{tarBoxNo}
      </if>
      <if test="grsSpd != null">
        and GRS_SPD = #{grsSpd}
      </if>
      <if test="tarSpd != null">
        and TAR_SPD = #{tarSpd}
      </if>
      <if test="trnType != null and trnType != ''">
        and TRN_TYPE LIKE '%${trnType}%'
      </if>
      <if test="grsVdoFile != null and grsVdoFile != ''">
        and GRS_VDO_FILE LIKE '%${grsVdoFile}%'
      </if>
      <if test="tarVdoFile != null and tarVdoFile != ''">
        and TAR_VDO_FILE LIKE '%${tarVdoFile}%'
      </if>
      <if test="grsTrnNo != null and grsTrnNo != ''">
        and GRS_TRN_NO LIKE '%${grsTrnNo}%'
      </if>
      <if test="tarTrnNo != null and tarTrnNo != ''">
        and TAR_TRN_NO LIKE '%${tarTrnNo}%'
      </if>
      <if test="wgtType != null and wgtType != ''">
        and WGT_TYPE LIKE '%${wgtType}%'
      </if>
      <if test="grsWgt != null">
        and GRS_WGT = #{grsWgt}
      </if>
      <if test="tarWgt != null">
        and TAR_WGT = #{tarWgt}
      </if>
      <if test="netWgt != null">
        and NET_WGT = #{netWgt}
      </if>
      <if test="no2Wgt != null">
        and NO2_WGT = #{no2Wgt}
      </if>
      <if test="grsWgtNo != null and grsWgtNo != ''">
        and GRS_WGT_NO LIKE '%${grsWgtNo}%'
      </if>
      <if test="tarWgtNo != null and tarWgtNo != ''">
        and TAR_WGT_NO LIKE '%${tarWgtNo}%'
      </if>
      <if test="tarType != null">
        and TAR_TYPE = #{tarType}
      </if>
      <if test="tarInfMode != null">
        and TAR_INF_MODE = #{tarInfMode}
      </if>
      <if test="grsInfMode != null">
        and GRS_INF_MODE = #{grsInfMode}
      </if>
      <if test="netInfMode != null">
        and NET_INF_MODE = #{netInfMode}
      </if>
      <if test="grsTime != null">
        and TO_CHAR(GRS_TIME,'yyyy-MM-dd') = #{grsTime}
      </if>
      <if test="tarTime != null">
        and TO_CHAR(TAR_TIME,'yyyy-MM-dd') = #{tarTime}
      </if>
      <if test="netTime != null">
        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
      </if>
      <if test="grsWrkOrd != null and grsWrkOrd != ''">
        and GRS_WRK_ORD LIKE '%${grsWrkOrd}%'
      </if>
      <if test="tarWrkOrd != null and tarWrkOrd != ''">
        and TAR_WRK_ORD LIKE '%${tarWrkOrd}%'
      </if>
      <if test="netWrkOrd != null and netWrkOrd != ''">
        and NET_WRK_ORD LIKE '%${netWrkOrd}%'
      </if>
      <if test="grsWrkGrp != null and grsWrkGrp != ''">
        and GRS_WRK_GRP LIKE '%${grsWrkGrp}%'
      </if>
      <if test="tarWrkGrp != null and tarWrkGrp != ''">
        and TAR_WRK_GRP LIKE '%${tarWrkGrp}%'
      </if>
      <if test="netWrkGrp != null and netWrkGrp != ''">
        and NET_WRK_GRP LIKE '%${netWrkGrp}%'
      </if>
      <if test="grsOpr != null and grsOpr != ''">
        and GRS_OPR LIKE '%${grsOpr}%'
      </if>
      <if test="tarOpr != null and tarOpr != ''">
        and TAR_OPR LIKE '%${tarOpr}%'
      </if>
      <if test="netOpr != null and netOpr != ''">
        and NET_OPR LIKE '%${netOpr}%'
      </if>
      <if test="grsPntName != null and grsPntName != ''">
        and GRS_PNT_NAME LIKE '%${grsPntName}%'
      </if>
      <if test="tarPntName != null and tarPntName != ''">
        and TAR_PNT_NAME LIKE '%${tarPntName}%'
      </if>
      <if test="netPntName != null and netPntName != ''">
        and NET_PNT_NAME LIKE '%${netPntName}%'
      </if>
      <if test="grsPntNo != null and grsPntNo != ''">
        and GRS_PNT_NO LIKE '%${grsPntNo}%'
      </if>
      <if test="tarPntNo != null and tarPntNo != ''">
        and TAR_PNT_NO LIKE '%${tarPntNo}%'
      </if>
      <if test="netPntNo != null and netPntNo != ''">
        and NET_PNT_NO LIKE '%${netPntNo}%'
      </if>
      <if test="note != null and note != ''">
        and NOTE LIKE '%${note}%'
      </if>
      <if test="sdrType != null and sdrType != ''">
        and SDR_TYPE LIKE '%${sdrType}%'
      </if>
      <if test="sdrName != null and sdrName != ''">
        and SDR_NAME LIKE '%${sdrName}%'
      </if>
      <if test="sender != null and sender != ''">
        and SENDER LIKE '%${sender}%'
      </if>
      <if test="sdrNote != null and sdrNote != ''">
        and SDR_NOTE LIKE '%${sdrNote}%'
      </if>
      <if test="rcvType != null and rcvType != ''">
        and RCV_TYPE LIKE '%${rcvType}%'
      </if>
      <if test="rcvName != null and rcvName != ''">
        and RCV_NAME LIKE '%${rcvName}%'
      </if>
      <if test="receiver != null and receiver != ''">
        and RECEIVER LIKE '%${receiver}%'
      </if>
      <if test="rcvNote != null and rcvNote != ''">
        and RCV_NOTE LIKE '%${rcvNote}%'
      </if>
      <if test="matName != null and matName != ''">
        and MAT_NAME LIKE '%${matName}%'
      </if>
      <if test="matCode != null and matCode != ''">
        and MAT_CODE LIKE '%${matCode}%'
      </if>
      <if test="b1PrnNum != null">
        and B1_PRN_NUM = #{b1PrnNum}
      </if>
      <if test="b2PrnNum != null">
        and B2_PRN_NUM = #{b2PrnNum}
      </if>
      <if test="b1PrnNum2 != null">
        and B1_PRN_NUM_2 = #{b1PrnNum2}
      </if>
      <if test="uplFlg != null and uplFlg != ''">
        and UPL_FLG LIKE '%${uplFlg}%'
      </if>
      <if test="uplTime != null">
        and TO_CHAR(UPL_TIME,'yyyy-MM-dd') = #{uplTime}
      </if>
      <if test="delFlg != null and delFlg != ''">
        and DEL_FLG LIKE '%${delFlg}%'
      </if>
      <if test="extBox != null">
        and EXT_BOX = #{extBox}
      </if>
      <if test="sdrGrsWgt != null">
        and SDR_GRS_WGT = #{sdrGrsWgt}
      </if>
      <if test="sdrTarWgt != null">
        and SDR_TAR_WGT = #{sdrTarWgt}
      </if>
      <if test="sdrNetWgt != null">
        and SDR_NET_WGT = #{sdrNetWgt}
      </if>
      <if test="disWgt != null">
        and DIS_WGT = #{disWgt}
      </if>
      <if test="disRatio != null">
        and DIS_RATIO = #{disRatio}
      </if>
      <if test="netEnd != null">
        and NET_END = #{netEnd}
      </if>
      <if test="no1WgtMode != null and no1WgtMode != ''">
        and NO1_WGT_MODE LIKE '%${no1WgtMode}%'
      </if>
      <if test="no2WgtMode != null and no2WgtMode != ''">
        and NO2_WGT_MODE LIKE '%${no2WgtMode}%'
      </if>
      <if test="rfidNo != null and rfidNo != ''">
        and RFID_NO LIKE '%${rfidNo}%'
      </if>
      <if test="chkFlg != null and chkFlg != ''">
        and CHK_FLG LIKE '%${chkFlg}%'
      </if>
      <if test="checker != null and checker != ''">
        and CHECKER LIKE '%${checker}%'
      </if>
      <if test="chkTime != null">
        and TO_CHAR(CHK_TIME,'yyyy-MM-dd') = #{chkTime}
      </if>
      <if test="chmPer != null and chmPer != ''">
        and CHM_PER LIKE '%${chmPer}%'
      </if>
      <if test="chmTime != null">
        and TO_CHAR(CHM_TIME,'yyyy-MM-dd') = #{chmTime}
      </if>
      <if test="chmType != null and chmType != ''">
        and CHM_TYPE LIKE '%${chmType}%'
      </if>
      <if test="transport != null and transport != ''">
        and TRANSPORT LIKE '%${transport}%'
      </if>
      <if test="transName != null and transName != ''">
        and TRANS_NAME LIKE '%${transName}%'
      </if>
      <if test="grsWgtCurve != null and grsWgtCurve != ''">
        and GRS_WGT_CURVE LIKE '%${grsWgtCurve}%'
      </if>
      <if test="tarWgtCurve != null and tarWgtCurve != ''">
        and TAR_WGT_CURVE LIKE '%${tarWgtCurve}%'
      </if>
      <if test="disOpr != null and disOpr != ''">
        and DIS_OPR LIKE '%${disOpr}%'
      </if>
      <if test="disTime != null">
        and TO_CHAR(DIS_TIME,'yyyy-MM-dd') = #{disTime}
      </if>
      <if test="fdUpflg != null and fdUpflg != ''">
        and FD_UPFLG LIKE '%${fdUpflg}%'
      </if>
      <if test="chUp != null and chUp != ''">
        and CH_UP LIKE '%${chUp}%'
      </if>
      <if test="chOpr != null and chOpr != ''">
        and CH_OPR LIKE '%${chOpr}%'
      </if>
      <if test="chTime != null">
        and TO_CHAR(CH_TIME,'yyyy-MM-dd') = #{chTime}
      </if>
      <if test="tdNo != null and tdNo != ''">
        and TD_NO LIKE '%${tdNo}%'
      </if>
      <if test="tdWgt != null">
        and TD_WGT = #{tdWgt}
      </if>
      <if test="ddNo != null and ddNo != ''">
        and DD_NO LIKE '%${ddNo}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    where WGT_NO = #{wgtNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    where 1!=1 
      <if test="billno != null and billno != ''">
        or BILLNO = #{billno}
      </if>
      <if test="truNo != null and truNo != ''">
        or TRU_NO = #{truNo}
      </if>
      <if test="lgsNo != null and lgsNo != ''">
        or LGS_NO = #{lgsNo}
      </if>
      <if test="carNo != null and carNo != ''">
        or CAR_NO = #{carNo}
      </if>
      <if test="icdNo != null and icdNo != ''">
        or ICD_NO = #{icdNo}
      </if>
      <if test="grsBoxNo != null">
        or GRS_BOX_NO = #{grsBoxNo}
      </if>
      <if test="tarBoxNo != null">
        or TAR_BOX_NO = #{tarBoxNo}
      </if>
      <if test="grsSpd != null">
        or GRS_SPD = #{grsSpd}
      </if>
      <if test="tarSpd != null">
        or TAR_SPD = #{tarSpd}
      </if>
      <if test="trnType != null and trnType != ''">
        or TRN_TYPE = #{trnType}
      </if>
      <if test="grsVdoFile != null and grsVdoFile != ''">
        or GRS_VDO_FILE = #{grsVdoFile}
      </if>
      <if test="tarVdoFile != null and tarVdoFile != ''">
        or TAR_VDO_FILE = #{tarVdoFile}
      </if>
      <if test="grsTrnNo != null and grsTrnNo != ''">
        or GRS_TRN_NO = #{grsTrnNo}
      </if>
      <if test="tarTrnNo != null and tarTrnNo != ''">
        or TAR_TRN_NO = #{tarTrnNo}
      </if>
      <if test="wgtType != null and wgtType != ''">
        or WGT_TYPE = #{wgtType}
      </if>
      <if test="grsWgt != null">
        or GRS_WGT = #{grsWgt}
      </if>
      <if test="tarWgt != null">
        or TAR_WGT = #{tarWgt}
      </if>
      <if test="netWgt != null">
        or NET_WGT = #{netWgt}
      </if>
      <if test="no2Wgt != null">
        or NO2_WGT = #{no2Wgt}
      </if>
      <if test="grsWgtNo != null and grsWgtNo != ''">
        or GRS_WGT_NO = #{grsWgtNo}
      </if>
      <if test="tarWgtNo != null and tarWgtNo != ''">
        or TAR_WGT_NO = #{tarWgtNo}
      </if>
      <if test="tarType != null">
        or TAR_TYPE = #{tarType}
      </if>
      <if test="tarInfMode != null">
        or TAR_INF_MODE = #{tarInfMode}
      </if>
      <if test="grsInfMode != null">
        or GRS_INF_MODE = #{grsInfMode}
      </if>
      <if test="netInfMode != null">
        or NET_INF_MODE = #{netInfMode}
      </if>
      <if test="grsTime != null">
        or TO_CHAR(GRS_TIME,'yyyy-MM-dd') = '#{grsTime}'
      </if>
      <if test="tarTime != null">
        or TO_CHAR(TAR_TIME,'yyyy-MM-dd') = '#{tarTime}'
      </if>
      <if test="netTime != null">
        or TO_CHAR(NET_TIME,'yyyy-MM-dd') = '#{netTime}'
      </if>
      <if test="grsWrkOrd != null and grsWrkOrd != ''">
        or GRS_WRK_ORD = #{grsWrkOrd}
      </if>
      <if test="tarWrkOrd != null and tarWrkOrd != ''">
        or TAR_WRK_ORD = #{tarWrkOrd}
      </if>
      <if test="netWrkOrd != null and netWrkOrd != ''">
        or NET_WRK_ORD = #{netWrkOrd}
      </if>
      <if test="grsWrkGrp != null and grsWrkGrp != ''">
        or GRS_WRK_GRP = #{grsWrkGrp}
      </if>
      <if test="tarWrkGrp != null and tarWrkGrp != ''">
        or TAR_WRK_GRP = #{tarWrkGrp}
      </if>
      <if test="netWrkGrp != null and netWrkGrp != ''">
        or NET_WRK_GRP = #{netWrkGrp}
      </if>
      <if test="grsOpr != null and grsOpr != ''">
        or GRS_OPR = #{grsOpr}
      </if>
      <if test="tarOpr != null and tarOpr != ''">
        or TAR_OPR = #{tarOpr}
      </if>
      <if test="netOpr != null and netOpr != ''">
        or NET_OPR = #{netOpr}
      </if>
      <if test="grsPntName != null and grsPntName != ''">
        or GRS_PNT_NAME = #{grsPntName}
      </if>
      <if test="tarPntName != null and tarPntName != ''">
        or TAR_PNT_NAME = #{tarPntName}
      </if>
      <if test="netPntName != null and netPntName != ''">
        or NET_PNT_NAME = #{netPntName}
      </if>
      <if test="grsPntNo != null and grsPntNo != ''">
        or GRS_PNT_NO = #{grsPntNo}
      </if>
      <if test="tarPntNo != null and tarPntNo != ''">
        or TAR_PNT_NO = #{tarPntNo}
      </if>
      <if test="netPntNo != null and netPntNo != ''">
        or NET_PNT_NO = #{netPntNo}
      </if>
      <if test="note != null and note != ''">
        or NOTE = #{note}
      </if>
      <if test="sdrType != null and sdrType != ''">
        or SDR_TYPE = #{sdrType}
      </if>
      <if test="sdrName != null and sdrName != ''">
        or SDR_NAME = #{sdrName}
      </if>
      <if test="sender != null and sender != ''">
        or SENDER = #{sender}
      </if>
      <if test="sdrNote != null and sdrNote != ''">
        or SDR_NOTE = #{sdrNote}
      </if>
      <if test="rcvType != null and rcvType != ''">
        or RCV_TYPE = #{rcvType}
      </if>
      <if test="rcvName != null and rcvName != ''">
        or RCV_NAME = #{rcvName}
      </if>
      <if test="receiver != null and receiver != ''">
        or RECEIVER = #{receiver}
      </if>
      <if test="rcvNote != null and rcvNote != ''">
        or RCV_NOTE = #{rcvNote}
      </if>
      <if test="matName != null and matName != ''">
        or MAT_NAME = #{matName}
      </if>
      <if test="matCode != null and matCode != ''">
        or MAT_CODE = #{matCode}
      </if>
      <if test="b1PrnNum != null">
        or B1_PRN_NUM = #{b1PrnNum}
      </if>
      <if test="b2PrnNum != null">
        or B2_PRN_NUM = #{b2PrnNum}
      </if>
      <if test="b1PrnNum2 != null">
        or B1_PRN_NUM_2 = #{b1PrnNum2}
      </if>
      <if test="uplFlg != null and uplFlg != ''">
        or UPL_FLG = #{uplFlg}
      </if>
      <if test="uplTime != null">
        or TO_CHAR(UPL_TIME,'yyyy-MM-dd') = '#{uplTime}'
      </if>
      <if test="delFlg != null and delFlg != ''">
        or DEL_FLG = #{delFlg}
      </if>
      <if test="extBox != null">
        or EXT_BOX = #{extBox}
      </if>
      <if test="sdrGrsWgt != null">
        or SDR_GRS_WGT = #{sdrGrsWgt}
      </if>
      <if test="sdrTarWgt != null">
        or SDR_TAR_WGT = #{sdrTarWgt}
      </if>
      <if test="sdrNetWgt != null">
        or SDR_NET_WGT = #{sdrNetWgt}
      </if>
      <if test="disWgt != null">
        or DIS_WGT = #{disWgt}
      </if>
      <if test="disRatio != null">
        or DIS_RATIO = #{disRatio}
      </if>
      <if test="netEnd != null">
        or NET_END = #{netEnd}
      </if>
      <if test="no1WgtMode != null and no1WgtMode != ''">
        or NO1_WGT_MODE = #{no1WgtMode}
      </if>
      <if test="no2WgtMode != null and no2WgtMode != ''">
        or NO2_WGT_MODE = #{no2WgtMode}
      </if>
      <if test="rfidNo != null and rfidNo != ''">
        or RFID_NO = #{rfidNo}
      </if>
      <if test="chkFlg != null and chkFlg != ''">
        or CHK_FLG = #{chkFlg}
      </if>
      <if test="checker != null and checker != ''">
        or CHECKER = #{checker}
      </if>
      <if test="chkTime != null">
        or TO_CHAR(CHK_TIME,'yyyy-MM-dd') = '#{chkTime}'
      </if>
      <if test="chmPer != null and chmPer != ''">
        or CHM_PER = #{chmPer}
      </if>
      <if test="chmTime != null">
        or TO_CHAR(CHM_TIME,'yyyy-MM-dd') = '#{chmTime}'
      </if>
      <if test="chmType != null and chmType != ''">
        or CHM_TYPE = #{chmType}
      </if>
      <if test="transport != null and transport != ''">
        or TRANSPORT = #{transport}
      </if>
      <if test="transName != null and transName != ''">
        or TRANS_NAME = #{transName}
      </if>
      <if test="grsWgtCurve != null and grsWgtCurve != ''">
        or GRS_WGT_CURVE = #{grsWgtCurve}
      </if>
      <if test="tarWgtCurve != null and tarWgtCurve != ''">
        or TAR_WGT_CURVE = #{tarWgtCurve}
      </if>
      <if test="disOpr != null and disOpr != ''">
        or DIS_OPR = #{disOpr}
      </if>
      <if test="disTime != null">
        or TO_CHAR(DIS_TIME,'yyyy-MM-dd') = '#{disTime}'
      </if>
      <if test="fdUpflg != null and fdUpflg != ''">
        or FD_UPFLG = #{fdUpflg}
      </if>
      <if test="chUp != null and chUp != ''">
        or CH_UP = #{chUp}
      </if>
      <if test="chOpr != null and chOpr != ''">
        or CH_OPR = #{chOpr}
      </if>
      <if test="chTime != null">
        or TO_CHAR(CH_TIME,'yyyy-MM-dd') = '#{chTime}'
      </if>
      <if test="tdNo != null and tdNo != ''">
        or TD_NO = #{tdNo}
      </if>
      <if test="tdWgt != null">
        or TD_WGT = #{tdWgt}
      </if>
      <if test="ddNo != null and ddNo != ''">
        or DD_NO = #{ddNo}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.appservice.appcmmcarweightresults.model.AppCmmCarweightresults">
    insert into  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS  (WGT_NO, BILLNO, TRU_NO, 
      LGS_NO, CAR_NO, ICD_NO, 
      GRS_BOX_NO, TAR_BOX_NO, GRS_SPD, 
      TAR_SPD, TRN_TYPE, GRS_VDO_FILE, 
      TAR_VDO_FILE, GRS_TRN_NO, TAR_TRN_NO, 
      WGT_TYPE, GRS_WGT, TAR_WGT, 
      NET_WGT, NO2_WGT, GRS_WGT_NO, 
      TAR_WGT_NO, TAR_TYPE, TAR_INF_MODE, 
      GRS_INF_MODE, NET_INF_MODE, GRS_TIME, 
      TAR_TIME, NET_TIME, GRS_WRK_ORD, 
      TAR_WRK_ORD, NET_WRK_ORD, GRS_WRK_GRP, 
      TAR_WRK_GRP, NET_WRK_GRP, GRS_OPR, 
      TAR_OPR, NET_OPR, GRS_PNT_NAME, 
      TAR_PNT_NAME, NET_PNT_NAME, GRS_PNT_NO, 
      TAR_PNT_NO, NET_PNT_NO, NOTE, 
      SDR_TYPE, SDR_NAME, SENDER, 
      SDR_NOTE, RCV_TYPE, RCV_NAME, 
      RECEIVER, RCV_NOTE, MAT_NAME, 
      MAT_CODE, B1_PRN_NUM, B2_PRN_NUM, 
      B1_PRN_NUM_2, UPL_FLG, UPL_TIME, 
      DEL_FLG, EXT_BOX, SDR_GRS_WGT, 
      SDR_TAR_WGT, SDR_NET_WGT, DIS_WGT, 
      DIS_RATIO, NET_END, NO1_WGT_MODE, 
      NO2_WGT_MODE, RFID_NO, CHK_FLG, 
      CHECKER, CHK_TIME, CHM_PER, 
      CHM_TIME, CHM_TYPE, TRANSPORT, 
      TRANS_NAME, GRS_WGT_CURVE, TAR_WGT_CURVE, 
      DIS_OPR, DIS_TIME, FD_UPFLG, 
      CH_UP, CH_OPR, CH_TIME, 
      TD_NO, TD_WGT, DD_NO)
    values (#{wgtNo,jdbcType=VARCHAR}, #{billno,jdbcType=VARCHAR}, #{truNo,jdbcType=VARCHAR}, 
      #{lgsNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{icdNo,jdbcType=VARCHAR}, 
      #{grsBoxNo,jdbcType=DECIMAL}, #{tarBoxNo,jdbcType=DECIMAL}, #{grsSpd,jdbcType=DECIMAL}, 
      #{tarSpd,jdbcType=DECIMAL}, #{trnType,jdbcType=VARCHAR}, #{grsVdoFile,jdbcType=VARCHAR}, 
      #{tarVdoFile,jdbcType=VARCHAR}, #{grsTrnNo,jdbcType=VARCHAR}, #{tarTrnNo,jdbcType=VARCHAR}, 
      #{wgtType,jdbcType=VARCHAR}, #{grsWgt,jdbcType=DECIMAL}, #{tarWgt,jdbcType=DECIMAL}, 
      #{netWgt,jdbcType=DECIMAL}, #{no2Wgt,jdbcType=DECIMAL}, #{grsWgtNo,jdbcType=VARCHAR}, 
      #{tarWgtNo,jdbcType=VARCHAR}, #{tarType,jdbcType=CHAR}, #{tarInfMode,jdbcType=CHAR}, 
      #{grsInfMode,jdbcType=CHAR}, #{netInfMode,jdbcType=CHAR}, #{grsTime,jdbcType=TIMESTAMP}, 
      #{tarTime,jdbcType=TIMESTAMP}, #{netTime,jdbcType=TIMESTAMP}, #{grsWrkOrd,jdbcType=VARCHAR}, 
      #{tarWrkOrd,jdbcType=VARCHAR}, #{netWrkOrd,jdbcType=VARCHAR}, #{grsWrkGrp,jdbcType=VARCHAR}, 
      #{tarWrkGrp,jdbcType=VARCHAR}, #{netWrkGrp,jdbcType=VARCHAR}, #{grsOpr,jdbcType=VARCHAR}, 
      #{tarOpr,jdbcType=VARCHAR}, #{netOpr,jdbcType=VARCHAR}, #{grsPntName,jdbcType=VARCHAR}, 
      #{tarPntName,jdbcType=VARCHAR}, #{netPntName,jdbcType=VARCHAR}, #{grsPntNo,jdbcType=VARCHAR}, 
      #{tarPntNo,jdbcType=VARCHAR}, #{netPntNo,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, 
      #{sdrType,jdbcType=VARCHAR}, #{sdrName,jdbcType=VARCHAR}, #{sender,jdbcType=VARCHAR}, 
      #{sdrNote,jdbcType=VARCHAR}, #{rcvType,jdbcType=VARCHAR}, #{rcvName,jdbcType=VARCHAR}, 
      #{receiver,jdbcType=VARCHAR}, #{rcvNote,jdbcType=VARCHAR}, #{matName,jdbcType=VARCHAR}, 
      #{matCode,jdbcType=VARCHAR}, #{b1PrnNum,jdbcType=DECIMAL}, #{b2PrnNum,jdbcType=DECIMAL}, 
      #{b1PrnNum2,jdbcType=DECIMAL}, #{uplFlg,jdbcType=VARCHAR}, #{uplTime,jdbcType=TIMESTAMP}, 
      #{delFlg,jdbcType=VARCHAR}, #{extBox,jdbcType=CHAR}, #{sdrGrsWgt,jdbcType=DECIMAL}, 
      #{sdrTarWgt,jdbcType=DECIMAL}, #{sdrNetWgt,jdbcType=DECIMAL}, #{disWgt,jdbcType=DECIMAL}, 
      #{disRatio,jdbcType=DECIMAL}, #{netEnd,jdbcType=DECIMAL}, #{no1WgtMode,jdbcType=VARCHAR}, 
      #{no2WgtMode,jdbcType=VARCHAR}, #{rfidNo,jdbcType=VARCHAR}, #{chkFlg,jdbcType=VARCHAR}, 
      #{checker,jdbcType=VARCHAR}, #{chkTime,jdbcType=TIMESTAMP}, #{chmPer,jdbcType=VARCHAR}, 
      #{chmTime,jdbcType=TIMESTAMP}, #{chmType,jdbcType=VARCHAR}, #{transport,jdbcType=VARCHAR}, 
      #{transName,jdbcType=VARCHAR}, #{grsWgtCurve,jdbcType=VARCHAR}, #{tarWgtCurve,jdbcType=VARCHAR}, 
      #{disOpr,jdbcType=VARCHAR}, #{disTime,jdbcType=TIMESTAMP}, #{fdUpflg,jdbcType=VARCHAR}, 
      #{chUp,jdbcType=VARCHAR}, #{chOpr,jdbcType=VARCHAR}, #{chTime,jdbcType=TIMESTAMP}, 
      #{tdNo,jdbcType=VARCHAR}, #{tdWgt,jdbcType=DECIMAL}, #{ddNo,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.appservice.appcmmcarweightresults.model.AppCmmCarweightresults">
    insert into  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="wgtNo != null">
        WGT_NO,
      </if>
      <if test="billno != null">
        BILLNO,
      </if>
      <if test="truNo != null">
        TRU_NO,
      </if>
      <if test="lgsNo != null">
        LGS_NO,
      </if>
      <if test="carNo != null">
        CAR_NO,
      </if>
      <if test="icdNo != null">
        ICD_NO,
      </if>
      <if test="grsBoxNo != null">
        GRS_BOX_NO,
      </if>
      <if test="tarBoxNo != null">
        TAR_BOX_NO,
      </if>
      <if test="grsSpd != null">
        GRS_SPD,
      </if>
      <if test="tarSpd != null">
        TAR_SPD,
      </if>
      <if test="trnType != null">
        TRN_TYPE,
      </if>
      <if test="grsVdoFile != null">
        GRS_VDO_FILE,
      </if>
      <if test="tarVdoFile != null">
        TAR_VDO_FILE,
      </if>
      <if test="grsTrnNo != null">
        GRS_TRN_NO,
      </if>
      <if test="tarTrnNo != null">
        TAR_TRN_NO,
      </if>
      <if test="wgtType != null">
        WGT_TYPE,
      </if>
      <if test="grsWgt != null">
        GRS_WGT,
      </if>
      <if test="tarWgt != null">
        TAR_WGT,
      </if>
      <if test="netWgt != null">
        NET_WGT,
      </if>
      <if test="no2Wgt != null">
        NO2_WGT,
      </if>
      <if test="grsWgtNo != null">
        GRS_WGT_NO,
      </if>
      <if test="tarWgtNo != null">
        TAR_WGT_NO,
      </if>
      <if test="tarType != null">
        TAR_TYPE,
      </if>
      <if test="tarInfMode != null">
        TAR_INF_MODE,
      </if>
      <if test="grsInfMode != null">
        GRS_INF_MODE,
      </if>
      <if test="netInfMode != null">
        NET_INF_MODE,
      </if>
      <if test="grsTime != null">
        GRS_TIME,
      </if>
      <if test="tarTime != null">
        TAR_TIME,
      </if>
      <if test="netTime != null">
        NET_TIME,
      </if>
      <if test="grsWrkOrd != null">
        GRS_WRK_ORD,
      </if>
      <if test="tarWrkOrd != null">
        TAR_WRK_ORD,
      </if>
      <if test="netWrkOrd != null">
        NET_WRK_ORD,
      </if>
      <if test="grsWrkGrp != null">
        GRS_WRK_GRP,
      </if>
      <if test="tarWrkGrp != null">
        TAR_WRK_GRP,
      </if>
      <if test="netWrkGrp != null">
        NET_WRK_GRP,
      </if>
      <if test="grsOpr != null">
        GRS_OPR,
      </if>
      <if test="tarOpr != null">
        TAR_OPR,
      </if>
      <if test="netOpr != null">
        NET_OPR,
      </if>
      <if test="grsPntName != null">
        GRS_PNT_NAME,
      </if>
      <if test="tarPntName != null">
        TAR_PNT_NAME,
      </if>
      <if test="netPntName != null">
        NET_PNT_NAME,
      </if>
      <if test="grsPntNo != null">
        GRS_PNT_NO,
      </if>
      <if test="tarPntNo != null">
        TAR_PNT_NO,
      </if>
      <if test="netPntNo != null">
        NET_PNT_NO,
      </if>
      <if test="note != null">
        NOTE,
      </if>
      <if test="sdrType != null">
        SDR_TYPE,
      </if>
      <if test="sdrName != null">
        SDR_NAME,
      </if>
      <if test="sender != null">
        SENDER,
      </if>
      <if test="sdrNote != null">
        SDR_NOTE,
      </if>
      <if test="rcvType != null">
        RCV_TYPE,
      </if>
      <if test="rcvName != null">
        RCV_NAME,
      </if>
      <if test="receiver != null">
        RECEIVER,
      </if>
      <if test="rcvNote != null">
        RCV_NOTE,
      </if>
      <if test="matName != null">
        MAT_NAME,
      </if>
      <if test="matCode != null">
        MAT_CODE,
      </if>
      <if test="b1PrnNum != null">
        B1_PRN_NUM,
      </if>
      <if test="b2PrnNum != null">
        B2_PRN_NUM,
      </if>
      <if test="b1PrnNum2 != null">
        B1_PRN_NUM_2,
      </if>
      <if test="uplFlg != null">
        UPL_FLG,
      </if>
      <if test="uplTime != null">
        UPL_TIME,
      </if>
      <if test="delFlg != null">
        DEL_FLG,
      </if>
      <if test="extBox != null">
        EXT_BOX,
      </if>
      <if test="sdrGrsWgt != null">
        SDR_GRS_WGT,
      </if>
      <if test="sdrTarWgt != null">
        SDR_TAR_WGT,
      </if>
      <if test="sdrNetWgt != null">
        SDR_NET_WGT,
      </if>
      <if test="disWgt != null">
        DIS_WGT,
      </if>
      <if test="disRatio != null">
        DIS_RATIO,
      </if>
      <if test="netEnd != null">
        NET_END,
      </if>
      <if test="no1WgtMode != null">
        NO1_WGT_MODE,
      </if>
      <if test="no2WgtMode != null">
        NO2_WGT_MODE,
      </if>
      <if test="rfidNo != null">
        RFID_NO,
      </if>
      <if test="chkFlg != null">
        CHK_FLG,
      </if>
      <if test="checker != null">
        CHECKER,
      </if>
      <if test="chkTime != null">
        CHK_TIME,
      </if>
      <if test="chmPer != null">
        CHM_PER,
      </if>
      <if test="chmTime != null">
        CHM_TIME,
      </if>
      <if test="chmType != null">
        CHM_TYPE,
      </if>
      <if test="transport != null">
        TRANSPORT,
      </if>
      <if test="transName != null">
        TRANS_NAME,
      </if>
      <if test="grsWgtCurve != null">
        GRS_WGT_CURVE,
      </if>
      <if test="tarWgtCurve != null">
        TAR_WGT_CURVE,
      </if>
      <if test="disOpr != null">
        DIS_OPR,
      </if>
      <if test="disTime != null">
        DIS_TIME,
      </if>
      <if test="fdUpflg != null">
        FD_UPFLG,
      </if>
      <if test="chUp != null">
        CH_UP,
      </if>
      <if test="chOpr != null">
        CH_OPR,
      </if>
      <if test="chTime != null">
        CH_TIME,
      </if>
      <if test="tdNo != null">
        TD_NO,
      </if>
      <if test="tdWgt != null">
        TD_WGT,
      </if>
      <if test="ddNo != null">
        DD_NO,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="wgtNo != null">
        #{wgtNo,jdbcType=VARCHAR},
      </if>
      <if test="billno != null">
        #{billno,jdbcType=VARCHAR},
      </if>
      <if test="truNo != null">
        #{truNo,jdbcType=VARCHAR},
      </if>
      <if test="lgsNo != null">
        #{lgsNo,jdbcType=VARCHAR},
      </if>
      <if test="carNo != null">
        #{carNo,jdbcType=VARCHAR},
      </if>
      <if test="icdNo != null">
        #{icdNo,jdbcType=VARCHAR},
      </if>
      <if test="grsBoxNo != null">
        #{grsBoxNo,jdbcType=DECIMAL},
      </if>
      <if test="tarBoxNo != null">
        #{tarBoxNo,jdbcType=DECIMAL},
      </if>
      <if test="grsSpd != null">
        #{grsSpd,jdbcType=DECIMAL},
      </if>
      <if test="tarSpd != null">
        #{tarSpd,jdbcType=DECIMAL},
      </if>
      <if test="trnType != null">
        #{trnType,jdbcType=VARCHAR},
      </if>
      <if test="grsVdoFile != null">
        #{grsVdoFile,jdbcType=VARCHAR},
      </if>
      <if test="tarVdoFile != null">
        #{tarVdoFile,jdbcType=VARCHAR},
      </if>
      <if test="grsTrnNo != null">
        #{grsTrnNo,jdbcType=VARCHAR},
      </if>
      <if test="tarTrnNo != null">
        #{tarTrnNo,jdbcType=VARCHAR},
      </if>
      <if test="wgtType != null">
        #{wgtType,jdbcType=VARCHAR},
      </if>
      <if test="grsWgt != null">
        #{grsWgt,jdbcType=DECIMAL},
      </if>
      <if test="tarWgt != null">
        #{tarWgt,jdbcType=DECIMAL},
      </if>
      <if test="netWgt != null">
        #{netWgt,jdbcType=DECIMAL},
      </if>
      <if test="no2Wgt != null">
        #{no2Wgt,jdbcType=DECIMAL},
      </if>
      <if test="grsWgtNo != null">
        #{grsWgtNo,jdbcType=VARCHAR},
      </if>
      <if test="tarWgtNo != null">
        #{tarWgtNo,jdbcType=VARCHAR},
      </if>
      <if test="tarType != null">
        #{tarType,jdbcType=CHAR},
      </if>
      <if test="tarInfMode != null">
        #{tarInfMode,jdbcType=CHAR},
      </if>
      <if test="grsInfMode != null">
        #{grsInfMode,jdbcType=CHAR},
      </if>
      <if test="netInfMode != null">
        #{netInfMode,jdbcType=CHAR},
      </if>
      <if test="grsTime != null">
        #{grsTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tarTime != null">
        #{tarTime,jdbcType=TIMESTAMP},
      </if>
      <if test="netTime != null">
        #{netTime,jdbcType=TIMESTAMP},
      </if>
      <if test="grsWrkOrd != null">
        #{grsWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="tarWrkOrd != null">
        #{tarWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="netWrkOrd != null">
        #{netWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="grsWrkGrp != null">
        #{grsWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="tarWrkGrp != null">
        #{tarWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="netWrkGrp != null">
        #{netWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="grsOpr != null">
        #{grsOpr,jdbcType=VARCHAR},
      </if>
      <if test="tarOpr != null">
        #{tarOpr,jdbcType=VARCHAR},
      </if>
      <if test="netOpr != null">
        #{netOpr,jdbcType=VARCHAR},
      </if>
      <if test="grsPntName != null">
        #{grsPntName,jdbcType=VARCHAR},
      </if>
      <if test="tarPntName != null">
        #{tarPntName,jdbcType=VARCHAR},
      </if>
      <if test="netPntName != null">
        #{netPntName,jdbcType=VARCHAR},
      </if>
      <if test="grsPntNo != null">
        #{grsPntNo,jdbcType=VARCHAR},
      </if>
      <if test="tarPntNo != null">
        #{tarPntNo,jdbcType=VARCHAR},
      </if>
      <if test="netPntNo != null">
        #{netPntNo,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        #{note,jdbcType=VARCHAR},
      </if>
      <if test="sdrType != null">
        #{sdrType,jdbcType=VARCHAR},
      </if>
      <if test="sdrName != null">
        #{sdrName,jdbcType=VARCHAR},
      </if>
      <if test="sender != null">
        #{sender,jdbcType=VARCHAR},
      </if>
      <if test="sdrNote != null">
        #{sdrNote,jdbcType=VARCHAR},
      </if>
      <if test="rcvType != null">
        #{rcvType,jdbcType=VARCHAR},
      </if>
      <if test="rcvName != null">
        #{rcvName,jdbcType=VARCHAR},
      </if>
      <if test="receiver != null">
        #{receiver,jdbcType=VARCHAR},
      </if>
      <if test="rcvNote != null">
        #{rcvNote,jdbcType=VARCHAR},
      </if>
      <if test="matName != null">
        #{matName,jdbcType=VARCHAR},
      </if>
      <if test="matCode != null">
        #{matCode,jdbcType=VARCHAR},
      </if>
      <if test="b1PrnNum != null">
        #{b1PrnNum,jdbcType=DECIMAL},
      </if>
      <if test="b2PrnNum != null">
        #{b2PrnNum,jdbcType=DECIMAL},
      </if>
      <if test="b1PrnNum2 != null">
        #{b1PrnNum2,jdbcType=DECIMAL},
      </if>
      <if test="uplFlg != null">
        #{uplFlg,jdbcType=VARCHAR},
      </if>
      <if test="uplTime != null">
        #{uplTime,jdbcType=TIMESTAMP},
      </if>
      <if test="delFlg != null">
        #{delFlg,jdbcType=VARCHAR},
      </if>
      <if test="extBox != null">
        #{extBox,jdbcType=CHAR},
      </if>
      <if test="sdrGrsWgt != null">
        #{sdrGrsWgt,jdbcType=DECIMAL},
      </if>
      <if test="sdrTarWgt != null">
        #{sdrTarWgt,jdbcType=DECIMAL},
      </if>
      <if test="sdrNetWgt != null">
        #{sdrNetWgt,jdbcType=DECIMAL},
      </if>
      <if test="disWgt != null">
        #{disWgt,jdbcType=DECIMAL},
      </if>
      <if test="disRatio != null">
        #{disRatio,jdbcType=DECIMAL},
      </if>
      <if test="netEnd != null">
        #{netEnd,jdbcType=DECIMAL},
      </if>
      <if test="no1WgtMode != null">
        #{no1WgtMode,jdbcType=VARCHAR},
      </if>
      <if test="no2WgtMode != null">
        #{no2WgtMode,jdbcType=VARCHAR},
      </if>
      <if test="rfidNo != null">
        #{rfidNo,jdbcType=VARCHAR},
      </if>
      <if test="chkFlg != null">
        #{chkFlg,jdbcType=VARCHAR},
      </if>
      <if test="checker != null">
        #{checker,jdbcType=VARCHAR},
      </if>
      <if test="chkTime != null">
        #{chkTime,jdbcType=TIMESTAMP},
      </if>
      <if test="chmPer != null">
        #{chmPer,jdbcType=VARCHAR},
      </if>
      <if test="chmTime != null">
        #{chmTime,jdbcType=TIMESTAMP},
      </if>
      <if test="chmType != null">
        #{chmType,jdbcType=VARCHAR},
      </if>
      <if test="transport != null">
        #{transport,jdbcType=VARCHAR},
      </if>
      <if test="transName != null">
        #{transName,jdbcType=VARCHAR},
      </if>
      <if test="grsWgtCurve != null">
        #{grsWgtCurve,jdbcType=VARCHAR},
      </if>
      <if test="tarWgtCurve != null">
        #{tarWgtCurve,jdbcType=VARCHAR},
      </if>
      <if test="disOpr != null">
        #{disOpr,jdbcType=VARCHAR},
      </if>
      <if test="disTime != null">
        #{disTime,jdbcType=TIMESTAMP},
      </if>
      <if test="fdUpflg != null">
        #{fdUpflg,jdbcType=VARCHAR},
      </if>
      <if test="chUp != null">
        #{chUp,jdbcType=VARCHAR},
      </if>
      <if test="chOpr != null">
        #{chOpr,jdbcType=VARCHAR},
      </if>
      <if test="chTime != null">
        #{chTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tdNo != null">
        #{tdNo,jdbcType=VARCHAR},
      </if>
      <if test="tdWgt != null">
        #{tdWgt,jdbcType=DECIMAL},
      </if>
      <if test="ddNo != null">
        #{ddNo,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.appservice.appcmmcarweightresults.model.AppCmmCarweightresults">
    update  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    set BILLNO = #{billno,jdbcType=VARCHAR},
      TRU_NO = #{truNo,jdbcType=VARCHAR},
      LGS_NO = #{lgsNo,jdbcType=VARCHAR},
      CAR_NO = #{carNo,jdbcType=VARCHAR},
      ICD_NO = #{icdNo,jdbcType=VARCHAR},
      GRS_BOX_NO = #{grsBoxNo,jdbcType=DECIMAL},
      TAR_BOX_NO = #{tarBoxNo,jdbcType=DECIMAL},
      GRS_SPD = #{grsSpd,jdbcType=DECIMAL},
      TAR_SPD = #{tarSpd,jdbcType=DECIMAL},
      TRN_TYPE = #{trnType,jdbcType=VARCHAR},
      GRS_VDO_FILE = #{grsVdoFile,jdbcType=VARCHAR},
      TAR_VDO_FILE = #{tarVdoFile,jdbcType=VARCHAR},
      GRS_TRN_NO = #{grsTrnNo,jdbcType=VARCHAR},
      TAR_TRN_NO = #{tarTrnNo,jdbcType=VARCHAR},
      WGT_TYPE = #{wgtType,jdbcType=VARCHAR},
      GRS_WGT = #{grsWgt,jdbcType=DECIMAL},
      TAR_WGT = #{tarWgt,jdbcType=DECIMAL},
      NET_WGT = #{netWgt,jdbcType=DECIMAL},
      NO2_WGT = #{no2Wgt,jdbcType=DECIMAL},
      GRS_WGT_NO = #{grsWgtNo,jdbcType=VARCHAR},
      TAR_WGT_NO = #{tarWgtNo,jdbcType=VARCHAR},
      TAR_TYPE = #{tarType,jdbcType=CHAR},
      TAR_INF_MODE = #{tarInfMode,jdbcType=CHAR},
      GRS_INF_MODE = #{grsInfMode,jdbcType=CHAR},
      NET_INF_MODE = #{netInfMode,jdbcType=CHAR},
      GRS_TIME = #{grsTime,jdbcType=TIMESTAMP},
      TAR_TIME = #{tarTime,jdbcType=TIMESTAMP},
      NET_TIME = #{netTime,jdbcType=TIMESTAMP},
      GRS_WRK_ORD = #{grsWrkOrd,jdbcType=VARCHAR},
      TAR_WRK_ORD = #{tarWrkOrd,jdbcType=VARCHAR},
      NET_WRK_ORD = #{netWrkOrd,jdbcType=VARCHAR},
      GRS_WRK_GRP = #{grsWrkGrp,jdbcType=VARCHAR},
      TAR_WRK_GRP = #{tarWrkGrp,jdbcType=VARCHAR},
      NET_WRK_GRP = #{netWrkGrp,jdbcType=VARCHAR},
      GRS_OPR = #{grsOpr,jdbcType=VARCHAR},
      TAR_OPR = #{tarOpr,jdbcType=VARCHAR},
      NET_OPR = #{netOpr,jdbcType=VARCHAR},
      GRS_PNT_NAME = #{grsPntName,jdbcType=VARCHAR},
      TAR_PNT_NAME = #{tarPntName,jdbcType=VARCHAR},
      NET_PNT_NAME = #{netPntName,jdbcType=VARCHAR},
      GRS_PNT_NO = #{grsPntNo,jdbcType=VARCHAR},
      TAR_PNT_NO = #{tarPntNo,jdbcType=VARCHAR},
      NET_PNT_NO = #{netPntNo,jdbcType=VARCHAR},
      NOTE = #{note,jdbcType=VARCHAR},
      SDR_TYPE = #{sdrType,jdbcType=VARCHAR},
      SDR_NAME = #{sdrName,jdbcType=VARCHAR},
      SENDER = #{sender,jdbcType=VARCHAR},
      SDR_NOTE = #{sdrNote,jdbcType=VARCHAR},
      RCV_TYPE = #{rcvType,jdbcType=VARCHAR},
      RCV_NAME = #{rcvName,jdbcType=VARCHAR},
      RECEIVER = #{receiver,jdbcType=VARCHAR},
      RCV_NOTE = #{rcvNote,jdbcType=VARCHAR},
      MAT_NAME = #{matName,jdbcType=VARCHAR},
      MAT_CODE = #{matCode,jdbcType=VARCHAR},
      B1_PRN_NUM = #{b1PrnNum,jdbcType=DECIMAL},
      B2_PRN_NUM = #{b2PrnNum,jdbcType=DECIMAL},
      B1_PRN_NUM_2 = #{b1PrnNum2,jdbcType=DECIMAL},
      UPL_FLG = #{uplFlg,jdbcType=VARCHAR},
      UPL_TIME = #{uplTime,jdbcType=TIMESTAMP},
      DEL_FLG = #{delFlg,jdbcType=VARCHAR},
      EXT_BOX = #{extBox,jdbcType=CHAR},
      SDR_GRS_WGT = #{sdrGrsWgt,jdbcType=DECIMAL},
      SDR_TAR_WGT = #{sdrTarWgt,jdbcType=DECIMAL},
      SDR_NET_WGT = #{sdrNetWgt,jdbcType=DECIMAL},
      DIS_WGT = #{disWgt,jdbcType=DECIMAL},
      DIS_RATIO = #{disRatio,jdbcType=DECIMAL},
      NET_END = #{netEnd,jdbcType=DECIMAL},
      NO1_WGT_MODE = #{no1WgtMode,jdbcType=VARCHAR},
      NO2_WGT_MODE = #{no2WgtMode,jdbcType=VARCHAR},
      RFID_NO = #{rfidNo,jdbcType=VARCHAR},
      CHK_FLG = #{chkFlg,jdbcType=VARCHAR},
      CHECKER = #{checker,jdbcType=VARCHAR},
      CHK_TIME = #{chkTime,jdbcType=TIMESTAMP},
      CHM_PER = #{chmPer,jdbcType=VARCHAR},
      CHM_TIME = #{chmTime,jdbcType=TIMESTAMP},
      CHM_TYPE = #{chmType,jdbcType=VARCHAR},
      TRANSPORT = #{transport,jdbcType=VARCHAR},
      TRANS_NAME = #{transName,jdbcType=VARCHAR},
      GRS_WGT_CURVE = #{grsWgtCurve,jdbcType=VARCHAR},
      TAR_WGT_CURVE = #{tarWgtCurve,jdbcType=VARCHAR},
      DIS_OPR = #{disOpr,jdbcType=VARCHAR},
      DIS_TIME = #{disTime,jdbcType=TIMESTAMP},
      FD_UPFLG = #{fdUpflg,jdbcType=VARCHAR},
      CH_UP = #{chUp,jdbcType=VARCHAR},
      CH_OPR = #{chOpr,jdbcType=VARCHAR},
      CH_TIME = #{chTime,jdbcType=TIMESTAMP},
      TD_NO = #{tdNo,jdbcType=VARCHAR},
      TD_WGT = #{tdWgt,jdbcType=DECIMAL},
      DD_NO = #{ddNo,jdbcType=VARCHAR}
    where WGT_NO = #{wgtNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.appservice.appcmmcarweightresults.model.AppCmmCarweightresults">
    update  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    <set>
      <if test="billno != null">
        BILLNO = #{billno,jdbcType=VARCHAR},
      </if>
      <if test="truNo != null">
        TRU_NO = #{truNo,jdbcType=VARCHAR},
      </if>
      <if test="lgsNo != null">
        LGS_NO = #{lgsNo,jdbcType=VARCHAR},
      </if>
      <if test="carNo != null">
        CAR_NO = #{carNo,jdbcType=VARCHAR},
      </if>
      <if test="icdNo != null">
        ICD_NO = #{icdNo,jdbcType=VARCHAR},
      </if>
      <if test="grsBoxNo != null">
        GRS_BOX_NO = #{grsBoxNo,jdbcType=DECIMAL},
      </if>
      <if test="tarBoxNo != null">
        TAR_BOX_NO = #{tarBoxNo,jdbcType=DECIMAL},
      </if>
      <if test="grsSpd != null">
        GRS_SPD = #{grsSpd,jdbcType=DECIMAL},
      </if>
      <if test="tarSpd != null">
        TAR_SPD = #{tarSpd,jdbcType=DECIMAL},
      </if>
      <if test="trnType != null">
        TRN_TYPE = #{trnType,jdbcType=VARCHAR},
      </if>
      <if test="grsVdoFile != null">
        GRS_VDO_FILE = #{grsVdoFile,jdbcType=VARCHAR},
      </if>
      <if test="tarVdoFile != null">
        TAR_VDO_FILE = #{tarVdoFile,jdbcType=VARCHAR},
      </if>
      <if test="grsTrnNo != null">
        GRS_TRN_NO = #{grsTrnNo,jdbcType=VARCHAR},
      </if>
      <if test="tarTrnNo != null">
        TAR_TRN_NO = #{tarTrnNo,jdbcType=VARCHAR},
      </if>
      <if test="wgtType != null">
        WGT_TYPE = #{wgtType,jdbcType=VARCHAR},
      </if>
      <if test="grsWgt != null">
        GRS_WGT = #{grsWgt,jdbcType=DECIMAL},
      </if>
      <if test="tarWgt != null">
        TAR_WGT = #{tarWgt,jdbcType=DECIMAL},
      </if>
      <if test="netWgt != null">
        NET_WGT = #{netWgt,jdbcType=DECIMAL},
      </if>
      <if test="no2Wgt != null">
        NO2_WGT = #{no2Wgt,jdbcType=DECIMAL},
      </if>
      <if test="grsWgtNo != null">
        GRS_WGT_NO = #{grsWgtNo,jdbcType=VARCHAR},
      </if>
      <if test="tarWgtNo != null">
        TAR_WGT_NO = #{tarWgtNo,jdbcType=VARCHAR},
      </if>
      <if test="tarType != null">
        TAR_TYPE = #{tarType,jdbcType=CHAR},
      </if>
      <if test="tarInfMode != null">
        TAR_INF_MODE = #{tarInfMode,jdbcType=CHAR},
      </if>
      <if test="grsInfMode != null">
        GRS_INF_MODE = #{grsInfMode,jdbcType=CHAR},
      </if>
      <if test="netInfMode != null">
        NET_INF_MODE = #{netInfMode,jdbcType=CHAR},
      </if>
      <if test="grsTime != null">
        GRS_TIME = #{grsTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tarTime != null">
        TAR_TIME = #{tarTime,jdbcType=TIMESTAMP},
      </if>
      <if test="netTime != null">
        NET_TIME = #{netTime,jdbcType=TIMESTAMP},
      </if>
      <if test="grsWrkOrd != null">
        GRS_WRK_ORD = #{grsWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="tarWrkOrd != null">
        TAR_WRK_ORD = #{tarWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="netWrkOrd != null">
        NET_WRK_ORD = #{netWrkOrd,jdbcType=VARCHAR},
      </if>
      <if test="grsWrkGrp != null">
        GRS_WRK_GRP = #{grsWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="tarWrkGrp != null">
        TAR_WRK_GRP = #{tarWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="netWrkGrp != null">
        NET_WRK_GRP = #{netWrkGrp,jdbcType=VARCHAR},
      </if>
      <if test="grsOpr != null">
        GRS_OPR = #{grsOpr,jdbcType=VARCHAR},
      </if>
      <if test="tarOpr != null">
        TAR_OPR = #{tarOpr,jdbcType=VARCHAR},
      </if>
      <if test="netOpr != null">
        NET_OPR = #{netOpr,jdbcType=VARCHAR},
      </if>
      <if test="grsPntName != null">
        GRS_PNT_NAME = #{grsPntName,jdbcType=VARCHAR},
      </if>
      <if test="tarPntName != null">
        TAR_PNT_NAME = #{tarPntName,jdbcType=VARCHAR},
      </if>
      <if test="netPntName != null">
        NET_PNT_NAME = #{netPntName,jdbcType=VARCHAR},
      </if>
      <if test="grsPntNo != null">
        GRS_PNT_NO = #{grsPntNo,jdbcType=VARCHAR},
      </if>
      <if test="tarPntNo != null">
        TAR_PNT_NO = #{tarPntNo,jdbcType=VARCHAR},
      </if>
      <if test="netPntNo != null">
        NET_PNT_NO = #{netPntNo,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        NOTE = #{note,jdbcType=VARCHAR},
      </if>
      <if test="sdrType != null">
        SDR_TYPE = #{sdrType,jdbcType=VARCHAR},
      </if>
      <if test="sdrName != null">
        SDR_NAME = #{sdrName,jdbcType=VARCHAR},
      </if>
      <if test="sender != null">
        SENDER = #{sender,jdbcType=VARCHAR},
      </if>
      <if test="sdrNote != null">
        SDR_NOTE = #{sdrNote,jdbcType=VARCHAR},
      </if>
      <if test="rcvType != null">
        RCV_TYPE = #{rcvType,jdbcType=VARCHAR},
      </if>
      <if test="rcvName != null">
        RCV_NAME = #{rcvName,jdbcType=VARCHAR},
      </if>
      <if test="receiver != null">
        RECEIVER = #{receiver,jdbcType=VARCHAR},
      </if>
      <if test="rcvNote != null">
        RCV_NOTE = #{rcvNote,jdbcType=VARCHAR},
      </if>
      <if test="matName != null">
        MAT_NAME = #{matName,jdbcType=VARCHAR},
      </if>
      <if test="matCode != null">
        MAT_CODE = #{matCode,jdbcType=VARCHAR},
      </if>
      <if test="b1PrnNum != null">
        B1_PRN_NUM = #{b1PrnNum,jdbcType=DECIMAL},
      </if>
      <if test="b2PrnNum != null">
        B2_PRN_NUM = #{b2PrnNum,jdbcType=DECIMAL},
      </if>
      <if test="b1PrnNum2 != null">
        B1_PRN_NUM_2 = #{b1PrnNum2,jdbcType=DECIMAL},
      </if>
      <if test="uplFlg != null">
        UPL_FLG = #{uplFlg,jdbcType=VARCHAR},
      </if>
      <if test="uplTime != null">
        UPL_TIME = #{uplTime,jdbcType=TIMESTAMP},
      </if>
      <if test="delFlg != null">
        DEL_FLG = #{delFlg,jdbcType=VARCHAR},
      </if>
      <if test="extBox != null">
        EXT_BOX = #{extBox,jdbcType=CHAR},
      </if>
      <if test="sdrGrsWgt != null">
        SDR_GRS_WGT = #{sdrGrsWgt,jdbcType=DECIMAL},
      </if>
      <if test="sdrTarWgt != null">
        SDR_TAR_WGT = #{sdrTarWgt,jdbcType=DECIMAL},
      </if>
      <if test="sdrNetWgt != null">
        SDR_NET_WGT = #{sdrNetWgt,jdbcType=DECIMAL},
      </if>
      <if test="disWgt != null">
        DIS_WGT = #{disWgt,jdbcType=DECIMAL},
      </if>
      <if test="disRatio != null">
        DIS_RATIO = #{disRatio,jdbcType=DECIMAL},
      </if>
      <if test="netEnd != null">
        NET_END = #{netEnd,jdbcType=DECIMAL},
      </if>
      <if test="no1WgtMode != null">
        NO1_WGT_MODE = #{no1WgtMode,jdbcType=VARCHAR},
      </if>
      <if test="no2WgtMode != null">
        NO2_WGT_MODE = #{no2WgtMode,jdbcType=VARCHAR},
      </if>
      <if test="rfidNo != null">
        RFID_NO = #{rfidNo,jdbcType=VARCHAR},
      </if>
      <if test="chkFlg != null">
        CHK_FLG = #{chkFlg,jdbcType=VARCHAR},
      </if>
      <if test="checker != null">
        CHECKER = #{checker,jdbcType=VARCHAR},
      </if>
      <if test="chkTime != null">
        CHK_TIME = #{chkTime,jdbcType=TIMESTAMP},
      </if>
      <if test="chmPer != null">
        CHM_PER = #{chmPer,jdbcType=VARCHAR},
      </if>
      <if test="chmTime != null">
        CHM_TIME = #{chmTime,jdbcType=TIMESTAMP},
      </if>
      <if test="chmType != null">
        CHM_TYPE = #{chmType,jdbcType=VARCHAR},
      </if>
      <if test="transport != null">
        TRANSPORT = #{transport,jdbcType=VARCHAR},
      </if>
      <if test="transName != null">
        TRANS_NAME = #{transName,jdbcType=VARCHAR},
      </if>
      <if test="grsWgtCurve != null">
        GRS_WGT_CURVE = #{grsWgtCurve,jdbcType=VARCHAR},
      </if>
      <if test="tarWgtCurve != null">
        TAR_WGT_CURVE = #{tarWgtCurve,jdbcType=VARCHAR},
      </if>
      <if test="disOpr != null">
        DIS_OPR = #{disOpr,jdbcType=VARCHAR},
      </if>
      <if test="disTime != null">
        DIS_TIME = #{disTime,jdbcType=TIMESTAMP},
      </if>
      <if test="fdUpflg != null">
        FD_UPFLG = #{fdUpflg,jdbcType=VARCHAR},
      </if>
      <if test="chUp != null">
        CH_UP = #{chUp,jdbcType=VARCHAR},
      </if>
      <if test="chOpr != null">
        CH_OPR = #{chOpr,jdbcType=VARCHAR},
      </if>
      <if test="chTime != null">
        CH_TIME = #{chTime,jdbcType=TIMESTAMP},
      </if>
      <if test="tdNo != null">
        TD_NO = #{tdNo,jdbcType=VARCHAR},
      </if>
      <if test="tdWgt != null">
        TD_WGT = #{tdWgt,jdbcType=DECIMAL},
      </if>
      <if test="ddNo != null">
        DD_NO = #{ddNo,jdbcType=VARCHAR},
      </if>
    </set>
    where WGT_NO = #{wgtNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where WGT_NO = #{wgtNo,jdbcType=VARCHAR}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="where"/>
    order by net_Time desc
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="whereLike"/>
    order by net_Time desc
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS  
      (WGT_NO, 
      BILLNO, TRU_NO, LGS_NO, 
      CAR_NO, ICD_NO, GRS_BOX_NO, 
      TAR_BOX_NO, GRS_SPD, TAR_SPD, 
      TRN_TYPE, GRS_VDO_FILE, TAR_VDO_FILE, 
      GRS_TRN_NO, TAR_TRN_NO, WGT_TYPE, 
      GRS_WGT, TAR_WGT, NET_WGT, 
      NO2_WGT, GRS_WGT_NO, TAR_WGT_NO, 
      TAR_TYPE, TAR_INF_MODE, GRS_INF_MODE, 
      NET_INF_MODE, GRS_TIME, TAR_TIME, 
      NET_TIME, GRS_WRK_ORD, TAR_WRK_ORD, 
      NET_WRK_ORD, GRS_WRK_GRP, TAR_WRK_GRP, 
      NET_WRK_GRP, GRS_OPR, TAR_OPR, 
      NET_OPR, GRS_PNT_NAME, TAR_PNT_NAME, 
      NET_PNT_NAME, GRS_PNT_NO, TAR_PNT_NO, 
      NET_PNT_NO, NOTE, SDR_TYPE, 
      SDR_NAME, SENDER, SDR_NOTE, 
      RCV_TYPE, RCV_NAME, RECEIVER, 
      RCV_NOTE, MAT_NAME, MAT_CODE, 
      B1_PRN_NUM, B2_PRN_NUM, B1_PRN_NUM_2, 
      UPL_FLG, UPL_TIME, DEL_FLG, 
      EXT_BOX, SDR_GRS_WGT, SDR_TAR_WGT, 
      SDR_NET_WGT, DIS_WGT, DIS_RATIO, 
      NET_END, NO1_WGT_MODE, NO2_WGT_MODE, 
      RFID_NO, CHK_FLG, CHECKER, 
      CHK_TIME, CHM_PER, CHM_TIME, 
      CHM_TYPE, TRANSPORT, TRANS_NAME, 
      GRS_WGT_CURVE, TAR_WGT_CURVE, DIS_OPR, 
      DIS_TIME, FD_UPFLG, CH_UP, 
      CH_OPR, CH_TIME, TD_NO, 
      TD_WGT, DD_NO)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.wgtNo,jdbcType=VARCHAR}, 
      #{item.billno,jdbcType=VARCHAR}, #{item.truNo,jdbcType=VARCHAR}, #{item.lgsNo,jdbcType=VARCHAR}, 
      #{item.carNo,jdbcType=VARCHAR}, #{item.icdNo,jdbcType=VARCHAR}, #{item.grsBoxNo,jdbcType=DECIMAL}, 
      #{item.tarBoxNo,jdbcType=DECIMAL}, #{item.grsSpd,jdbcType=DECIMAL}, #{item.tarSpd,jdbcType=DECIMAL}, 
      #{item.trnType,jdbcType=VARCHAR}, #{item.grsVdoFile,jdbcType=VARCHAR}, #{item.tarVdoFile,jdbcType=VARCHAR}, 
      #{item.grsTrnNo,jdbcType=VARCHAR}, #{item.tarTrnNo,jdbcType=VARCHAR}, #{item.wgtType,jdbcType=VARCHAR}, 
      #{item.grsWgt,jdbcType=DECIMAL}, #{item.tarWgt,jdbcType=DECIMAL}, #{item.netWgt,jdbcType=DECIMAL}, 
      #{item.no2Wgt,jdbcType=DECIMAL}, #{item.grsWgtNo,jdbcType=VARCHAR}, #{item.tarWgtNo,jdbcType=VARCHAR}, 
      #{item.tarType,jdbcType=CHAR}, #{item.tarInfMode,jdbcType=CHAR}, #{item.grsInfMode,jdbcType=CHAR}, 
      #{item.netInfMode,jdbcType=CHAR}, #{item.grsTime,jdbcType=TIMESTAMP}, #{item.tarTime,jdbcType=TIMESTAMP}, 
      #{item.netTime,jdbcType=TIMESTAMP}, #{item.grsWrkOrd,jdbcType=VARCHAR}, #{item.tarWrkOrd,jdbcType=VARCHAR}, 
      #{item.netWrkOrd,jdbcType=VARCHAR}, #{item.grsWrkGrp,jdbcType=VARCHAR}, #{item.tarWrkGrp,jdbcType=VARCHAR}, 
      #{item.netWrkGrp,jdbcType=VARCHAR}, #{item.grsOpr,jdbcType=VARCHAR}, #{item.tarOpr,jdbcType=VARCHAR}, 
      #{item.netOpr,jdbcType=VARCHAR}, #{item.grsPntName,jdbcType=VARCHAR}, #{item.tarPntName,jdbcType=VARCHAR}, 
      #{item.netPntName,jdbcType=VARCHAR}, #{item.grsPntNo,jdbcType=VARCHAR}, #{item.tarPntNo,jdbcType=VARCHAR}, 
      #{item.netPntNo,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.sdrType,jdbcType=VARCHAR}, 
      #{item.sdrName,jdbcType=VARCHAR}, #{item.sender,jdbcType=VARCHAR}, #{item.sdrNote,jdbcType=VARCHAR}, 
      #{item.rcvType,jdbcType=VARCHAR}, #{item.rcvName,jdbcType=VARCHAR}, #{item.receiver,jdbcType=VARCHAR}, 
      #{item.rcvNote,jdbcType=VARCHAR}, #{item.matName,jdbcType=VARCHAR}, #{item.matCode,jdbcType=VARCHAR}, 
      #{item.b1PrnNum,jdbcType=DECIMAL}, #{item.b2PrnNum,jdbcType=DECIMAL}, #{item.b1PrnNum2,jdbcType=DECIMAL}, 
      #{item.uplFlg,jdbcType=VARCHAR}, #{item.uplTime,jdbcType=TIMESTAMP}, #{item.delFlg,jdbcType=VARCHAR}, 
      #{item.extBox,jdbcType=CHAR}, #{item.sdrGrsWgt,jdbcType=DECIMAL}, #{item.sdrTarWgt,jdbcType=DECIMAL}, 
      #{item.sdrNetWgt,jdbcType=DECIMAL}, #{item.disWgt,jdbcType=DECIMAL}, #{item.disRatio,jdbcType=DECIMAL}, 
      #{item.netEnd,jdbcType=DECIMAL}, #{item.no1WgtMode,jdbcType=VARCHAR}, #{item.no2WgtMode,jdbcType=VARCHAR}, 
      #{item.rfidNo,jdbcType=VARCHAR}, #{item.chkFlg,jdbcType=VARCHAR}, #{item.checker,jdbcType=VARCHAR}, 
      #{item.chkTime,jdbcType=TIMESTAMP}, #{item.chmPer,jdbcType=VARCHAR}, #{item.chmTime,jdbcType=TIMESTAMP}, 
      #{item.chmType,jdbcType=VARCHAR}, #{item.transport,jdbcType=VARCHAR}, #{item.transName,jdbcType=VARCHAR}, 
      #{item.grsWgtCurve,jdbcType=VARCHAR}, #{item.tarWgtCurve,jdbcType=VARCHAR}, #{item.disOpr,jdbcType=VARCHAR}, 
      #{item.disTime,jdbcType=TIMESTAMP}, #{item.fdUpflg,jdbcType=VARCHAR}, #{item.chUp,jdbcType=VARCHAR}, 
      #{item.chOpr,jdbcType=VARCHAR}, #{item.chTime,jdbcType=TIMESTAMP}, #{item.tdNo,jdbcType=VARCHAR}, 
      #{item.tdWgt,jdbcType=DECIMAL}, #{item.ddNo,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
     set
       WGT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.wgtNo,jdbcType=VARCHAR}
       </foreach>
       ,BILLNO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.billno,jdbcType=VARCHAR}
       </foreach>
       ,TRU_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.truNo,jdbcType=VARCHAR}
       </foreach>
       ,LGS_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.lgsNo,jdbcType=VARCHAR}
       </foreach>
       ,CAR_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
       </foreach>
       ,ICD_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.icdNo,jdbcType=VARCHAR}
       </foreach>
       ,GRS_BOX_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsBoxNo,jdbcType=DECIMAL}
       </foreach>
       ,TAR_BOX_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarBoxNo,jdbcType=DECIMAL}
       </foreach>
       ,GRS_SPD=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsSpd,jdbcType=DECIMAL}
       </foreach>
       ,TAR_SPD=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarSpd,jdbcType=DECIMAL}
       </foreach>
       ,TRN_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.trnType,jdbcType=VARCHAR}
       </foreach>
       ,GRS_VDO_FILE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsVdoFile,jdbcType=VARCHAR}
       </foreach>
       ,TAR_VDO_FILE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarVdoFile,jdbcType=VARCHAR}
       </foreach>
       ,GRS_TRN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsTrnNo,jdbcType=VARCHAR}
       </foreach>
       ,TAR_TRN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarTrnNo,jdbcType=VARCHAR}
       </foreach>
       ,WGT_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.wgtType,jdbcType=VARCHAR}
       </foreach>
       ,GRS_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsWgt,jdbcType=DECIMAL}
       </foreach>
       ,TAR_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarWgt,jdbcType=DECIMAL}
       </foreach>
       ,NET_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netWgt,jdbcType=DECIMAL}
       </foreach>
       ,NO2_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.no2Wgt,jdbcType=DECIMAL}
       </foreach>
       ,GRS_WGT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsWgtNo,jdbcType=VARCHAR}
       </foreach>
       ,TAR_WGT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarWgtNo,jdbcType=VARCHAR}
       </foreach>
       ,TAR_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarType,jdbcType=CHAR}
       </foreach>
       ,TAR_INF_MODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarInfMode,jdbcType=CHAR}
       </foreach>
       ,GRS_INF_MODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsInfMode,jdbcType=CHAR}
       </foreach>
       ,NET_INF_MODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netInfMode,jdbcType=CHAR}
       </foreach>
       ,GRS_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsTime,jdbcType=TIMESTAMP}
       </foreach>
       ,TAR_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarTime,jdbcType=TIMESTAMP}
       </foreach>
       ,NET_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netTime,jdbcType=TIMESTAMP}
       </foreach>
       ,GRS_WRK_ORD=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsWrkOrd,jdbcType=VARCHAR}
       </foreach>
       ,TAR_WRK_ORD=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarWrkOrd,jdbcType=VARCHAR}
       </foreach>
       ,NET_WRK_ORD=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netWrkOrd,jdbcType=VARCHAR}
       </foreach>
       ,GRS_WRK_GRP=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsWrkGrp,jdbcType=VARCHAR}
       </foreach>
       ,TAR_WRK_GRP=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarWrkGrp,jdbcType=VARCHAR}
       </foreach>
       ,NET_WRK_GRP=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netWrkGrp,jdbcType=VARCHAR}
       </foreach>
       ,GRS_OPR=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsOpr,jdbcType=VARCHAR}
       </foreach>
       ,TAR_OPR=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarOpr,jdbcType=VARCHAR}
       </foreach>
       ,NET_OPR=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netOpr,jdbcType=VARCHAR}
       </foreach>
       ,GRS_PNT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsPntName,jdbcType=VARCHAR}
       </foreach>
       ,TAR_PNT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarPntName,jdbcType=VARCHAR}
       </foreach>
       ,NET_PNT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netPntName,jdbcType=VARCHAR}
       </foreach>
       ,GRS_PNT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsPntNo,jdbcType=VARCHAR}
       </foreach>
       ,TAR_PNT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarPntNo,jdbcType=VARCHAR}
       </foreach>
       ,NET_PNT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netPntNo,jdbcType=VARCHAR}
       </foreach>
       ,NOTE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.note,jdbcType=VARCHAR}
       </foreach>
       ,SDR_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrType,jdbcType=VARCHAR}
       </foreach>
       ,SDR_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrName,jdbcType=VARCHAR}
       </foreach>
       ,SENDER=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sender,jdbcType=VARCHAR}
       </foreach>
       ,SDR_NOTE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrNote,jdbcType=VARCHAR}
       </foreach>
       ,RCV_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.rcvType,jdbcType=VARCHAR}
       </foreach>
       ,RCV_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.rcvName,jdbcType=VARCHAR}
       </foreach>
       ,RECEIVER=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.receiver,jdbcType=VARCHAR}
       </foreach>
       ,RCV_NOTE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.rcvNote,jdbcType=VARCHAR}
       </foreach>
       ,MAT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.matName,jdbcType=VARCHAR}
       </foreach>
       ,MAT_CODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.matCode,jdbcType=VARCHAR}
       </foreach>
       ,B1_PRN_NUM=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.b1PrnNum,jdbcType=DECIMAL}
       </foreach>
       ,B2_PRN_NUM=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.b2PrnNum,jdbcType=DECIMAL}
       </foreach>
       ,B1_PRN_NUM_2=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.b1PrnNum2,jdbcType=DECIMAL}
       </foreach>
       ,UPL_FLG=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.uplFlg,jdbcType=VARCHAR}
       </foreach>
       ,UPL_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.uplTime,jdbcType=TIMESTAMP}
       </foreach>
       ,DEL_FLG=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.delFlg,jdbcType=VARCHAR}
       </foreach>
       ,EXT_BOX=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.extBox,jdbcType=CHAR}
       </foreach>
       ,SDR_GRS_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrGrsWgt,jdbcType=DECIMAL}
       </foreach>
       ,SDR_TAR_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrTarWgt,jdbcType=DECIMAL}
       </foreach>
       ,SDR_NET_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.sdrNetWgt,jdbcType=DECIMAL}
       </foreach>
       ,DIS_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.disWgt,jdbcType=DECIMAL}
       </foreach>
       ,DIS_RATIO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.disRatio,jdbcType=DECIMAL}
       </foreach>
       ,NET_END=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.netEnd,jdbcType=DECIMAL}
       </foreach>
       ,NO1_WGT_MODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.no1WgtMode,jdbcType=VARCHAR}
       </foreach>
       ,NO2_WGT_MODE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.no2WgtMode,jdbcType=VARCHAR}
       </foreach>
       ,RFID_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.rfidNo,jdbcType=VARCHAR}
       </foreach>
       ,CHK_FLG=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chkFlg,jdbcType=VARCHAR}
       </foreach>
       ,CHECKER=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.checker,jdbcType=VARCHAR}
       </foreach>
       ,CHK_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chkTime,jdbcType=TIMESTAMP}
       </foreach>
       ,CHM_PER=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chmPer,jdbcType=VARCHAR}
       </foreach>
       ,CHM_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chmTime,jdbcType=TIMESTAMP}
       </foreach>
       ,CHM_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chmType,jdbcType=VARCHAR}
       </foreach>
       ,TRANSPORT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.transport,jdbcType=VARCHAR}
       </foreach>
       ,TRANS_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.transName,jdbcType=VARCHAR}
       </foreach>
       ,GRS_WGT_CURVE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.grsWgtCurve,jdbcType=VARCHAR}
       </foreach>
       ,TAR_WGT_CURVE=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tarWgtCurve,jdbcType=VARCHAR}
       </foreach>
       ,DIS_OPR=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.disOpr,jdbcType=VARCHAR}
       </foreach>
       ,DIS_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.disTime,jdbcType=TIMESTAMP}
       </foreach>
       ,FD_UPFLG=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.fdUpflg,jdbcType=VARCHAR}
       </foreach>
       ,CH_UP=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chUp,jdbcType=VARCHAR}
       </foreach>
       ,CH_OPR=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chOpr,jdbcType=VARCHAR}
       </foreach>
       ,CH_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.chTime,jdbcType=TIMESTAMP}
       </foreach>
       ,TD_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tdNo,jdbcType=VARCHAR}
       </foreach>
       ,TD_WGT=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.tdWgt,jdbcType=DECIMAL}
       </foreach>
       ,DD_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case WGT_NO" close="end">
          when #{item.wgtNo,jdbcType=VARCHAR} then #{item.ddNo,jdbcType=VARCHAR}
       </foreach>
     where WGT_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.wgtNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from  JGWEIGHT_USER.CMM_CARWEIGHTRESULTS 
    where WGT_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->

  <select id="selectSumForAppByCarOld" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  select t.mat_Name mat_Name,
    decode(t.wgt_Type,
    '100101',
    '外购进厂计量',
    '100102',
    '外销出厂计量',
    '100103',
    '厂内倒转计量',
    '100104',
    '厂际调拨计量',
    '非计量') wgt_Type,
    sum(t.net_Wgt) net_Wgt,
    count (1) car_No
    from JGWEIGHT_USER.CMM_CARWEIGHTRESULTS  t
    <include refid="where"/>
    group by t.mat_Name, t.wgt_Type
  </select>
</mapper>