<?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.baseinfo.meterbaseunloadtimecontrol.mapper.MeterBaseUnloadTimecontrolMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbaseunloadtimecontrol.model.MeterBaseUnloadTimecontrol">
    <id column="UNLOAD_TIME_NO" jdbcType="VARCHAR" property="unloadTimeNo" />
    <result column="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
    <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
    <result column="LOAD_TIME" jdbcType="DECIMAL" property="loadTime" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
    <result column="GRSOSS_WEIGHT_TIME" jdbcType="TIMESTAMP" property="grsossWeightTime" />
    <result column="UNLOAD_END_TIMA" jdbcType="TIMESTAMP" property="unloadEndTima" />
    <result column="UNLOAD_OPERATE_TIMA" jdbcType="TIMESTAMP" property="unloadOperateTima" />
    <result column="GROSS_NO" jdbcType="VARCHAR" property="grossNo" />
  </resultMap>
  <sql id="columns">
    UNLOAD_TIME_NO, BASE_SPOT_NO, BASE_SPOT_NAME, LOAD_POINT_NO, LOAD_POINT_NAME, LOAD_TIME, 
    MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
    UPDATE_TIME, MATTER_NO, MATTER_NAME, GRSOSS_WEIGHT_TIME, UNLOAD_END_TIMA, UNLOAD_OPERATE_TIMA, 
    GROSS_NO
  </sql>
  <sql id="columns_alias">
    t.UNLOAD_TIME_NO, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, 
    t.LOAD_TIME, t.MEMO, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, 
    t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.MATTER_NO, t.MATTER_NAME, t.GRSOSS_WEIGHT_TIME, 
    t.UNLOAD_END_TIMA, t.UNLOAD_OPERATE_TIMA, t.GROSS_NO
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_BASE_UNLOAD_TIMECONTROL
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_BASE_UNLOAD_TIMECONTROL t
  </sql>
  <sql id="where">
    <where> 
      <if test="unloadTimeNo != null and unloadTimeNo != ''">
        and UNLOAD_TIME_NO = #{unloadTimeNo}
      </if>
      <if test="baseSpotNo != null and baseSpotNo != ''">
        and BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        and BASE_SPOT_NAME = #{baseSpotName}
      </if>
      <if test="loadPointNo != null and loadPointNo != ''">
        and LOAD_POINT_NO = #{loadPointNo}
      </if>
      <if test="loadPointName != null and loadPointName != ''">
        and LOAD_POINT_NAME = #{loadPointName}
      </if>
      <if test="loadTime != null">
        and LOAD_TIME = #{loadTime}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO = #{memo}
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="matterNo != null and matterNo != ''">
        and MATTER_NO = #{matterNo}
      </if>
      <if test="matterName != null and matterName != ''">
        and MATTER_NAME = #{matterName}
      </if>
      <if test="grsossWeightTime != null">
        and TO_CHAR(GRSOSS_WEIGHT_TIME,'yyyy-MM-dd') = #{grsossWeightTime}
      </if>
      <if test="unloadEndTima != null">
        and TO_CHAR(UNLOAD_END_TIMA,'yyyy-MM-dd') = #{unloadEndTima}
      </if>
      <if test="unloadOperateTima != null">
        and TO_CHAR(UNLOAD_OPERATE_TIMA,'yyyy-MM-dd') = #{unloadOperateTima}
      </if>
      <if test="grossNo != null and grossNo != ''">
        and GROSS_NO = #{grossNo}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="unloadTimeNo != null and unloadTimeNo != ''">
        and UNLOAD_TIME_NO LIKE '%${unloadTimeNo}%'
      </if>
      <if test="baseSpotNo != null and baseSpotNo != ''">
        and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
      </if>
      <if test="loadPointNo != null and loadPointNo != ''">
        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
      </if>
      <if test="loadPointName != null and loadPointName != ''">
        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
      </if>
      <if test="loadTime != null">
        and LOAD_TIME = #{loadTime}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO LIKE '%${memo}%'
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO LIKE '%${createManNo}%'
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME LIKE '%${createManName}%'
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="matterNo != null and matterNo != ''">
        and MATTER_NO LIKE '%${matterNo}%'
      </if>
      <if test="matterName != null and matterName != ''">
        and MATTER_NAME LIKE '%${matterName}%'
      </if>
      <if test="grsossWeightTime != null">
        and TO_CHAR(GRSOSS_WEIGHT_TIME,'yyyy-MM-dd') = #{grsossWeightTime}
      </if>
      <if test="unloadEndTima != null">
        and TO_CHAR(UNLOAD_END_TIMA,'yyyy-MM-dd') = #{unloadEndTima}
      </if>
      <if test="unloadOperateTima != null">
        and TO_CHAR(UNLOAD_OPERATE_TIMA,'yyyy-MM-dd') = #{unloadOperateTima}
      </if>
      <if test="grossNo != null and grossNo != ''">
        and GROSS_NO LIKE '%${grossNo}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_BASE_UNLOAD_TIMECONTROL
    where UNLOAD_TIME_NO = #{unloadTimeNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_BASE_UNLOAD_TIMECONTROL
    where 1!=1 
      <if test="baseSpotNo != null and baseSpotNo != ''">
        or BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        or BASE_SPOT_NAME = #{baseSpotName}
      </if>
      <if test="loadPointNo != null and loadPointNo != ''">
        or LOAD_POINT_NO = #{loadPointNo}
      </if>
      <if test="loadPointName != null and loadPointName != ''">
        or LOAD_POINT_NAME = #{loadPointName}
      </if>
      <if test="loadTime != null">
        or LOAD_TIME = #{loadTime}
      </if>
      <if test="memo != null and memo != ''">
        or MEMO = #{memo}
      </if>
      <if test="createManNo != null and createManNo != ''">
        or CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        or CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        or UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        or UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
      </if>
      <if test="matterNo != null and matterNo != ''">
        or MATTER_NO = #{matterNo}
      </if>
      <if test="matterName != null and matterName != ''">
        or MATTER_NAME = #{matterName}
      </if>
      <if test="grsossWeightTime != null">
        or TO_CHAR(GRSOSS_WEIGHT_TIME,'yyyy-MM-dd') = '#{grsossWeightTime}'
      </if>
      <if test="unloadEndTima != null">
        or TO_CHAR(UNLOAD_END_TIMA,'yyyy-MM-dd') = '#{unloadEndTima}'
      </if>
      <if test="unloadOperateTima != null">
        or TO_CHAR(UNLOAD_OPERATE_TIMA,'yyyy-MM-dd') = '#{unloadOperateTima}'
      </if>
      <if test="grossNo != null and grossNo != ''">
        or GROSS_NO = #{grossNo}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbaseunloadtimecontrol.model.MeterBaseUnloadTimecontrol">
    insert into METER_BASE_UNLOAD_TIMECONTROL (UNLOAD_TIME_NO, BASE_SPOT_NO, BASE_SPOT_NAME, 
      LOAD_POINT_NO, LOAD_POINT_NAME, LOAD_TIME, 
      MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, 
      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
      UPDATE_TIME, MATTER_NO, MATTER_NAME, 
      GRSOSS_WEIGHT_TIME, UNLOAD_END_TIMA, UNLOAD_OPERATE_TIMA, 
      GROSS_NO)
    values (#{unloadTimeNo,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR}, 
      #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR}, #{loadTime,jdbcType=DECIMAL}, 
      #{memo,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR}, 
      #{grsossWeightTime,jdbcType=TIMESTAMP}, #{unloadEndTima,jdbcType=TIMESTAMP}, #{unloadOperateTima,jdbcType=TIMESTAMP}, 
      #{grossNo,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbaseunloadtimecontrol.model.MeterBaseUnloadTimecontrol">
    insert into METER_BASE_UNLOAD_TIMECONTROL
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="unloadTimeNo != null">
        UNLOAD_TIME_NO,
      </if>
      <if test="baseSpotNo != null">
        BASE_SPOT_NO,
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME,
      </if>
      <if test="loadPointNo != null">
        LOAD_POINT_NO,
      </if>
      <if test="loadPointName != null">
        LOAD_POINT_NAME,
      </if>
      <if test="loadTime != null">
        LOAD_TIME,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO,
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME,
      </if>
      <if test="createTime != null">
        CREATE_TIME,
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO,
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME,
      </if>
      <if test="updateTime != null">
        UPDATE_TIME,
      </if>
      <if test="matterNo != null">
        MATTER_NO,
      </if>
      <if test="matterName != null">
        MATTER_NAME,
      </if>
      <if test="grsossWeightTime != null">
        GRSOSS_WEIGHT_TIME,
      </if>
      <if test="unloadEndTima != null">
        UNLOAD_END_TIMA,
      </if>
      <if test="unloadOperateTima != null">
        UNLOAD_OPERATE_TIMA,
      </if>
      <if test="grossNo != null">
        GROSS_NO,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="unloadTimeNo != null">
        #{unloadTimeNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotNo != null">
        #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        #{baseSpotName,jdbcType=VARCHAR},
      </if>
      <if test="loadPointNo != null">
        #{loadPointNo,jdbcType=VARCHAR},
      </if>
      <if test="loadPointName != null">
        #{loadPointName,jdbcType=VARCHAR},
      </if>
      <if test="loadTime != null">
        #{loadTime,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="matterNo != null">
        #{matterNo,jdbcType=VARCHAR},
      </if>
      <if test="matterName != null">
        #{matterName,jdbcType=VARCHAR},
      </if>
      <if test="grsossWeightTime != null">
        #{grsossWeightTime,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadEndTima != null">
        #{unloadEndTima,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadOperateTima != null">
        #{unloadOperateTima,jdbcType=TIMESTAMP},
      </if>
      <if test="grossNo != null">
        #{grossNo,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbaseunloadtimecontrol.model.MeterBaseUnloadTimecontrol">
    update METER_BASE_UNLOAD_TIMECONTROL
    set BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
      LOAD_TIME = #{loadTime,jdbcType=DECIMAL},
      MEMO = #{memo,jdbcType=VARCHAR},
      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
      GRSOSS_WEIGHT_TIME = #{grsossWeightTime,jdbcType=TIMESTAMP},
      UNLOAD_END_TIMA = #{unloadEndTima,jdbcType=TIMESTAMP},
      UNLOAD_OPERATE_TIMA = #{unloadOperateTima,jdbcType=TIMESTAMP},
      GROSS_NO = #{grossNo,jdbcType=VARCHAR}
    where UNLOAD_TIME_NO = #{unloadTimeNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbaseunloadtimecontrol.model.MeterBaseUnloadTimecontrol">
    update METER_BASE_UNLOAD_TIMECONTROL
    <set>
      <if test="baseSpotNo != null">
        BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      </if>
      <if test="loadPointNo != null">
        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
      </if>
      <if test="loadPointName != null">
        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
      </if>
      <if test="loadTime != null">
        LOAD_TIME = #{loadTime,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="matterNo != null">
        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
      </if>
      <if test="matterName != null">
        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
      </if>
      <if test="grsossWeightTime != null">
        GRSOSS_WEIGHT_TIME = #{grsossWeightTime,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadEndTima != null">
        UNLOAD_END_TIMA = #{unloadEndTima,jdbcType=TIMESTAMP},
      </if>
      <if test="unloadOperateTima != null">
        UNLOAD_OPERATE_TIMA = #{unloadOperateTima,jdbcType=TIMESTAMP},
      </if>
      <if test="grossNo != null">
        GROSS_NO = #{grossNo,jdbcType=VARCHAR},
      </if>
    </set>
    where UNLOAD_TIME_NO = #{unloadTimeNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where UNLOAD_TIME_NO = #{unloadTimeNo,jdbcType=VARCHAR}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="where"/>
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="whereLike"/>
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into METER_BASE_UNLOAD_TIMECONTROL 
      (UNLOAD_TIME_NO, 
      BASE_SPOT_NO, BASE_SPOT_NAME, LOAD_POINT_NO, 
      LOAD_POINT_NAME, LOAD_TIME, MEMO, 
      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
      MATTER_NO, MATTER_NAME, GRSOSS_WEIGHT_TIME, 
      UNLOAD_END_TIMA, UNLOAD_OPERATE_TIMA, 
      GROSS_NO)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.unloadTimeNo,jdbcType=VARCHAR}, 
      #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, #{item.loadPointNo,jdbcType=VARCHAR}, 
      #{item.loadPointName,jdbcType=VARCHAR}, #{item.loadTime,jdbcType=DECIMAL}, #{item.memo,jdbcType=VARCHAR}, 
      #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
      #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
      #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.grsossWeightTime,jdbcType=TIMESTAMP}, 
      #{item.unloadEndTima,jdbcType=TIMESTAMP}, #{item.unloadOperateTima,jdbcType=TIMESTAMP}, 
      #{item.grossNo,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_BASE_UNLOAD_TIMECONTROL
     set
       UNLOAD_TIME_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.unloadTimeNo,jdbcType=VARCHAR}
       </foreach>
       ,BASE_SPOT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
       </foreach>
       ,BASE_SPOT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
       </foreach>
       ,LOAD_POINT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
       </foreach>
       ,LOAD_POINT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
       </foreach>
       ,LOAD_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.loadTime,jdbcType=DECIMAL}
       </foreach>
       ,MEMO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
       ,MATTER_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
       </foreach>
       ,MATTER_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
       </foreach>
       ,GRSOSS_WEIGHT_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.grsossWeightTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UNLOAD_END_TIMA=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.unloadEndTima,jdbcType=TIMESTAMP}
       </foreach>
       ,UNLOAD_OPERATE_TIMA=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.unloadOperateTima,jdbcType=TIMESTAMP}
       </foreach>
       ,GROSS_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case UNLOAD_TIME_NO" close="end">
          when #{item.unloadTimeNo,jdbcType=VARCHAR} then #{item.grossNo,jdbcType=VARCHAR}
       </foreach>
     where UNLOAD_TIME_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.unloadTimeNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_BASE_UNLOAD_TIMECONTROL
    where UNLOAD_TIME_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  
</mapper>