<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.steerinfo.meterwork.meterworkcaractfirstbak.mapper.MeterWorkCarActFirstBakMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkcaractfirstbak.model.MeterWorkCarActFirstBak">
    <id column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
    <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
    <result column="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
    <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="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
    <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
    <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="UPLOAD_MAN_NO" jdbcType="VARCHAR" property="uploadManNo" />
    <result column="UPLOAD_MAN_NAME" jdbcType="VARCHAR" property="uploadManName" />
    <result column="UPLOAD_TIME" jdbcType="TIMESTAMP" property="uploadTime" />
    <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
    <result column="NOTE" jdbcType="VARCHAR" property="note" />
  </resultMap>
  <sql id="columns">
    ACTUAL_FIRST_NO, CAR_NO, METER_WEIGHT, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
    BASE_SPOT_NO, BASE_SPOT_NAME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, UPLOAD_MAN_NO, 
    UPLOAD_MAN_NAME, UPLOAD_TIME, UPLOAD_FLAG, NOTE
  </sql>
  <sql id="columns_alias">
    t.ACTUAL_FIRST_NO, t.CAR_NO, t.METER_WEIGHT, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, 
    t.CREATE_TIME, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, 
    t.UPDATE_TIME, t.UPLOAD_MAN_NO, t.UPLOAD_MAN_NAME, t.UPLOAD_TIME, t.UPLOAD_FLAG, 
    t.NOTE
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_WORK_CAR_ACT_FIRST_BAK
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_WORK_CAR_ACT_FIRST_BAK t
  </sql>
  <sql id="where">
    <where> 
      <if test="actualFirstNo != null and actualFirstNo != ''">
        and ACTUAL_FIRST_NO = #{actualFirstNo}
      </if>
      <if test="carNo != null and carNo != ''">
        and CAR_NO = #{carNo}
      </if>
      <if test="meterWeight != null">
        and METER_WEIGHT = #{meterWeight}
      </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="baseSpotNo != null and baseSpotNo != ''">
        and BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        and BASE_SPOT_NAME = #{baseSpotName}
      </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="uploadManNo != null and uploadManNo != ''">
        and UPLOAD_MAN_NO = #{uploadManNo}
      </if>
      <if test="uploadManName != null and uploadManName != ''">
        and UPLOAD_MAN_NAME = #{uploadManName}
      </if>
      <if test="uploadTime != null">
        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
      </if>
      <if test="uploadFlag != null and uploadFlag != ''">
        and UPLOAD_FLAG = #{uploadFlag}
      </if>
      <if test="note != null and note != ''">
        and NOTE = #{note}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="actualFirstNo != null and actualFirstNo != ''">
        and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
      </if>
      <if test="carNo != null and carNo != ''">
        and CAR_NO LIKE '%${carNo}%'
      </if>
      <if test="meterWeight != null">
        and METER_WEIGHT = #{meterWeight}
      </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="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="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="uploadManNo != null and uploadManNo != ''">
        and UPLOAD_MAN_NO LIKE '%${uploadManNo}%'
      </if>
      <if test="uploadManName != null and uploadManName != ''">
        and UPLOAD_MAN_NAME LIKE '%${uploadManName}%'
      </if>
      <if test="uploadTime != null">
        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
      </if>
      <if test="uploadFlag != null and uploadFlag != ''">
        and UPLOAD_FLAG LIKE '%${uploadFlag}%'
      </if>
      <if test="note != null and note != ''">
        and NOTE LIKE '%${note}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_WORK_CAR_ACT_FIRST_BAK
    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_WORK_CAR_ACT_FIRST_BAK
    where 1!=1 
      <if test="carNo != null and carNo != ''">
        or CAR_NO = #{carNo}
      </if>
      <if test="meterWeight != null">
        or METER_WEIGHT = #{meterWeight}
      </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="baseSpotNo != null and baseSpotNo != ''">
        or BASE_SPOT_NO = #{baseSpotNo}
      </if>
      <if test="baseSpotName != null and baseSpotName != ''">
        or BASE_SPOT_NAME = #{baseSpotName}
      </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="uploadManNo != null and uploadManNo != ''">
        or UPLOAD_MAN_NO = #{uploadManNo}
      </if>
      <if test="uploadManName != null and uploadManName != ''">
        or UPLOAD_MAN_NAME = #{uploadManName}
      </if>
      <if test="uploadTime != null">
        or TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = '#{uploadTime}'
      </if>
      <if test="uploadFlag != null and uploadFlag != ''">
        or UPLOAD_FLAG = #{uploadFlag}
      </if>
      <if test="note != null and note != ''">
        or NOTE = #{note}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcaractfirstbak.model.MeterWorkCarActFirstBak">
    insert into METER_WORK_CAR_ACT_FIRST_BAK (ACTUAL_FIRST_NO, CAR_NO, METER_WEIGHT, 
      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
      BASE_SPOT_NO, BASE_SPOT_NAME, UPDATE_MAN_NO, 
      UPDATE_MAN_NAME, UPDATE_TIME, UPLOAD_MAN_NO, 
      UPLOAD_MAN_NAME, UPLOAD_TIME, UPLOAD_FLAG, 
      NOTE)
    values (#{actualFirstNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{meterWeight,jdbcType=DECIMAL}, 
      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, 
      #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{uploadManNo,jdbcType=VARCHAR}, 
      #{uploadManName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP}, #{uploadFlag,jdbcType=VARCHAR}, 
      #{note,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcaractfirstbak.model.MeterWorkCarActFirstBak">
    insert into METER_WORK_CAR_ACT_FIRST_BAK
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="actualFirstNo != null">
        ACTUAL_FIRST_NO,
      </if>
      <if test="carNo != null">
        CAR_NO,
      </if>
      <if test="meterWeight != null">
        METER_WEIGHT,
      </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="baseSpotNo != null">
        BASE_SPOT_NO,
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME,
      </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="uploadManNo != null">
        UPLOAD_MAN_NO,
      </if>
      <if test="uploadManName != null">
        UPLOAD_MAN_NAME,
      </if>
      <if test="uploadTime != null">
        UPLOAD_TIME,
      </if>
      <if test="uploadFlag != null">
        UPLOAD_FLAG,
      </if>
      <if test="note != null">
        NOTE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="actualFirstNo != null">
        #{actualFirstNo,jdbcType=VARCHAR},
      </if>
      <if test="carNo != null">
        #{carNo,jdbcType=VARCHAR},
      </if>
      <if test="meterWeight != null">
        #{meterWeight,jdbcType=DECIMAL},
      </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="baseSpotNo != null">
        #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        #{baseSpotName,jdbcType=VARCHAR},
      </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="uploadManNo != null">
        #{uploadManNo,jdbcType=VARCHAR},
      </if>
      <if test="uploadManName != null">
        #{uploadManName,jdbcType=VARCHAR},
      </if>
      <if test="uploadTime != null">
        #{uploadTime,jdbcType=TIMESTAMP},
      </if>
      <if test="uploadFlag != null">
        #{uploadFlag,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        #{note,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcaractfirstbak.model.MeterWorkCarActFirstBak">
    update METER_WORK_CAR_ACT_FIRST_BAK
    set CAR_NO = #{carNo,jdbcType=VARCHAR},
      METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
      UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
      UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
      UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
      NOTE = #{note,jdbcType=VARCHAR}
    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcaractfirstbak.model.MeterWorkCarActFirstBak">
    update METER_WORK_CAR_ACT_FIRST_BAK
    <set>
      <if test="carNo != null">
        CAR_NO = #{carNo,jdbcType=VARCHAR},
      </if>
      <if test="meterWeight != null">
        METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
      </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="baseSpotNo != null">
        BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
      </if>
      <if test="baseSpotName != null">
        BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
      </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="uploadManNo != null">
        UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
      </if>
      <if test="uploadManName != null">
        UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
      </if>
      <if test="uploadTime != null">
        UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
      </if>
      <if test="uploadFlag != null">
        UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        NOTE = #{note,jdbcType=VARCHAR},
      </if>
    </set>
    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="where"/>
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="whereLike"/>
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into METER_WORK_CAR_ACT_FIRST_BAK 
      (ACTUAL_FIRST_NO, 
      CAR_NO, METER_WEIGHT, CREATE_MAN_NO, 
      CREATE_MAN_NAME, CREATE_TIME, 
      BASE_SPOT_NO, BASE_SPOT_NAME, UPDATE_MAN_NO, 
      UPDATE_MAN_NAME, UPDATE_TIME, 
      UPLOAD_MAN_NO, UPLOAD_MAN_NAME, UPLOAD_TIME, 
      UPLOAD_FLAG, NOTE)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.actualFirstNo,jdbcType=VARCHAR}, 
      #{item.carNo,jdbcType=VARCHAR}, #{item.meterWeight,jdbcType=DECIMAL}, #{item.createManNo,jdbcType=VARCHAR}, 
      #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
      #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=VARCHAR}, 
      #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
      #{item.uploadManNo,jdbcType=VARCHAR}, #{item.uploadManName,jdbcType=VARCHAR}, #{item.uploadTime,jdbcType=TIMESTAMP}, 
      #{item.uploadFlag,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_WORK_CAR_ACT_FIRST_BAK
     set
       ACTUAL_FIRST_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
       </foreach>
       ,CAR_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
       </foreach>
       ,METER_WEIGHT=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterWeight,jdbcType=DECIMAL}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,BASE_SPOT_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
       </foreach>
       ,BASE_SPOT_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPLOAD_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.uploadManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPLOAD_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.uploadManName,jdbcType=VARCHAR}
       </foreach>
       ,UPLOAD_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.uploadTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPLOAD_FLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.uploadFlag,jdbcType=VARCHAR}
       </foreach>
       ,NOTE=
       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.note,jdbcType=VARCHAR}
       </foreach>
     where ACTUAL_FIRST_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.actualFirstNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_WORK_CAR_ACT_FIRST_BAK
    where ACTUAL_FIRST_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  
</mapper>