<?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.meterbasevideoinfo.mapper.MeterBaseVideoinfoMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasevideoinfo.model.MeterBaseVideoinfo">
    <id column="POINTID" jdbcType="VARCHAR" property="pointid" />
    <result column="VIDEOIP" jdbcType="VARCHAR" property="videoip" />
    <result column="POSITION1" jdbcType="VARCHAR" property="position1" />
    <result column="POINTTYPE" jdbcType="VARCHAR" property="pointtype" />
    <result column="REMARK" jdbcType="VARCHAR" property="remark" />
    <result column="POINTNAME" jdbcType="VARCHAR" property="pointname" />
    <result column="POSITION2" jdbcType="VARCHAR" property="position2" />
    <result column="POSITION3" jdbcType="VARCHAR" property="position3" />
    <result column="POSITION4" jdbcType="VARCHAR" property="position4" />
    <result column="POSITION5" jdbcType="VARCHAR" property="position5" />
    <result column="POSITION6" jdbcType="VARCHAR" property="position6" />
    <result column="POSITION7" jdbcType="VARCHAR" property="position7" />
    <result column="POSITION8" jdbcType="VARCHAR" property="position8" />
    <result column="VDO_PORT" jdbcType="VARCHAR" property="vdoPort" />
    <result column="VDO_USER" jdbcType="VARCHAR" property="vdoUser" />
    <result column="VDO_PWD" jdbcType="VARCHAR" property="vdoPwd" />
    <result column="VDO_TYPE" jdbcType="VARCHAR" property="vdoType" />
    <result column="SVR1_VDO_IP" jdbcType="VARCHAR" property="svr1VdoIp" />
    <result column="SVR2_VDO_IP" jdbcType="VARCHAR" property="svr2VdoIp" />
    <result column="VOICENAME" jdbcType="VARCHAR" property="voicename" />
    <result column="VIDEOTYPE" jdbcType="VARCHAR" property="videotype" />
    <result column="P1_RATE" jdbcType="VARCHAR" property="p1Rate" />
    <result column="P2_RATE" jdbcType="VARCHAR" property="p2Rate" />
    <result column="P3_RATE" jdbcType="VARCHAR" property="p3Rate" />
    <result column="P4_RATE" jdbcType="VARCHAR" property="p4Rate" />
    <result column="P5_RATE" jdbcType="VARCHAR" property="p5Rate" />
    <result column="P6_RATE" jdbcType="VARCHAR" property="p6Rate" />
    <result column="P7_RATE" jdbcType="VARCHAR" property="p7Rate" />
    <result column="P8_RATE" jdbcType="VARCHAR" property="p8Rate" />
    <result column="IMAGECOUNT" jdbcType="VARCHAR" property="imagecount" />
    <result column="CAPTUREIMAGEFLAG" jdbcType="VARCHAR" property="captureimageflag" />
    <result column="IS_SECOND" jdbcType="VARCHAR" property="isSecond" />
  </resultMap>
  <sql id="columns">
    POINTID, VIDEOIP, POSITION1, POINTTYPE, REMARK, POINTNAME, POSITION2, POSITION3, 
    POSITION4, POSITION5, POSITION6, POSITION7, POSITION8, VDO_PORT, VDO_USER, VDO_PWD, 
    VDO_TYPE, SVR1_VDO_IP, SVR2_VDO_IP, VOICENAME, VIDEOTYPE, P1_RATE, P2_RATE, P3_RATE, 
    P4_RATE, P5_RATE, P6_RATE, P7_RATE, P8_RATE, IMAGECOUNT, CAPTUREIMAGEFLAG, IS_SECOND
  </sql>
  <sql id="columns_alias">
    t.POINTID, t.VIDEOIP, t.POSITION1, t.POINTTYPE, t.REMARK, t.POINTNAME, t.POSITION2, 
    t.POSITION3, t.POSITION4, t.POSITION5, t.POSITION6, t.POSITION7, t.POSITION8, t.VDO_PORT, 
    t.VDO_USER, t.VDO_PWD, t.VDO_TYPE, t.SVR1_VDO_IP, t.SVR2_VDO_IP, t.VOICENAME, t.VIDEOTYPE, 
    t.P1_RATE, t.P2_RATE, t.P3_RATE, t.P4_RATE, t.P5_RATE, t.P6_RATE, t.P7_RATE, t.P8_RATE, 
    t.IMAGECOUNT, t.CAPTUREIMAGEFLAG, t.IS_SECOND
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_BASE_VIDEOINFO
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_BASE_VIDEOINFO t
  </sql>
  <sql id="where">
    <where>
      <if test="pointid != null and pointid != ''">
        and POINTID = #{pointid}
      </if>
      <if test="videoip != null and videoip != ''">
        and VIDEOIP = #{videoip}
      </if>
      <if test="position1 != null and position1 != ''">
        and POSITION1 = #{position1}
      </if>
      <if test="pointtype != null and pointtype != ''">
        and POINTTYPE = #{pointtype}
      </if>
      <if test="remark != null and remark != ''">
        and REMARK = #{remark}
      </if>
      <if test="pointname != null and pointname != ''">
        and POINTNAME = #{pointname}
      </if>
      <if test="position2 != null and position2 != ''">
        and POSITION2 = #{position2}
      </if>
      <if test="position3 != null and position3 != ''">
        and POSITION3 = #{position3}
      </if>
      <if test="position4 != null and position4 != ''">
        and POSITION4 = #{position4}
      </if>
      <if test="position5 != null and position5 != ''">
        and POSITION5 = #{position5}
      </if>
      <if test="position6 != null and position6 != ''">
        and POSITION6 = #{position6}
      </if>
      <if test="position7 != null and position7 != ''">
        and POSITION7 = #{position7}
      </if>
      <if test="position8 != null and position8 != ''">
        and POSITION8 = #{position8}
      </if>
      <if test="vdoPort != null and vdoPort != ''">
        and VDO_PORT = #{vdoPort}
      </if>
      <if test="vdoUser != null and vdoUser != ''">
        and VDO_USER = #{vdoUser}
      </if>
      <if test="vdoPwd != null and vdoPwd != ''">
        and VDO_PWD = #{vdoPwd}
      </if>
      <if test="vdoType != null and vdoType != ''">
        and VDO_TYPE = #{vdoType}
      </if>
      <if test="svr1VdoIp != null and svr1VdoIp != ''">
        and SVR1_VDO_IP = #{svr1VdoIp}
      </if>
      <if test="svr2VdoIp != null and svr2VdoIp != ''">
        and SVR2_VDO_IP = #{svr2VdoIp}
      </if>
      <if test="voicename != null and voicename != ''">
        and VOICENAME = #{voicename}
      </if>
      <if test="videotype != null and videotype != ''">
        and VIDEOTYPE = #{videotype}
      </if>
      <if test="p1Rate != null and p1Rate != ''">
        and P1_RATE = #{p1Rate}
      </if>
      <if test="p2Rate != null and p2Rate != ''">
        and P2_RATE = #{p2Rate}
      </if>
      <if test="p3Rate != null and p3Rate != ''">
        and P3_RATE = #{p3Rate}
      </if>
      <if test="p4Rate != null and p4Rate != ''">
        and P4_RATE = #{p4Rate}
      </if>
      <if test="p5Rate != null and p5Rate != ''">
        and P5_RATE = #{p5Rate}
      </if>
      <if test="p6Rate != null and p6Rate != ''">
        and P6_RATE = #{p6Rate}
      </if>
      <if test="p7Rate != null and p7Rate != ''">
        and P7_RATE = #{p7Rate}
      </if>
      <if test="p8Rate != null and p8Rate != ''">
        and P8_RATE = #{p8Rate}
      </if>
      <if test="imagecount != null and imagecount != ''">
        and IMAGECOUNT = #{imagecount}
      </if>
      <if test="captureimageflag != null and captureimageflag != ''">
        and CAPTUREIMAGEFLAG = #{captureimageflag}
      </if>
      <if test="isSecond != null and isSecond != ''">
        and IS_SECOND = #{isSecond}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where>
      <if test="pointid != null and pointid != ''">
        and POINTID LIKE '%${pointid}%'
      </if>
      <if test="videoip != null and videoip != ''">
        and VIDEOIP LIKE '%${videoip}%'
      </if>
      <if test="position1 != null and position1 != ''">
        and POSITION1 LIKE '%${position1}%'
      </if>
      <if test="pointtype != null and pointtype != ''">
        and POINTTYPE LIKE '%${pointtype}%'
      </if>
      <if test="remark != null and remark != ''">
        and REMARK LIKE '%${remark}%'
      </if>
      <if test="pointname != null and pointname != ''">
        and POINTNAME LIKE '%${pointname}%'
      </if>
      <if test="position2 != null and position2 != ''">
        and POSITION2 LIKE '%${position2}%'
      </if>
      <if test="position3 != null and position3 != ''">
        and POSITION3 LIKE '%${position3}%'
      </if>
      <if test="position4 != null and position4 != ''">
        and POSITION4 LIKE '%${position4}%'
      </if>
      <if test="position5 != null and position5 != ''">
        and POSITION5 LIKE '%${position5}%'
      </if>
      <if test="position6 != null and position6 != ''">
        and POSITION6 LIKE '%${position6}%'
      </if>
      <if test="position7 != null and position7 != ''">
        and POSITION7 LIKE '%${position7}%'
      </if>
      <if test="position8 != null and position8 != ''">
        and POSITION8 LIKE '%${position8}%'
      </if>
      <if test="vdoPort != null and vdoPort != ''">
        and VDO_PORT LIKE '%${vdoPort}%'
      </if>
      <if test="vdoUser != null and vdoUser != ''">
        and VDO_USER LIKE '%${vdoUser}%'
      </if>
      <if test="vdoPwd != null and vdoPwd != ''">
        and VDO_PWD LIKE '%${vdoPwd}%'
      </if>
      <if test="vdoType != null and vdoType != ''">
        and VDO_TYPE LIKE '%${vdoType}%'
      </if>
      <if test="svr1VdoIp != null and svr1VdoIp != ''">
        and SVR1_VDO_IP LIKE '%${svr1VdoIp}%'
      </if>
      <if test="svr2VdoIp != null and svr2VdoIp != ''">
        and SVR2_VDO_IP LIKE '%${svr2VdoIp}%'
      </if>
      <if test="voicename != null and voicename != ''">
        and VOICENAME LIKE '%${voicename}%'
      </if>
      <if test="videotype != null and videotype != ''">
        and VIDEOTYPE LIKE '%${videotype}%'
      </if>
      <if test="p1Rate != null and p1Rate != ''">
        and P1_RATE LIKE '%${p1Rate}%'
      </if>
      <if test="p2Rate != null and p2Rate != ''">
        and P2_RATE LIKE '%${p2Rate}%'
      </if>
      <if test="p3Rate != null and p3Rate != ''">
        and P3_RATE LIKE '%${p3Rate}%'
      </if>
      <if test="p4Rate != null and p4Rate != ''">
        and P4_RATE LIKE '%${p4Rate}%'
      </if>
      <if test="p5Rate != null and p5Rate != ''">
        and P5_RATE LIKE '%${p5Rate}%'
      </if>
      <if test="p6Rate != null and p6Rate != ''">
        and P6_RATE LIKE '%${p6Rate}%'
      </if>
      <if test="p7Rate != null and p7Rate != ''">
        and P7_RATE LIKE '%${p7Rate}%'
      </if>
      <if test="p8Rate != null and p8Rate != ''">
        and P8_RATE LIKE '%${p8Rate}%'
      </if>
      <if test="imagecount != null and imagecount != ''">
        and IMAGECOUNT LIKE '%${imagecount}%'
      </if>
      <if test="captureimageflag != null and captureimageflag != ''">
        and CAPTUREIMAGEFLAG LIKE '%${captureimageflag}%'
      </if>
      <if test="isSecond != null and isSecond != ''">
        and IS_SECOND LIKE '%${isSecond}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_BASE_VIDEOINFO
    where POINTID = #{pointid,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_BASE_VIDEOINFO
    where 1!=1 
      <if test="videoip != null and videoip != ''">
        or VIDEOIP = #{videoip}
      </if>
      <if test="position1 != null and position1 != ''">
        or POSITION1 = #{position1}
      </if>
      <if test="pointtype != null and pointtype != ''">
        or POINTTYPE = #{pointtype}
      </if>
      <if test="remark != null and remark != ''">
        or REMARK = #{remark}
      </if>
      <if test="pointname != null and pointname != ''">
        or POINTNAME = #{pointname}
      </if>
      <if test="position2 != null and position2 != ''">
        or POSITION2 = #{position2}
      </if>
      <if test="position3 != null and position3 != ''">
        or POSITION3 = #{position3}
      </if>
      <if test="position4 != null and position4 != ''">
        or POSITION4 = #{position4}
      </if>
      <if test="position5 != null and position5 != ''">
        or POSITION5 = #{position5}
      </if>
      <if test="position6 != null and position6 != ''">
        or POSITION6 = #{position6}
      </if>
      <if test="position7 != null and position7 != ''">
        or POSITION7 = #{position7}
      </if>
      <if test="position8 != null and position8 != ''">
        or POSITION8 = #{position8}
      </if>
      <if test="vdoPort != null and vdoPort != ''">
        or VDO_PORT = #{vdoPort}
      </if>
      <if test="vdoUser != null and vdoUser != ''">
        or VDO_USER = #{vdoUser}
      </if>
      <if test="vdoPwd != null and vdoPwd != ''">
        or VDO_PWD = #{vdoPwd}
      </if>
      <if test="vdoType != null and vdoType != ''">
        or VDO_TYPE = #{vdoType}
      </if>
      <if test="svr1VdoIp != null and svr1VdoIp != ''">
        or SVR1_VDO_IP = #{svr1VdoIp}
      </if>
      <if test="svr2VdoIp != null and svr2VdoIp != ''">
        or SVR2_VDO_IP = #{svr2VdoIp}
      </if>
      <if test="voicename != null and voicename != ''">
        or VOICENAME = #{voicename}
      </if>
      <if test="videotype != null and videotype != ''">
        or VIDEOTYPE = #{videotype}
      </if>
      <if test="p1Rate != null and p1Rate != ''">
        or P1_RATE = #{p1Rate}
      </if>
      <if test="p2Rate != null and p2Rate != ''">
        or P2_RATE = #{p2Rate}
      </if>
      <if test="p3Rate != null and p3Rate != ''">
        or P3_RATE = #{p3Rate}
      </if>
      <if test="p4Rate != null and p4Rate != ''">
        or P4_RATE = #{p4Rate}
      </if>
      <if test="p5Rate != null and p5Rate != ''">
        or P5_RATE = #{p5Rate}
      </if>
      <if test="p6Rate != null and p6Rate != ''">
        or P6_RATE = #{p6Rate}
      </if>
      <if test="p7Rate != null and p7Rate != ''">
        or P7_RATE = #{p7Rate}
      </if>
      <if test="p8Rate != null and p8Rate != ''">
        or P8_RATE = #{p8Rate}
      </if>
      <if test="imagecount != null and imagecount != ''">
        or IMAGECOUNT = #{imagecount}
      </if>
      <if test="captureimageflag != null and captureimageflag != ''">
        or CAPTUREIMAGEFLAG = #{captureimageflag}
      </if>
      <if test="isSecond != null and isSecond != ''">
        or IS_SECOND = #{isSecond}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasevideoinfo.model.MeterBaseVideoinfo">
    insert into METER_BASE_VIDEOINFO (POINTID, VIDEOIP, POSITION1, 
      POINTTYPE, REMARK, POINTNAME, 
      POSITION2, POSITION3, POSITION4, 
      POSITION5, POSITION6, POSITION7, 
      POSITION8, VDO_PORT, VDO_USER, 
      VDO_PWD, VDO_TYPE, SVR1_VDO_IP, 
      SVR2_VDO_IP, VOICENAME, VIDEOTYPE, 
      P1_RATE, P2_RATE, P3_RATE, 
      P4_RATE, P5_RATE, P6_RATE, 
      P7_RATE, P8_RATE, IMAGECOUNT, 
      CAPTUREIMAGEFLAG, IS_SECOND)
    values (#{pointid,jdbcType=VARCHAR}, #{videoip,jdbcType=VARCHAR}, #{position1,jdbcType=VARCHAR}, 
      #{pointtype,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{pointname,jdbcType=VARCHAR}, 
      #{position2,jdbcType=VARCHAR}, #{position3,jdbcType=VARCHAR}, #{position4,jdbcType=VARCHAR}, 
      #{position5,jdbcType=VARCHAR}, #{position6,jdbcType=VARCHAR}, #{position7,jdbcType=VARCHAR}, 
      #{position8,jdbcType=VARCHAR}, #{vdoPort,jdbcType=VARCHAR}, #{vdoUser,jdbcType=VARCHAR}, 
      #{vdoPwd,jdbcType=VARCHAR}, #{vdoType,jdbcType=VARCHAR}, #{svr1VdoIp,jdbcType=VARCHAR}, 
      #{svr2VdoIp,jdbcType=VARCHAR}, #{voicename,jdbcType=VARCHAR}, #{videotype,jdbcType=VARCHAR}, 
      #{p1Rate,jdbcType=VARCHAR}, #{p2Rate,jdbcType=VARCHAR}, #{p3Rate,jdbcType=VARCHAR}, 
      #{p4Rate,jdbcType=VARCHAR}, #{p5Rate,jdbcType=VARCHAR}, #{p6Rate,jdbcType=VARCHAR}, 
      #{p7Rate,jdbcType=VARCHAR}, #{p8Rate,jdbcType=VARCHAR}, #{imagecount,jdbcType=VARCHAR}, 
      #{captureimageflag,jdbcType=VARCHAR}, #{isSecond,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasevideoinfo.model.MeterBaseVideoinfo">
    insert into METER_BASE_VIDEOINFO
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="pointid != null">
        POINTID,
      </if>
      <if test="videoip != null">
        VIDEOIP,
      </if>
      <if test="position1 != null">
        POSITION1,
      </if>
      <if test="pointtype != null">
        POINTTYPE,
      </if>
      <if test="remark != null">
        REMARK,
      </if>
      <if test="pointname != null">
        POINTNAME,
      </if>
      <if test="position2 != null">
        POSITION2,
      </if>
      <if test="position3 != null">
        POSITION3,
      </if>
      <if test="position4 != null">
        POSITION4,
      </if>
      <if test="position5 != null">
        POSITION5,
      </if>
      <if test="position6 != null">
        POSITION6,
      </if>
      <if test="position7 != null">
        POSITION7,
      </if>
      <if test="position8 != null">
        POSITION8,
      </if>
      <if test="vdoPort != null">
        VDO_PORT,
      </if>
      <if test="vdoUser != null">
        VDO_USER,
      </if>
      <if test="vdoPwd != null">
        VDO_PWD,
      </if>
      <if test="vdoType != null">
        VDO_TYPE,
      </if>
      <if test="svr1VdoIp != null">
        SVR1_VDO_IP,
      </if>
      <if test="svr2VdoIp != null">
        SVR2_VDO_IP,
      </if>
      <if test="voicename != null">
        VOICENAME,
      </if>
      <if test="videotype != null">
        VIDEOTYPE,
      </if>
      <if test="p1Rate != null">
        P1_RATE,
      </if>
      <if test="p2Rate != null">
        P2_RATE,
      </if>
      <if test="p3Rate != null">
        P3_RATE,
      </if>
      <if test="p4Rate != null">
        P4_RATE,
      </if>
      <if test="p5Rate != null">
        P5_RATE,
      </if>
      <if test="p6Rate != null">
        P6_RATE,
      </if>
      <if test="p7Rate != null">
        P7_RATE,
      </if>
      <if test="p8Rate != null">
        P8_RATE,
      </if>
      <if test="imagecount != null">
        IMAGECOUNT,
      </if>
      <if test="captureimageflag != null">
        CAPTUREIMAGEFLAG,
      </if>
      <if test="isSecond != null">
        IS_SECOND,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="pointid != null">
        #{pointid,jdbcType=VARCHAR},
      </if>
      <if test="videoip != null">
        #{videoip,jdbcType=VARCHAR},
      </if>
      <if test="position1 != null">
        #{position1,jdbcType=VARCHAR},
      </if>
      <if test="pointtype != null">
        #{pointtype,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="pointname != null">
        #{pointname,jdbcType=VARCHAR},
      </if>
      <if test="position2 != null">
        #{position2,jdbcType=VARCHAR},
      </if>
      <if test="position3 != null">
        #{position3,jdbcType=VARCHAR},
      </if>
      <if test="position4 != null">
        #{position4,jdbcType=VARCHAR},
      </if>
      <if test="position5 != null">
        #{position5,jdbcType=VARCHAR},
      </if>
      <if test="position6 != null">
        #{position6,jdbcType=VARCHAR},
      </if>
      <if test="position7 != null">
        #{position7,jdbcType=VARCHAR},
      </if>
      <if test="position8 != null">
        #{position8,jdbcType=VARCHAR},
      </if>
      <if test="vdoPort != null">
        #{vdoPort,jdbcType=VARCHAR},
      </if>
      <if test="vdoUser != null">
        #{vdoUser,jdbcType=VARCHAR},
      </if>
      <if test="vdoPwd != null">
        #{vdoPwd,jdbcType=VARCHAR},
      </if>
      <if test="vdoType != null">
        #{vdoType,jdbcType=VARCHAR},
      </if>
      <if test="svr1VdoIp != null">
        #{svr1VdoIp,jdbcType=VARCHAR},
      </if>
      <if test="svr2VdoIp != null">
        #{svr2VdoIp,jdbcType=VARCHAR},
      </if>
      <if test="voicename != null">
        #{voicename,jdbcType=VARCHAR},
      </if>
      <if test="videotype != null">
        #{videotype,jdbcType=VARCHAR},
      </if>
      <if test="p1Rate != null">
        #{p1Rate,jdbcType=VARCHAR},
      </if>
      <if test="p2Rate != null">
        #{p2Rate,jdbcType=VARCHAR},
      </if>
      <if test="p3Rate != null">
        #{p3Rate,jdbcType=VARCHAR},
      </if>
      <if test="p4Rate != null">
        #{p4Rate,jdbcType=VARCHAR},
      </if>
      <if test="p5Rate != null">
        #{p5Rate,jdbcType=VARCHAR},
      </if>
      <if test="p6Rate != null">
        #{p6Rate,jdbcType=VARCHAR},
      </if>
      <if test="p7Rate != null">
        #{p7Rate,jdbcType=VARCHAR},
      </if>
      <if test="p8Rate != null">
        #{p8Rate,jdbcType=VARCHAR},
      </if>
      <if test="imagecount != null">
        #{imagecount,jdbcType=VARCHAR},
      </if>
      <if test="captureimageflag != null">
        #{captureimageflag,jdbcType=VARCHAR},
      </if>
      <if test="isSecond != null">
        #{isSecond,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasevideoinfo.model.MeterBaseVideoinfo">
    update METER_BASE_VIDEOINFO
    set VIDEOIP = #{videoip,jdbcType=VARCHAR},
      POSITION1 = #{position1,jdbcType=VARCHAR},
      POINTTYPE = #{pointtype,jdbcType=VARCHAR},
      REMARK = #{remark,jdbcType=VARCHAR},
      POINTNAME = #{pointname,jdbcType=VARCHAR},
      POSITION2 = #{position2,jdbcType=VARCHAR},
      POSITION3 = #{position3,jdbcType=VARCHAR},
      POSITION4 = #{position4,jdbcType=VARCHAR},
      POSITION5 = #{position5,jdbcType=VARCHAR},
      POSITION6 = #{position6,jdbcType=VARCHAR},
      POSITION7 = #{position7,jdbcType=VARCHAR},
      POSITION8 = #{position8,jdbcType=VARCHAR},
      VDO_PORT = #{vdoPort,jdbcType=VARCHAR},
      VDO_USER = #{vdoUser,jdbcType=VARCHAR},
      VDO_PWD = #{vdoPwd,jdbcType=VARCHAR},
      VDO_TYPE = #{vdoType,jdbcType=VARCHAR},
      SVR1_VDO_IP = #{svr1VdoIp,jdbcType=VARCHAR},
      SVR2_VDO_IP = #{svr2VdoIp,jdbcType=VARCHAR},
      VOICENAME = #{voicename,jdbcType=VARCHAR},
      VIDEOTYPE = #{videotype,jdbcType=VARCHAR},
      P1_RATE = #{p1Rate,jdbcType=VARCHAR},
      P2_RATE = #{p2Rate,jdbcType=VARCHAR},
      P3_RATE = #{p3Rate,jdbcType=VARCHAR},
      P4_RATE = #{p4Rate,jdbcType=VARCHAR},
      P5_RATE = #{p5Rate,jdbcType=VARCHAR},
      P6_RATE = #{p6Rate,jdbcType=VARCHAR},
      P7_RATE = #{p7Rate,jdbcType=VARCHAR},
      P8_RATE = #{p8Rate,jdbcType=VARCHAR},
      IMAGECOUNT = #{imagecount,jdbcType=VARCHAR},
      CAPTUREIMAGEFLAG = #{captureimageflag,jdbcType=VARCHAR},
      IS_SECOND = #{isSecond,jdbcType=VARCHAR}
    where POINTID = #{pointid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasevideoinfo.model.MeterBaseVideoinfo">
    update METER_BASE_VIDEOINFO
    <set>
      <if test="videoip != null">
        VIDEOIP = #{videoip,jdbcType=VARCHAR},
      </if>
      <if test="position1 != null">
        POSITION1 = #{position1,jdbcType=VARCHAR},
      </if>
      <if test="pointtype != null">
        POINTTYPE = #{pointtype,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        REMARK = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="pointname != null">
        POINTNAME = #{pointname,jdbcType=VARCHAR},
      </if>
      <if test="position2 != null">
        POSITION2 = #{position2,jdbcType=VARCHAR},
      </if>
      <if test="position3 != null">
        POSITION3 = #{position3,jdbcType=VARCHAR},
      </if>
      <if test="position4 != null">
        POSITION4 = #{position4,jdbcType=VARCHAR},
      </if>
      <if test="position5 != null">
        POSITION5 = #{position5,jdbcType=VARCHAR},
      </if>
      <if test="position6 != null">
        POSITION6 = #{position6,jdbcType=VARCHAR},
      </if>
      <if test="position7 != null">
        POSITION7 = #{position7,jdbcType=VARCHAR},
      </if>
      <if test="position8 != null">
        POSITION8 = #{position8,jdbcType=VARCHAR},
      </if>
      <if test="vdoPort != null">
        VDO_PORT = #{vdoPort,jdbcType=VARCHAR},
      </if>
      <if test="vdoUser != null">
        VDO_USER = #{vdoUser,jdbcType=VARCHAR},
      </if>
      <if test="vdoPwd != null">
        VDO_PWD = #{vdoPwd,jdbcType=VARCHAR},
      </if>
      <if test="vdoType != null">
        VDO_TYPE = #{vdoType,jdbcType=VARCHAR},
      </if>
      <if test="svr1VdoIp != null">
        SVR1_VDO_IP = #{svr1VdoIp,jdbcType=VARCHAR},
      </if>
      <if test="svr2VdoIp != null">
        SVR2_VDO_IP = #{svr2VdoIp,jdbcType=VARCHAR},
      </if>
      <if test="voicename != null">
        VOICENAME = #{voicename,jdbcType=VARCHAR},
      </if>
      <if test="videotype != null">
        VIDEOTYPE = #{videotype,jdbcType=VARCHAR},
      </if>
      <if test="p1Rate != null">
        P1_RATE = #{p1Rate,jdbcType=VARCHAR},
      </if>
      <if test="p2Rate != null">
        P2_RATE = #{p2Rate,jdbcType=VARCHAR},
      </if>
      <if test="p3Rate != null">
        P3_RATE = #{p3Rate,jdbcType=VARCHAR},
      </if>
      <if test="p4Rate != null">
        P4_RATE = #{p4Rate,jdbcType=VARCHAR},
      </if>
      <if test="p5Rate != null">
        P5_RATE = #{p5Rate,jdbcType=VARCHAR},
      </if>
      <if test="p6Rate != null">
        P6_RATE = #{p6Rate,jdbcType=VARCHAR},
      </if>
      <if test="p7Rate != null">
        P7_RATE = #{p7Rate,jdbcType=VARCHAR},
      </if>
      <if test="p8Rate != null">
        P8_RATE = #{p8Rate,jdbcType=VARCHAR},
      </if>
      <if test="imagecount != null">
        IMAGECOUNT = #{imagecount,jdbcType=VARCHAR},
      </if>
      <if test="captureimageflag != null">
        CAPTUREIMAGEFLAG = #{captureimageflag,jdbcType=VARCHAR},
      </if>
      <if test="isSecond != null">
        IS_SECOND = #{isSecond,jdbcType=VARCHAR},
      </if>
    </set>
    where POINTID = #{pointid,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where POINTID = #{pointid,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_VIDEOINFO 
      (POINTID, 
      VIDEOIP, POSITION1, POINTTYPE, 
      REMARK, POINTNAME, POSITION2, 
      POSITION3, POSITION4, POSITION5, 
      POSITION6, POSITION7, POSITION8, 
      VDO_PORT, VDO_USER, VDO_PWD, 
      VDO_TYPE, SVR1_VDO_IP, SVR2_VDO_IP, 
      VOICENAME, VIDEOTYPE, P1_RATE, 
      P2_RATE, P3_RATE, P4_RATE, 
      P5_RATE, P6_RATE, P7_RATE, 
      P8_RATE, IMAGECOUNT, CAPTUREIMAGEFLAG, 
      IS_SECOND)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.pointid,jdbcType=VARCHAR}, 
      #{item.videoip,jdbcType=VARCHAR}, #{item.position1,jdbcType=VARCHAR}, #{item.pointtype,jdbcType=VARCHAR}, 
      #{item.remark,jdbcType=VARCHAR}, #{item.pointname,jdbcType=VARCHAR}, #{item.position2,jdbcType=VARCHAR}, 
      #{item.position3,jdbcType=VARCHAR}, #{item.position4,jdbcType=VARCHAR}, #{item.position5,jdbcType=VARCHAR}, 
      #{item.position6,jdbcType=VARCHAR}, #{item.position7,jdbcType=VARCHAR}, #{item.position8,jdbcType=VARCHAR}, 
      #{item.vdoPort,jdbcType=VARCHAR}, #{item.vdoUser,jdbcType=VARCHAR}, #{item.vdoPwd,jdbcType=VARCHAR}, 
      #{item.vdoType,jdbcType=VARCHAR}, #{item.svr1VdoIp,jdbcType=VARCHAR}, #{item.svr2VdoIp,jdbcType=VARCHAR}, 
      #{item.voicename,jdbcType=VARCHAR}, #{item.videotype,jdbcType=VARCHAR}, #{item.p1Rate,jdbcType=VARCHAR}, 
      #{item.p2Rate,jdbcType=VARCHAR}, #{item.p3Rate,jdbcType=VARCHAR}, #{item.p4Rate,jdbcType=VARCHAR}, 
      #{item.p5Rate,jdbcType=VARCHAR}, #{item.p6Rate,jdbcType=VARCHAR}, #{item.p7Rate,jdbcType=VARCHAR}, 
      #{item.p8Rate,jdbcType=VARCHAR}, #{item.imagecount,jdbcType=VARCHAR}, #{item.captureimageflag,jdbcType=VARCHAR}, 
      #{item.isSecond,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_BASE_VIDEOINFO
     set
       POINTID=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.pointid,jdbcType=VARCHAR}
       </foreach>
       ,VIDEOIP=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.videoip,jdbcType=VARCHAR}
       </foreach>
       ,POSITION1=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position1,jdbcType=VARCHAR}
       </foreach>
       ,POINTTYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.pointtype,jdbcType=VARCHAR}
       </foreach>
       ,REMARK=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.remark,jdbcType=VARCHAR}
       </foreach>
       ,POINTNAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.pointname,jdbcType=VARCHAR}
       </foreach>
       ,POSITION2=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position2,jdbcType=VARCHAR}
       </foreach>
       ,POSITION3=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position3,jdbcType=VARCHAR}
       </foreach>
       ,POSITION4=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position4,jdbcType=VARCHAR}
       </foreach>
       ,POSITION5=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position5,jdbcType=VARCHAR}
       </foreach>
       ,POSITION6=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position6,jdbcType=VARCHAR}
       </foreach>
       ,POSITION7=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position7,jdbcType=VARCHAR}
       </foreach>
       ,POSITION8=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.position8,jdbcType=VARCHAR}
       </foreach>
       ,VDO_PORT=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.vdoPort,jdbcType=VARCHAR}
       </foreach>
       ,VDO_USER=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.vdoUser,jdbcType=VARCHAR}
       </foreach>
       ,VDO_PWD=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.vdoPwd,jdbcType=VARCHAR}
       </foreach>
       ,VDO_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.vdoType,jdbcType=VARCHAR}
       </foreach>
       ,SVR1_VDO_IP=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.svr1VdoIp,jdbcType=VARCHAR}
       </foreach>
       ,SVR2_VDO_IP=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.svr2VdoIp,jdbcType=VARCHAR}
       </foreach>
       ,VOICENAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.voicename,jdbcType=VARCHAR}
       </foreach>
       ,VIDEOTYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.videotype,jdbcType=VARCHAR}
       </foreach>
       ,P1_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p1Rate,jdbcType=VARCHAR}
       </foreach>
       ,P2_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p2Rate,jdbcType=VARCHAR}
       </foreach>
       ,P3_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p3Rate,jdbcType=VARCHAR}
       </foreach>
       ,P4_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p4Rate,jdbcType=VARCHAR}
       </foreach>
       ,P5_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p5Rate,jdbcType=VARCHAR}
       </foreach>
       ,P6_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p6Rate,jdbcType=VARCHAR}
       </foreach>
       ,P7_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p7Rate,jdbcType=VARCHAR}
       </foreach>
       ,P8_RATE=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.p8Rate,jdbcType=VARCHAR}
       </foreach>
       ,IMAGECOUNT=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.imagecount,jdbcType=VARCHAR}
       </foreach>
       ,CAPTUREIMAGEFLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.captureimageflag,jdbcType=VARCHAR}
       </foreach>
       ,IS_SECOND=
       <foreach collection="list" item="item" index="index" separator=" " open="case POINTID" close="end">
          when #{item.pointid,jdbcType=VARCHAR} then #{item.isSecond,jdbcType=VARCHAR}
       </foreach>
     where POINTID in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.pointid,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_BASE_VIDEOINFO
    where POINTID in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  
</mapper>