<?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.jisco.dynamicweight.dynamicbasecamera.mapper.DynamicBaseCameraMapper">
  <resultMap id="BaseResultMap" type="com.jisco.dynamicweight.dynamicbasecamera.model.DynamicBaseCamera">
    <id column="CAMERA_NO" jdbcType="VARCHAR" property="cameraNo" />
    <result column="NAME" jdbcType="VARCHAR" property="name" />
    <result column="MS_IP" jdbcType="VARCHAR" property="msIp" />
    <result column="NVR_IP" jdbcType="VARCHAR" property="nvrIp" />
    <result column="MS_PORT" jdbcType="DECIMAL" property="msPort" />
    <result column="MS_CHANNEL" jdbcType="DECIMAL" property="msChannel" />
    <result column="CAMERA_IP" jdbcType="VARCHAR" property="cameraIp" />
    <result column="RSTP_PORT" jdbcType="DECIMAL" property="rstpPort" />
    <result column="VEDIO_TYPE" jdbcType="DECIMAL" property="vedioType" />
    <result column="CAMERA_CHANNEL" jdbcType="DECIMAL" property="cameraChannel" />
    <result column="USERNAME" jdbcType="VARCHAR" property="username" />
    <result column="PASSWORD" jdbcType="VARCHAR" property="password" />
    <result column="MANUFACTURER" jdbcType="VARCHAR" property="manufacturer" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag" />
    <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" />
  </resultMap>
  <sql id="columns">
    CAMERA_NO, NAME, MS_IP, NVR_IP, MS_PORT, MS_CHANNEL, CAMERA_IP, RSTP_PORT, VEDIO_TYPE, 
    CAMERA_CHANNEL, USERNAME, PASSWORD, MANUFACTURER, MEMO, VALID_FLAG, CREATE_MAN_NO, 
    CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME
  </sql>
  <sql id="columns_alias">
    t.CAMERA_NO, t.NAME, t.MS_IP, t.NVR_IP, t.MS_PORT, t.MS_CHANNEL, t.CAMERA_IP, t.RSTP_PORT, 
    t.VEDIO_TYPE, t.CAMERA_CHANNEL, t.USERNAME, t.PASSWORD, t.MANUFACTURER, t.MEMO, t.VALID_FLAG, 
    t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, 
    t.UPDATE_TIME
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM DYNAMIC_BASE_CAMERA
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM DYNAMIC_BASE_CAMERA t
  </sql>
  <sql id="where">
    <where> 
      <if test="cameraNo != null and cameraNo != ''">
        and CAMERA_NO = #{cameraNo}
      </if>
      <if test="name != null and name != ''">
        and NAME = #{name}
      </if>
      <if test="msIp != null and msIp != ''">
        and MS_IP = #{msIp}
      </if>
      <if test="nvrIp != null and nvrIp != ''">
        and NVR_IP = #{nvrIp}
      </if>
      <if test="msPort != null">
        and MS_PORT = #{msPort}
      </if>
      <if test="msChannel != null">
        and MS_CHANNEL = #{msChannel}
      </if>
      <if test="cameraIp != null and cameraIp != ''">
        and CAMERA_IP = #{cameraIp}
      </if>
      <if test="rstpPort != null">
        and RSTP_PORT = #{rstpPort}
      </if>
      <if test="vedioType != null">
        and VEDIO_TYPE = #{vedioType}
      </if>
      <if test="cameraChannel != null">
        and CAMERA_CHANNEL = #{cameraChannel}
      </if>
      <if test="username != null and username != ''">
        and USERNAME = #{username}
      </if>
      <if test="password != null and password != ''">
        and PASSWORD = #{password}
      </if>
      <if test="manufacturer != null and manufacturer != ''">
        and MANUFACTURER = #{manufacturer}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO = #{memo}
      </if>
      <if test="validFlag != null and validFlag != ''">
        and VALID_FLAG = #{validFlag}
      </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>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="cameraNo != null and cameraNo != ''">
        and CAMERA_NO LIKE '%${cameraNo}%'
      </if>
      <if test="name != null and name != ''">
        and NAME LIKE '%${name}%'
      </if>
      <if test="msIp != null and msIp != ''">
        and MS_IP LIKE '%${msIp}%'
      </if>
      <if test="nvrIp != null and nvrIp != ''">
        and NVR_IP LIKE '%${nvrIp}%'
      </if>
      <if test="msPort != null">
        and MS_PORT = #{msPort}
      </if>
      <if test="msChannel != null">
        and MS_CHANNEL = #{msChannel}
      </if>
      <if test="cameraIp != null and cameraIp != ''">
        and CAMERA_IP LIKE '%${cameraIp}%'
      </if>
      <if test="rstpPort != null">
        and RSTP_PORT = #{rstpPort}
      </if>
      <if test="vedioType != null">
        and VEDIO_TYPE = #{vedioType}
      </if>
      <if test="cameraChannel != null">
        and CAMERA_CHANNEL = #{cameraChannel}
      </if>
      <if test="username != null and username != ''">
        and USERNAME LIKE '%${username}%'
      </if>
      <if test="password != null and password != ''">
        and PASSWORD LIKE '%${password}%'
      </if>
      <if test="manufacturer != null and manufacturer != ''">
        and MANUFACTURER LIKE '%${manufacturer}%'
      </if>
      <if test="memo != null and memo != ''">
        and MEMO LIKE '%${memo}%'
      </if>
      <if test="validFlag != null and validFlag != ''">
        and VALID_FLAG LIKE '%${validFlag}%'
      </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>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from DYNAMIC_BASE_CAMERA
    where CAMERA_NO = #{cameraNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from DYNAMIC_BASE_CAMERA
    where 1!=1 
      <if test="name != null and name != ''">
        or NAME = #{name}
      </if>
      <if test="msIp != null and msIp != ''">
        or MS_IP = #{msIp}
      </if>
      <if test="nvrIp != null and nvrIp != ''">
        or NVR_IP = #{nvrIp}
      </if>
      <if test="msPort != null">
        or MS_PORT = #{msPort}
      </if>
      <if test="msChannel != null">
        or MS_CHANNEL = #{msChannel}
      </if>
      <if test="cameraIp != null and cameraIp != ''">
        or CAMERA_IP = #{cameraIp}
      </if>
      <if test="rstpPort != null">
        or RSTP_PORT = #{rstpPort}
      </if>
      <if test="vedioType != null">
        or VEDIO_TYPE = #{vedioType}
      </if>
      <if test="cameraChannel != null">
        or CAMERA_CHANNEL = #{cameraChannel}
      </if>
      <if test="username != null and username != ''">
        or USERNAME = #{username}
      </if>
      <if test="password != null and password != ''">
        or PASSWORD = #{password}
      </if>
      <if test="manufacturer != null and manufacturer != ''">
        or MANUFACTURER = #{manufacturer}
      </if>
      <if test="memo != null and memo != ''">
        or MEMO = #{memo}
      </if>
      <if test="validFlag != null and validFlag != ''">
        or VALID_FLAG = #{validFlag}
      </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>
  </delete>
  <insert id="insert" parameterType="com.jisco.dynamicweight.dynamicbasecamera.model.DynamicBaseCamera">
    insert into DYNAMIC_BASE_CAMERA (CAMERA_NO, NAME, MS_IP, 
      NVR_IP, MS_PORT, MS_CHANNEL, 
      CAMERA_IP, RSTP_PORT, VEDIO_TYPE, 
      CAMERA_CHANNEL, USERNAME, PASSWORD, 
      MANUFACTURER, MEMO, VALID_FLAG, 
      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME
      )
    values (#{cameraNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{msIp,jdbcType=VARCHAR}, 
      #{nvrIp,jdbcType=VARCHAR}, #{msPort,jdbcType=DECIMAL}, #{msChannel,jdbcType=DECIMAL}, 
      #{cameraIp,jdbcType=VARCHAR}, #{rstpPort,jdbcType=DECIMAL}, #{vedioType,jdbcType=DECIMAL}, 
      #{cameraChannel,jdbcType=DECIMAL}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, 
      #{manufacturer,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR}, 
      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.jisco.dynamicweight.dynamicbasecamera.model.DynamicBaseCamera">
    insert into DYNAMIC_BASE_CAMERA
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="cameraNo != null">
        CAMERA_NO,
      </if>
      <if test="name != null">
        NAME,
      </if>
      <if test="msIp != null">
        MS_IP,
      </if>
      <if test="nvrIp != null">
        NVR_IP,
      </if>
      <if test="msPort != null">
        MS_PORT,
      </if>
      <if test="msChannel != null">
        MS_CHANNEL,
      </if>
      <if test="cameraIp != null">
        CAMERA_IP,
      </if>
      <if test="rstpPort != null">
        RSTP_PORT,
      </if>
      <if test="vedioType != null">
        VEDIO_TYPE,
      </if>
      <if test="cameraChannel != null">
        CAMERA_CHANNEL,
      </if>
      <if test="username != null">
        USERNAME,
      </if>
      <if test="password != null">
        PASSWORD,
      </if>
      <if test="manufacturer != null">
        MANUFACTURER,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="validFlag != null">
        VALID_FLAG,
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO,
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME,
      </if>
      <if test="createTime != null">
        CREATE_TIME,
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO,
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME,
      </if>
      <if test="updateTime != null">
        UPDATE_TIME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="cameraNo != null">
        #{cameraNo,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="msIp != null">
        #{msIp,jdbcType=VARCHAR},
      </if>
      <if test="nvrIp != null">
        #{nvrIp,jdbcType=VARCHAR},
      </if>
      <if test="msPort != null">
        #{msPort,jdbcType=DECIMAL},
      </if>
      <if test="msChannel != null">
        #{msChannel,jdbcType=DECIMAL},
      </if>
      <if test="cameraIp != null">
        #{cameraIp,jdbcType=VARCHAR},
      </if>
      <if test="rstpPort != null">
        #{rstpPort,jdbcType=DECIMAL},
      </if>
      <if test="vedioType != null">
        #{vedioType,jdbcType=DECIMAL},
      </if>
      <if test="cameraChannel != null">
        #{cameraChannel,jdbcType=DECIMAL},
      </if>
      <if test="username != null">
        #{username,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        #{password,jdbcType=VARCHAR},
      </if>
      <if test="manufacturer != null">
        #{manufacturer,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="validFlag != null">
        #{validFlag,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>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.jisco.dynamicweight.dynamicbasecamera.model.DynamicBaseCamera">
    update DYNAMIC_BASE_CAMERA
    set NAME = #{name,jdbcType=VARCHAR},
      MS_IP = #{msIp,jdbcType=VARCHAR},
      NVR_IP = #{nvrIp,jdbcType=VARCHAR},
      MS_PORT = #{msPort,jdbcType=DECIMAL},
      MS_CHANNEL = #{msChannel,jdbcType=DECIMAL},
      CAMERA_IP = #{cameraIp,jdbcType=VARCHAR},
      RSTP_PORT = #{rstpPort,jdbcType=DECIMAL},
      VEDIO_TYPE = #{vedioType,jdbcType=DECIMAL},
      CAMERA_CHANNEL = #{cameraChannel,jdbcType=DECIMAL},
      USERNAME = #{username,jdbcType=VARCHAR},
      PASSWORD = #{password,jdbcType=VARCHAR},
      MANUFACTURER = #{manufacturer,jdbcType=VARCHAR},
      MEMO = #{memo,jdbcType=VARCHAR},
      VALID_FLAG = #{validFlag,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}
    where CAMERA_NO = #{cameraNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.jisco.dynamicweight.dynamicbasecamera.model.DynamicBaseCamera">
    update DYNAMIC_BASE_CAMERA
    <set>
      <if test="name != null">
        NAME = #{name,jdbcType=VARCHAR},
      </if>
      <if test="msIp != null">
        MS_IP = #{msIp,jdbcType=VARCHAR},
      </if>
      <if test="nvrIp != null">
        NVR_IP = #{nvrIp,jdbcType=VARCHAR},
      </if>
      <if test="msPort != null">
        MS_PORT = #{msPort,jdbcType=DECIMAL},
      </if>
      <if test="msChannel != null">
        MS_CHANNEL = #{msChannel,jdbcType=DECIMAL},
      </if>
      <if test="cameraIp != null">
        CAMERA_IP = #{cameraIp,jdbcType=VARCHAR},
      </if>
      <if test="rstpPort != null">
        RSTP_PORT = #{rstpPort,jdbcType=DECIMAL},
      </if>
      <if test="vedioType != null">
        VEDIO_TYPE = #{vedioType,jdbcType=DECIMAL},
      </if>
      <if test="cameraChannel != null">
        CAMERA_CHANNEL = #{cameraChannel,jdbcType=DECIMAL},
      </if>
      <if test="username != null">
        USERNAME = #{username,jdbcType=VARCHAR},
      </if>
      <if test="password != null">
        PASSWORD = #{password,jdbcType=VARCHAR},
      </if>
      <if test="manufacturer != null">
        MANUFACTURER = #{manufacturer,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="validFlag != null">
        VALID_FLAG = #{validFlag,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>
    </set>
    where CAMERA_NO = #{cameraNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where CAMERA_NO = #{cameraNo,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 DYNAMIC_BASE_CAMERA 
      (CAMERA_NO, 
      NAME, MS_IP, NVR_IP, 
      MS_PORT, MS_CHANNEL, CAMERA_IP, 
      RSTP_PORT, VEDIO_TYPE, CAMERA_CHANNEL, 
      USERNAME, PASSWORD, MANUFACTURER, 
      MEMO, VALID_FLAG, CREATE_MAN_NO, 
      CREATE_MAN_NAME, CREATE_TIME, 
      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME
      )
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.cameraNo,jdbcType=VARCHAR}, 
      #{item.name,jdbcType=VARCHAR}, #{item.msIp,jdbcType=VARCHAR}, #{item.nvrIp,jdbcType=VARCHAR}, 
      #{item.msPort,jdbcType=DECIMAL}, #{item.msChannel,jdbcType=DECIMAL}, #{item.cameraIp,jdbcType=VARCHAR}, 
      #{item.rstpPort,jdbcType=DECIMAL}, #{item.vedioType,jdbcType=DECIMAL}, #{item.cameraChannel,jdbcType=DECIMAL}, 
      #{item.username,jdbcType=VARCHAR}, #{item.password,jdbcType=VARCHAR}, #{item.manufacturer,jdbcType=VARCHAR}, 
      #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,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}
       from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update DYNAMIC_BASE_CAMERA
     set
       CAMERA_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.cameraNo,jdbcType=VARCHAR}
       </foreach>
       ,NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.name,jdbcType=VARCHAR}
       </foreach>
       ,MS_IP=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.msIp,jdbcType=VARCHAR}
       </foreach>
       ,NVR_IP=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.nvrIp,jdbcType=VARCHAR}
       </foreach>
       ,MS_PORT=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.msPort,jdbcType=DECIMAL}
       </foreach>
       ,MS_CHANNEL=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.msChannel,jdbcType=DECIMAL}
       </foreach>
       ,CAMERA_IP=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.cameraIp,jdbcType=VARCHAR}
       </foreach>
       ,RSTP_PORT=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.rstpPort,jdbcType=DECIMAL}
       </foreach>
       ,VEDIO_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.vedioType,jdbcType=DECIMAL}
       </foreach>
       ,CAMERA_CHANNEL=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.cameraChannel,jdbcType=DECIMAL}
       </foreach>
       ,USERNAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.username,jdbcType=VARCHAR}
       </foreach>
       ,PASSWORD=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.password,jdbcType=VARCHAR}
       </foreach>
       ,MANUFACTURER=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.manufacturer,jdbcType=VARCHAR}
       </foreach>
       ,MEMO=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
       </foreach>
       ,VALID_FLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case CAMERA_NO" close="end">
          when #{item.cameraNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
     where CAMERA_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.cameraNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from DYNAMIC_BASE_CAMERA
    where CAMERA_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  
</mapper>