<?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.chinaitop.depot.intelligent.ventilation.mapper.TVentilationMapper" >
  <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    <id column="id" property="id" jdbcType="VARCHAR" />
    <result column="org_id" property="orgId" jdbcType="VARCHAR" />
    <result column="v_cf_code" property="vCfCode" jdbcType="VARCHAR" />
    <result column="operation_id" property="operationId" jdbcType="VARCHAR" />
    <result column="v_dev_name" property="vDevName" jdbcType="VARCHAR" />
    <result column="v_device_code" property="vDeviceCode" jdbcType="VARCHAR" />
    <result column="v_pattern" property="vPattern" jdbcType="VARCHAR" />
    <result column="v_start_time" property="vStartTime" jdbcType="TIMESTAMP" />
    <result column="v_end_time" property="vEndTime" jdbcType="TIMESTAMP" />
    <result column="v_distinguish_state" property="vDistinguishState" jdbcType="INTEGER" />
    <result column="v_state" property="vState" jdbcType="INTEGER" />
    <result column="v_update_person" property="vUpdatePerson" jdbcType="VARCHAR" />
    <result column="data_source" property="dataSource" jdbcType="VARCHAR" />
    <result column="v_update_time" property="vUpdateTime" jdbcType="TIMESTAMP" />
    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
    <result column="zhdl" property="zhdl" jdbcType="VARCHAR" />
    <result column="zydyjdqw" property="zydyjdqw" jdbcType="VARCHAR" />
    <result column="zydyjdpjqs" property="zydyjdpjqs" jdbcType="VARCHAR" />
    <result column="zydyjdtfqpjlw" property="zydyjdtfqpjlw" jdbcType="VARCHAR" />
    <result column="zydyjdzysc" property="zydyjdzysc" jdbcType="VARCHAR" />
    <result column="zydejdqw" property="zydejdqw" jdbcType="VARCHAR" />
    <result column="zydejdpjqs" property="zydejdpjqs" jdbcType="VARCHAR" />
    <result column="zydejdtfqpjlw" property="zydejdtfqpjlw" jdbcType="VARCHAR" />
    <result column="zydejdzysc" property="zydejdzysc" jdbcType="VARCHAR" />
    <result column="zydsjdqw" property="zydsjdqw" jdbcType="VARCHAR" />
    <result column="zydsjdpjqs" property="zydsjdpjqs" jdbcType="VARCHAR" />
    <result column="zydsjdtfqpjlw" property="zydsjdtfqpjlw" jdbcType="VARCHAR" />
    <result column="zydsjdzysc" property="zydsjdzysc" jdbcType="VARCHAR" />
    <result column="zydsijdqw" property="zydsijdqw" jdbcType="VARCHAR" />
    <result column="zydsijdpjqs" property="zydsijdpjqs" jdbcType="VARCHAR" />
    <result column="zydsijdtfqpjlw" property="zydsijdtfqpjlw" jdbcType="VARCHAR" />
    <result column="zydsijdzysc" property="zydsijdzysc" jdbcType="VARCHAR" />
    <result column="zyqpjlw" property="zyqpjlw" jdbcType="VARCHAR" />
    <result column="jshpjlw" property="jshpjlw" jdbcType="VARCHAR" />
    <result column="jwfd" property="jwfd" jdbcType="VARCHAR" />
    <result column="dljwnh" property="dljwnh" jdbcType="VARCHAR" />
    <result column="sslssl" property="sslssl" jdbcType="VARCHAR" />
    <result column="bsxgpjjg" property="bsxgpjjg" jdbcType="VARCHAR" />
    <result column="tfjwjyxpjzc" property="tfjwjyxpjzc" jdbcType="VARCHAR" />
    <result column="tfjwjyxpjsc" property="tfjwjyxpjsc" jdbcType="VARCHAR" />
    <result column="tfjwjyxpjzjc" property="tfjwjyxpjzjc" jdbcType="VARCHAR" />
    <result column="tfjwjyxpjxc" property="tfjwjyxpjxc" jdbcType="VARCHAR" />
    <result column="zyqpjsf" property="zyqpjsf" jdbcType="VARCHAR" />
    <result column="zyhpjsf" property="zyhpjsf" jdbcType="VARCHAR" />
    <result column="jsfd" property="jsfd" jdbcType="VARCHAR" />
    <result column="dljsnh" property="dljsnh" jdbcType="VARCHAR" />
    <result column="tfjsjyxfxzc" property="tfjsjyxfxzc" jdbcType="VARCHAR" />
    <result column="tfjsjyxfxsc" property="tfjsjyxfxsc" jdbcType="VARCHAR" />
    <result column="tfjsjyxfxzjc" property="tfjsjyxfxzjc" jdbcType="VARCHAR" />
    <result column="tfjsjyxfxxc" property="tfjsjyxfxxc" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    <where >
      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    id, org_id, v_cf_code, operation_id, v_dev_name, v_device_code, v_pattern, v_start_time, 
    v_end_time, v_distinguish_state, v_state, v_update_person, data_source, v_update_time, 
    updatetime, zhdl, zydyjdqw, zydyjdpjqs, zydyjdtfqpjlw, zydyjdzysc, zydejdqw, zydejdpjqs, 
    zydejdtfqpjlw, zydejdzysc, zydsjdqw, zydsjdpjqs, zydsjdtfqpjlw, zydsjdzysc, zydsijdqw, 
    zydsijdpjqs, zydsijdtfqpjlw, zydsijdzysc, zyqpjlw, jshpjlw, jwfd, dljwnh, sslssl, bsxgpjjg, 
    tfjwjyxpjzc, tfjwjyxpjsc, tfjwjyxpjzjc, tfjwjyxpjxc, zyqpjsf, zyhpjsf, jsfd, dljsnh, 
    tfjsjyxfxzc, tfjsjyxfxsc, tfjsjyxfxzjc, tfjsjyxfxxc
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from t_ventilation
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    select 
    <include refid="Base_Column_List" />
    from t_ventilation
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    delete from t_ventilation
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    delete from t_ventilation
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    insert into t_ventilation (id, org_id, v_cf_code, 
      operation_id, v_dev_name, v_device_code, 
      v_pattern, v_start_time, v_end_time, 
      v_distinguish_state, v_state, v_update_person, 
      data_source, v_update_time, updatetime, 
      zhdl, zydyjdqw, zydyjdpjqs, 
      zydyjdtfqpjlw, zydyjdzysc, zydejdqw, 
      zydejdpjqs, zydejdtfqpjlw, zydejdzysc, 
      zydsjdqw, zydsjdpjqs, zydsjdtfqpjlw, 
      zydsjdzysc, zydsijdqw, zydsijdpjqs, 
      zydsijdtfqpjlw, zydsijdzysc, zyqpjlw, 
      jshpjlw, jwfd, dljwnh, 
      sslssl, bsxgpjjg, tfjwjyxpjzc, 
      tfjwjyxpjsc, tfjwjyxpjzjc, tfjwjyxpjxc, 
      zyqpjsf, zyhpjsf, jsfd, 
      dljsnh, tfjsjyxfxzc, tfjsjyxfxsc, 
      tfjsjyxfxzjc, tfjsjyxfxxc)
    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{vCfCode,jdbcType=VARCHAR}, 
      #{operationId,jdbcType=VARCHAR}, #{vDevName,jdbcType=VARCHAR}, #{vDeviceCode,jdbcType=VARCHAR}, 
      #{vPattern,jdbcType=VARCHAR}, #{vStartTime,jdbcType=TIMESTAMP}, #{vEndTime,jdbcType=TIMESTAMP}, 
      #{vDistinguishState,jdbcType=INTEGER}, #{vState,jdbcType=INTEGER}, #{vUpdatePerson,jdbcType=VARCHAR}, 
      #{dataSource,jdbcType=VARCHAR}, #{vUpdateTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, 
      #{zhdl,jdbcType=VARCHAR}, #{zydyjdqw,jdbcType=VARCHAR}, #{zydyjdpjqs,jdbcType=VARCHAR}, 
      #{zydyjdtfqpjlw,jdbcType=VARCHAR}, #{zydyjdzysc,jdbcType=VARCHAR}, #{zydejdqw,jdbcType=VARCHAR}, 
      #{zydejdpjqs,jdbcType=VARCHAR}, #{zydejdtfqpjlw,jdbcType=VARCHAR}, #{zydejdzysc,jdbcType=VARCHAR}, 
      #{zydsjdqw,jdbcType=VARCHAR}, #{zydsjdpjqs,jdbcType=VARCHAR}, #{zydsjdtfqpjlw,jdbcType=VARCHAR}, 
      #{zydsjdzysc,jdbcType=VARCHAR}, #{zydsijdqw,jdbcType=VARCHAR}, #{zydsijdpjqs,jdbcType=VARCHAR}, 
      #{zydsijdtfqpjlw,jdbcType=VARCHAR}, #{zydsijdzysc,jdbcType=VARCHAR}, #{zyqpjlw,jdbcType=VARCHAR}, 
      #{jshpjlw,jdbcType=VARCHAR}, #{jwfd,jdbcType=VARCHAR}, #{dljwnh,jdbcType=VARCHAR}, 
      #{sslssl,jdbcType=VARCHAR}, #{bsxgpjjg,jdbcType=VARCHAR}, #{tfjwjyxpjzc,jdbcType=VARCHAR}, 
      #{tfjwjyxpjsc,jdbcType=VARCHAR}, #{tfjwjyxpjzjc,jdbcType=VARCHAR}, #{tfjwjyxpjxc,jdbcType=VARCHAR}, 
      #{zyqpjsf,jdbcType=VARCHAR}, #{zyhpjsf,jdbcType=VARCHAR}, #{jsfd,jdbcType=VARCHAR}, 
      #{dljsnh,jdbcType=VARCHAR}, #{tfjsjyxfxzc,jdbcType=VARCHAR}, #{tfjsjyxfxsc,jdbcType=VARCHAR}, 
      #{tfjsjyxfxzjc,jdbcType=VARCHAR}, #{tfjsjyxfxxc,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    insert into t_ventilation
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="orgId != null" >
        org_id,
      </if>
      <if test="vCfCode != null" >
        v_cf_code,
      </if>
      <if test="operationId != null" >
        operation_id,
      </if>
      <if test="vDevName != null" >
        v_dev_name,
      </if>
      <if test="vDeviceCode != null" >
        v_device_code,
      </if>
      <if test="vPattern != null" >
        v_pattern,
      </if>
      <if test="vStartTime != null" >
        v_start_time,
      </if>
      <if test="vEndTime != null" >
        v_end_time,
      </if>
      <if test="vDistinguishState != null" >
        v_distinguish_state,
      </if>
      <if test="vState != null" >
        v_state,
      </if>
      <if test="vUpdatePerson != null" >
        v_update_person,
      </if>
      <if test="dataSource != null" >
        data_source,
      </if>
      <if test="vUpdateTime != null" >
        v_update_time,
      </if>
      <if test="updatetime != null" >
        updatetime,
      </if>
      <if test="zhdl != null" >
        zhdl,
      </if>
      <if test="zydyjdqw != null" >
        zydyjdqw,
      </if>
      <if test="zydyjdpjqs != null" >
        zydyjdpjqs,
      </if>
      <if test="zydyjdtfqpjlw != null" >
        zydyjdtfqpjlw,
      </if>
      <if test="zydyjdzysc != null" >
        zydyjdzysc,
      </if>
      <if test="zydejdqw != null" >
        zydejdqw,
      </if>
      <if test="zydejdpjqs != null" >
        zydejdpjqs,
      </if>
      <if test="zydejdtfqpjlw != null" >
        zydejdtfqpjlw,
      </if>
      <if test="zydejdzysc != null" >
        zydejdzysc,
      </if>
      <if test="zydsjdqw != null" >
        zydsjdqw,
      </if>
      <if test="zydsjdpjqs != null" >
        zydsjdpjqs,
      </if>
      <if test="zydsjdtfqpjlw != null" >
        zydsjdtfqpjlw,
      </if>
      <if test="zydsjdzysc != null" >
        zydsjdzysc,
      </if>
      <if test="zydsijdqw != null" >
        zydsijdqw,
      </if>
      <if test="zydsijdpjqs != null" >
        zydsijdpjqs,
      </if>
      <if test="zydsijdtfqpjlw != null" >
        zydsijdtfqpjlw,
      </if>
      <if test="zydsijdzysc != null" >
        zydsijdzysc,
      </if>
      <if test="zyqpjlw != null" >
        zyqpjlw,
      </if>
      <if test="jshpjlw != null" >
        jshpjlw,
      </if>
      <if test="jwfd != null" >
        jwfd,
      </if>
      <if test="dljwnh != null" >
        dljwnh,
      </if>
      <if test="sslssl != null" >
        sslssl,
      </if>
      <if test="bsxgpjjg != null" >
        bsxgpjjg,
      </if>
      <if test="tfjwjyxpjzc != null" >
        tfjwjyxpjzc,
      </if>
      <if test="tfjwjyxpjsc != null" >
        tfjwjyxpjsc,
      </if>
      <if test="tfjwjyxpjzjc != null" >
        tfjwjyxpjzjc,
      </if>
      <if test="tfjwjyxpjxc != null" >
        tfjwjyxpjxc,
      </if>
      <if test="zyqpjsf != null" >
        zyqpjsf,
      </if>
      <if test="zyhpjsf != null" >
        zyhpjsf,
      </if>
      <if test="jsfd != null" >
        jsfd,
      </if>
      <if test="dljsnh != null" >
        dljsnh,
      </if>
      <if test="tfjsjyxfxzc != null" >
        tfjsjyxfxzc,
      </if>
      <if test="tfjsjyxfxsc != null" >
        tfjsjyxfxsc,
      </if>
      <if test="tfjsjyxfxzjc != null" >
        tfjsjyxfxzjc,
      </if>
      <if test="tfjsjyxfxxc != null" >
        tfjsjyxfxxc,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="orgId != null" >
        #{orgId,jdbcType=VARCHAR},
      </if>
      <if test="vCfCode != null" >
        #{vCfCode,jdbcType=VARCHAR},
      </if>
      <if test="operationId != null" >
        #{operationId,jdbcType=VARCHAR},
      </if>
      <if test="vDevName != null" >
        #{vDevName,jdbcType=VARCHAR},
      </if>
      <if test="vDeviceCode != null" >
        #{vDeviceCode,jdbcType=VARCHAR},
      </if>
      <if test="vPattern != null" >
        #{vPattern,jdbcType=VARCHAR},
      </if>
      <if test="vStartTime != null" >
        #{vStartTime,jdbcType=TIMESTAMP},
      </if>
      <if test="vEndTime != null" >
        #{vEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="vDistinguishState != null" >
        #{vDistinguishState,jdbcType=INTEGER},
      </if>
      <if test="vState != null" >
        #{vState,jdbcType=INTEGER},
      </if>
      <if test="vUpdatePerson != null" >
        #{vUpdatePerson,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null" >
        #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="vUpdateTime != null" >
        #{vUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null" >
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="zhdl != null" >
        #{zhdl,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdqw != null" >
        #{zydyjdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdpjqs != null" >
        #{zydyjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdtfqpjlw != null" >
        #{zydyjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdzysc != null" >
        #{zydyjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydejdqw != null" >
        #{zydejdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydejdpjqs != null" >
        #{zydejdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydejdtfqpjlw != null" >
        #{zydejdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydejdzysc != null" >
        #{zydejdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdqw != null" >
        #{zydsjdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdpjqs != null" >
        #{zydsjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdtfqpjlw != null" >
        #{zydsjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdzysc != null" >
        #{zydsjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdqw != null" >
        #{zydsijdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdpjqs != null" >
        #{zydsijdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdtfqpjlw != null" >
        #{zydsijdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdzysc != null" >
        #{zydsijdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zyqpjlw != null" >
        #{zyqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="jshpjlw != null" >
        #{jshpjlw,jdbcType=VARCHAR},
      </if>
      <if test="jwfd != null" >
        #{jwfd,jdbcType=VARCHAR},
      </if>
      <if test="dljwnh != null" >
        #{dljwnh,jdbcType=VARCHAR},
      </if>
      <if test="sslssl != null" >
        #{sslssl,jdbcType=VARCHAR},
      </if>
      <if test="bsxgpjjg != null" >
        #{bsxgpjjg,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjzc != null" >
        #{tfjwjyxpjzc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjsc != null" >
        #{tfjwjyxpjsc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjzjc != null" >
        #{tfjwjyxpjzjc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjxc != null" >
        #{tfjwjyxpjxc,jdbcType=VARCHAR},
      </if>
      <if test="zyqpjsf != null" >
        #{zyqpjsf,jdbcType=VARCHAR},
      </if>
      <if test="zyhpjsf != null" >
        #{zyhpjsf,jdbcType=VARCHAR},
      </if>
      <if test="jsfd != null" >
        #{jsfd,jdbcType=VARCHAR},
      </if>
      <if test="dljsnh != null" >
        #{dljsnh,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxzc != null" >
        #{tfjsjyxfxzc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxsc != null" >
        #{tfjsjyxfxsc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxzjc != null" >
        #{tfjsjyxfxzjc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxxc != null" >
        #{tfjsjyxfxxc,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" resultType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    select count(*) from t_ventilation
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    update t_ventilation
    <set >
      <if test="record.id != null" >
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.orgId != null" >
        org_id = #{record.orgId,jdbcType=VARCHAR},
      </if>
      <if test="record.vCfCode != null" >
        v_cf_code = #{record.vCfCode,jdbcType=VARCHAR},
      </if>
      <if test="record.operationId != null" >
        operation_id = #{record.operationId,jdbcType=VARCHAR},
      </if>
      <if test="record.vDevName != null" >
        v_dev_name = #{record.vDevName,jdbcType=VARCHAR},
      </if>
      <if test="record.vDeviceCode != null" >
        v_device_code = #{record.vDeviceCode,jdbcType=VARCHAR},
      </if>
      <if test="record.vPattern != null" >
        v_pattern = #{record.vPattern,jdbcType=VARCHAR},
      </if>
      <if test="record.vStartTime != null" >
        v_start_time = #{record.vStartTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.vEndTime != null" >
        v_end_time = #{record.vEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.vDistinguishState != null" >
        v_distinguish_state = #{record.vDistinguishState,jdbcType=INTEGER},
      </if>
      <if test="record.vState != null" >
        v_state = #{record.vState,jdbcType=INTEGER},
      </if>
      <if test="record.vUpdatePerson != null" >
        v_update_person = #{record.vUpdatePerson,jdbcType=VARCHAR},
      </if>
      <if test="record.dataSource != null" >
        data_source = #{record.dataSource,jdbcType=VARCHAR},
      </if>
      <if test="record.vUpdateTime != null" >
        v_update_time = #{record.vUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updatetime != null" >
        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.zhdl != null" >
        zhdl = #{record.zhdl,jdbcType=VARCHAR},
      </if>
      <if test="record.zydyjdqw != null" >
        zydyjdqw = #{record.zydyjdqw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydyjdpjqs != null" >
        zydyjdpjqs = #{record.zydyjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="record.zydyjdtfqpjlw != null" >
        zydyjdtfqpjlw = #{record.zydyjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydyjdzysc != null" >
        zydyjdzysc = #{record.zydyjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="record.zydejdqw != null" >
        zydejdqw = #{record.zydejdqw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydejdpjqs != null" >
        zydejdpjqs = #{record.zydejdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="record.zydejdtfqpjlw != null" >
        zydejdtfqpjlw = #{record.zydejdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydejdzysc != null" >
        zydejdzysc = #{record.zydejdzysc,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsjdqw != null" >
        zydsjdqw = #{record.zydsjdqw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsjdpjqs != null" >
        zydsjdpjqs = #{record.zydsjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsjdtfqpjlw != null" >
        zydsjdtfqpjlw = #{record.zydsjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsjdzysc != null" >
        zydsjdzysc = #{record.zydsjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsijdqw != null" >
        zydsijdqw = #{record.zydsijdqw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsijdpjqs != null" >
        zydsijdpjqs = #{record.zydsijdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsijdtfqpjlw != null" >
        zydsijdtfqpjlw = #{record.zydsijdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.zydsijdzysc != null" >
        zydsijdzysc = #{record.zydsijdzysc,jdbcType=VARCHAR},
      </if>
      <if test="record.zyqpjlw != null" >
        zyqpjlw = #{record.zyqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.jshpjlw != null" >
        jshpjlw = #{record.jshpjlw,jdbcType=VARCHAR},
      </if>
      <if test="record.jwfd != null" >
        jwfd = #{record.jwfd,jdbcType=VARCHAR},
      </if>
      <if test="record.dljwnh != null" >
        dljwnh = #{record.dljwnh,jdbcType=VARCHAR},
      </if>
      <if test="record.sslssl != null" >
        sslssl = #{record.sslssl,jdbcType=VARCHAR},
      </if>
      <if test="record.bsxgpjjg != null" >
        bsxgpjjg = #{record.bsxgpjjg,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjwjyxpjzc != null" >
        tfjwjyxpjzc = #{record.tfjwjyxpjzc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjwjyxpjsc != null" >
        tfjwjyxpjsc = #{record.tfjwjyxpjsc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjwjyxpjzjc != null" >
        tfjwjyxpjzjc = #{record.tfjwjyxpjzjc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjwjyxpjxc != null" >
        tfjwjyxpjxc = #{record.tfjwjyxpjxc,jdbcType=VARCHAR},
      </if>
      <if test="record.zyqpjsf != null" >
        zyqpjsf = #{record.zyqpjsf,jdbcType=VARCHAR},
      </if>
      <if test="record.zyhpjsf != null" >
        zyhpjsf = #{record.zyhpjsf,jdbcType=VARCHAR},
      </if>
      <if test="record.jsfd != null" >
        jsfd = #{record.jsfd,jdbcType=VARCHAR},
      </if>
      <if test="record.dljsnh != null" >
        dljsnh = #{record.dljsnh,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjsjyxfxzc != null" >
        tfjsjyxfxzc = #{record.tfjsjyxfxzc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjsjyxfxsc != null" >
        tfjsjyxfxsc = #{record.tfjsjyxfxsc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjsjyxfxzjc != null" >
        tfjsjyxfxzjc = #{record.tfjsjyxfxzjc,jdbcType=VARCHAR},
      </if>
      <if test="record.tfjsjyxfxxc != null" >
        tfjsjyxfxxc = #{record.tfjsjyxfxxc,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    update t_ventilation
    set id = #{record.id,jdbcType=VARCHAR},
      org_id = #{record.orgId,jdbcType=VARCHAR},
      v_cf_code = #{record.vCfCode,jdbcType=VARCHAR},
      operation_id = #{record.operationId,jdbcType=VARCHAR},
      v_dev_name = #{record.vDevName,jdbcType=VARCHAR},
      v_device_code = #{record.vDeviceCode,jdbcType=VARCHAR},
      v_pattern = #{record.vPattern,jdbcType=VARCHAR},
      v_start_time = #{record.vStartTime,jdbcType=TIMESTAMP},
      v_end_time = #{record.vEndTime,jdbcType=TIMESTAMP},
      v_distinguish_state = #{record.vDistinguishState,jdbcType=INTEGER},
      v_state = #{record.vState,jdbcType=INTEGER},
      v_update_person = #{record.vUpdatePerson,jdbcType=VARCHAR},
      data_source = #{record.dataSource,jdbcType=VARCHAR},
      v_update_time = #{record.vUpdateTime,jdbcType=TIMESTAMP},
      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
      zhdl = #{record.zhdl,jdbcType=VARCHAR},
      zydyjdqw = #{record.zydyjdqw,jdbcType=VARCHAR},
      zydyjdpjqs = #{record.zydyjdpjqs,jdbcType=VARCHAR},
      zydyjdtfqpjlw = #{record.zydyjdtfqpjlw,jdbcType=VARCHAR},
      zydyjdzysc = #{record.zydyjdzysc,jdbcType=VARCHAR},
      zydejdqw = #{record.zydejdqw,jdbcType=VARCHAR},
      zydejdpjqs = #{record.zydejdpjqs,jdbcType=VARCHAR},
      zydejdtfqpjlw = #{record.zydejdtfqpjlw,jdbcType=VARCHAR},
      zydejdzysc = #{record.zydejdzysc,jdbcType=VARCHAR},
      zydsjdqw = #{record.zydsjdqw,jdbcType=VARCHAR},
      zydsjdpjqs = #{record.zydsjdpjqs,jdbcType=VARCHAR},
      zydsjdtfqpjlw = #{record.zydsjdtfqpjlw,jdbcType=VARCHAR},
      zydsjdzysc = #{record.zydsjdzysc,jdbcType=VARCHAR},
      zydsijdqw = #{record.zydsijdqw,jdbcType=VARCHAR},
      zydsijdpjqs = #{record.zydsijdpjqs,jdbcType=VARCHAR},
      zydsijdtfqpjlw = #{record.zydsijdtfqpjlw,jdbcType=VARCHAR},
      zydsijdzysc = #{record.zydsijdzysc,jdbcType=VARCHAR},
      zyqpjlw = #{record.zyqpjlw,jdbcType=VARCHAR},
      jshpjlw = #{record.jshpjlw,jdbcType=VARCHAR},
      jwfd = #{record.jwfd,jdbcType=VARCHAR},
      dljwnh = #{record.dljwnh,jdbcType=VARCHAR},
      sslssl = #{record.sslssl,jdbcType=VARCHAR},
      bsxgpjjg = #{record.bsxgpjjg,jdbcType=VARCHAR},
      tfjwjyxpjzc = #{record.tfjwjyxpjzc,jdbcType=VARCHAR},
      tfjwjyxpjsc = #{record.tfjwjyxpjsc,jdbcType=VARCHAR},
      tfjwjyxpjzjc = #{record.tfjwjyxpjzjc,jdbcType=VARCHAR},
      tfjwjyxpjxc = #{record.tfjwjyxpjxc,jdbcType=VARCHAR},
      zyqpjsf = #{record.zyqpjsf,jdbcType=VARCHAR},
      zyhpjsf = #{record.zyhpjsf,jdbcType=VARCHAR},
      jsfd = #{record.jsfd,jdbcType=VARCHAR},
      dljsnh = #{record.dljsnh,jdbcType=VARCHAR},
      tfjsjyxfxzc = #{record.tfjsjyxfxzc,jdbcType=VARCHAR},
      tfjsjyxfxsc = #{record.tfjsjyxfxsc,jdbcType=VARCHAR},
      tfjsjyxfxzjc = #{record.tfjsjyxfxzjc,jdbcType=VARCHAR},
      tfjsjyxfxxc = #{record.tfjsjyxfxxc,jdbcType=VARCHAR}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    update t_ventilation
    <set >
      <if test="orgId != null" >
        org_id = #{orgId,jdbcType=VARCHAR},
      </if>
      <if test="vCfCode != null" >
        v_cf_code = #{vCfCode,jdbcType=VARCHAR},
      </if>
      <if test="operationId != null" >
        operation_id = #{operationId,jdbcType=VARCHAR},
      </if>
      <if test="vDevName != null" >
        v_dev_name = #{vDevName,jdbcType=VARCHAR},
      </if>
      <if test="vDeviceCode != null" >
        v_device_code = #{vDeviceCode,jdbcType=VARCHAR},
      </if>
      <if test="vPattern != null" >
        v_pattern = #{vPattern,jdbcType=VARCHAR},
      </if>
      <if test="vStartTime != null" >
        v_start_time = #{vStartTime,jdbcType=TIMESTAMP},
      </if>
      <if test="vEndTime != null" >
        v_end_time = #{vEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="vDistinguishState != null" >
        v_distinguish_state = #{vDistinguishState,jdbcType=INTEGER},
      </if>
      <if test="vState != null" >
        v_state = #{vState,jdbcType=INTEGER},
      </if>
      <if test="vUpdatePerson != null" >
        v_update_person = #{vUpdatePerson,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null" >
        data_source = #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="vUpdateTime != null" >
        v_update_time = #{vUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null" >
        updatetime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="zhdl != null" >
        zhdl = #{zhdl,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdqw != null" >
        zydyjdqw = #{zydyjdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdpjqs != null" >
        zydyjdpjqs = #{zydyjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdtfqpjlw != null" >
        zydyjdtfqpjlw = #{zydyjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydyjdzysc != null" >
        zydyjdzysc = #{zydyjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydejdqw != null" >
        zydejdqw = #{zydejdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydejdpjqs != null" >
        zydejdpjqs = #{zydejdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydejdtfqpjlw != null" >
        zydejdtfqpjlw = #{zydejdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydejdzysc != null" >
        zydejdzysc = #{zydejdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdqw != null" >
        zydsjdqw = #{zydsjdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdpjqs != null" >
        zydsjdpjqs = #{zydsjdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdtfqpjlw != null" >
        zydsjdtfqpjlw = #{zydsjdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydsjdzysc != null" >
        zydsjdzysc = #{zydsjdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdqw != null" >
        zydsijdqw = #{zydsijdqw,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdpjqs != null" >
        zydsijdpjqs = #{zydsijdpjqs,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdtfqpjlw != null" >
        zydsijdtfqpjlw = #{zydsijdtfqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="zydsijdzysc != null" >
        zydsijdzysc = #{zydsijdzysc,jdbcType=VARCHAR},
      </if>
      <if test="zyqpjlw != null" >
        zyqpjlw = #{zyqpjlw,jdbcType=VARCHAR},
      </if>
      <if test="jshpjlw != null" >
        jshpjlw = #{jshpjlw,jdbcType=VARCHAR},
      </if>
      <if test="jwfd != null" >
        jwfd = #{jwfd,jdbcType=VARCHAR},
      </if>
      <if test="dljwnh != null" >
        dljwnh = #{dljwnh,jdbcType=VARCHAR},
      </if>
      <if test="sslssl != null" >
        sslssl = #{sslssl,jdbcType=VARCHAR},
      </if>
      <if test="bsxgpjjg != null" >
        bsxgpjjg = #{bsxgpjjg,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjzc != null" >
        tfjwjyxpjzc = #{tfjwjyxpjzc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjsc != null" >
        tfjwjyxpjsc = #{tfjwjyxpjsc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjzjc != null" >
        tfjwjyxpjzjc = #{tfjwjyxpjzjc,jdbcType=VARCHAR},
      </if>
      <if test="tfjwjyxpjxc != null" >
        tfjwjyxpjxc = #{tfjwjyxpjxc,jdbcType=VARCHAR},
      </if>
      <if test="zyqpjsf != null" >
        zyqpjsf = #{zyqpjsf,jdbcType=VARCHAR},
      </if>
      <if test="zyhpjsf != null" >
        zyhpjsf = #{zyhpjsf,jdbcType=VARCHAR},
      </if>
      <if test="jsfd != null" >
        jsfd = #{jsfd,jdbcType=VARCHAR},
      </if>
      <if test="dljsnh != null" >
        dljsnh = #{dljsnh,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxzc != null" >
        tfjsjyxfxzc = #{tfjsjyxfxzc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxsc != null" >
        tfjsjyxfxsc = #{tfjsjyxfxsc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxzjc != null" >
        tfjsjyxfxzjc = #{tfjsjyxfxzjc,jdbcType=VARCHAR},
      </if>
      <if test="tfjsjyxfxxc != null" >
        tfjsjyxfxxc = #{tfjsjyxfxxc,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
      This element was generated on Tue Jun 09 10:55:51 CST 2020.
    -->
    update t_ventilation
    set org_id = #{orgId,jdbcType=VARCHAR},
      v_cf_code = #{vCfCode,jdbcType=VARCHAR},
      operation_id = #{operationId,jdbcType=VARCHAR},
      v_dev_name = #{vDevName,jdbcType=VARCHAR},
      v_device_code = #{vDeviceCode,jdbcType=VARCHAR},
      v_pattern = #{vPattern,jdbcType=VARCHAR},
      v_start_time = #{vStartTime,jdbcType=TIMESTAMP},
      v_end_time = #{vEndTime,jdbcType=TIMESTAMP},
      v_distinguish_state = #{vDistinguishState,jdbcType=INTEGER},
      v_state = #{vState,jdbcType=INTEGER},
      v_update_person = #{vUpdatePerson,jdbcType=VARCHAR},
      data_source = #{dataSource,jdbcType=VARCHAR},
      v_update_time = #{vUpdateTime,jdbcType=TIMESTAMP},
      updatetime = #{updatetime,jdbcType=TIMESTAMP},
      zhdl = #{zhdl,jdbcType=VARCHAR},
      zydyjdqw = #{zydyjdqw,jdbcType=VARCHAR},
      zydyjdpjqs = #{zydyjdpjqs,jdbcType=VARCHAR},
      zydyjdtfqpjlw = #{zydyjdtfqpjlw,jdbcType=VARCHAR},
      zydyjdzysc = #{zydyjdzysc,jdbcType=VARCHAR},
      zydejdqw = #{zydejdqw,jdbcType=VARCHAR},
      zydejdpjqs = #{zydejdpjqs,jdbcType=VARCHAR},
      zydejdtfqpjlw = #{zydejdtfqpjlw,jdbcType=VARCHAR},
      zydejdzysc = #{zydejdzysc,jdbcType=VARCHAR},
      zydsjdqw = #{zydsjdqw,jdbcType=VARCHAR},
      zydsjdpjqs = #{zydsjdpjqs,jdbcType=VARCHAR},
      zydsjdtfqpjlw = #{zydsjdtfqpjlw,jdbcType=VARCHAR},
      zydsjdzysc = #{zydsjdzysc,jdbcType=VARCHAR},
      zydsijdqw = #{zydsijdqw,jdbcType=VARCHAR},
      zydsijdpjqs = #{zydsijdpjqs,jdbcType=VARCHAR},
      zydsijdtfqpjlw = #{zydsijdtfqpjlw,jdbcType=VARCHAR},
      zydsijdzysc = #{zydsijdzysc,jdbcType=VARCHAR},
      zyqpjlw = #{zyqpjlw,jdbcType=VARCHAR},
      jshpjlw = #{jshpjlw,jdbcType=VARCHAR},
      jwfd = #{jwfd,jdbcType=VARCHAR},
      dljwnh = #{dljwnh,jdbcType=VARCHAR},
      sslssl = #{sslssl,jdbcType=VARCHAR},
      bsxgpjjg = #{bsxgpjjg,jdbcType=VARCHAR},
      tfjwjyxpjzc = #{tfjwjyxpjzc,jdbcType=VARCHAR},
      tfjwjyxpjsc = #{tfjwjyxpjsc,jdbcType=VARCHAR},
      tfjwjyxpjzjc = #{tfjwjyxpjzjc,jdbcType=VARCHAR},
      tfjwjyxpjxc = #{tfjwjyxpjxc,jdbcType=VARCHAR},
      zyqpjsf = #{zyqpjsf,jdbcType=VARCHAR},
      zyhpjsf = #{zyhpjsf,jdbcType=VARCHAR},
      jsfd = #{jsfd,jdbcType=VARCHAR},
      dljsnh = #{dljsnh,jdbcType=VARCHAR},
      tfjsjyxfxzc = #{tfjsjyxfxzc,jdbcType=VARCHAR},
      tfjsjyxfxsc = #{tfjsjyxfxsc,jdbcType=VARCHAR},
      tfjsjyxfxzjc = #{tfjsjyxfxzjc,jdbcType=VARCHAR},
      tfjsjyxfxxc = #{tfjsjyxfxxc,jdbcType=VARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  
  <insert id="insertBatch" parameterType="java.util.List">
    insert into t_ventilation (id, org_id, v_cf_code,
    operation_id, v_dev_name, v_device_code,
    v_pattern, v_start_time, v_end_time,
    v_distinguish_state, v_state, v_update_person,
    data_source, v_update_time)
    values
    <foreach collection="list" item="record" index="index" separator=",">
      (#{record.id,jdbcType=VARCHAR}, #{record.orgId,jdbcType=VARCHAR}, #{record.vCfCode,jdbcType=VARCHAR},
      #{record.operationId,jdbcType=VARCHAR}, #{record.vDevName,jdbcType=VARCHAR}, #{record.vDeviceCode,jdbcType=VARCHAR},
      #{record.vPattern,jdbcType=VARCHAR}, #{record.vStartTime,jdbcType=TIMESTAMP}, #{record.vEndTime,jdbcType=TIMESTAMP},
      #{record.vDistinguishState,jdbcType=INTEGER}, #{record.vState,jdbcType=INTEGER}, #{record.vUpdatePerson,jdbcType=VARCHAR},
      #{record.dataSource,jdbcType=VARCHAR}, #{record.vUpdateTime,jdbcType=TIMESTAMP})
    </foreach>
  </insert>

  <select id="getByCode" resultMap="BaseResultMap" parameterType="java.util.Map">
    select
    <include refid="Base_Column_List" />
    from t_ventilation
    where v_cf_code = #{vcfcode,jdbcType=VARCHAR} and v_dev_name = #{vdevname,jdbcType=VARCHAR}
  </select>
</mapper>