<?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.meterbasemetertypeconf.mapper.MeterBaseMetertypeConfMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasemetertypeconf.model.MeterBaseMetertypeConf">
    <id column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="IS_NEED_DOOR" jdbcType="VARCHAR" property="isNeedDoor" />
    <result column="IS_ALLOW_TERM_TARE" jdbcType="VARCHAR" property="isAllowTermTare" />
    <result column="IS_APP_USED" jdbcType="VARCHAR" property="isAppUsed" />
    <result column="METER_TYPE" jdbcType="VARCHAR" property="meterType" />
    <result column="METER_SORT" jdbcType="VARCHAR" property="meterSort" />
    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
    <result column="SPOT_TYPE_NO" jdbcType="VARCHAR" property="spotTypeNo" />
    <result column="SPOT_TYPE_NAME" jdbcType="VARCHAR" property="spotTypeName" />
    <result column="IS_ALLOW_OWN_TARE" jdbcType="VARCHAR" property="isAllowOwnTare" />
  </resultMap>
  <sql id="columns">
    METER_TYPE_NO, VALUE_FLAG, MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
    UPDATE_MAN_NAME, UPDATE_TIME, IS_NEED_DOOR, IS_ALLOW_TERM_TARE, IS_APP_USED, METER_TYPE, 
    METER_SORT, METER_TYPE_NAME, SPOT_TYPE_NO, SPOT_TYPE_NAME, IS_ALLOW_OWN_TARE
  </sql>
  <sql id="columns_alias">
    t.METER_TYPE_NO, t.VALUE_FLAG, t.MEMO, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, 
    t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.IS_NEED_DOOR, t.IS_ALLOW_TERM_TARE, 
    t.IS_APP_USED, t.METER_TYPE, t.METER_SORT, t.METER_TYPE_NAME, t.SPOT_TYPE_NO, t.SPOT_TYPE_NAME, 
    t.IS_ALLOW_OWN_TARE
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_BASE_METERTYPE_CONF
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_BASE_METERTYPE_CONF t
  </sql>
  <sql id="where">
    <where> 
      <if test="meterTypeNo != null and meterTypeNo != ''">
        and METER_TYPE_NO = #{meterTypeNo}
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        and VALUE_FLAG = #{valueFlag}
      </if>
      <if test="memo != null and memo != ''">
        and MEMO = #{memo}
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="isNeedDoor != null and isNeedDoor != ''">
        and IS_NEED_DOOR = #{isNeedDoor}
      </if>
      <if test="isAllowTermTare != null and isAllowTermTare != ''">
        and IS_ALLOW_TERM_TARE = #{isAllowTermTare}
      </if>
      <if test="isAppUsed != null and isAppUsed != ''">
        and IS_APP_USED = #{isAppUsed}
      </if>
      <if test="meterType != null and meterType != ''">
        and METER_TYPE = #{meterType}
      </if>
      <if test="meterSort != null and meterSort != ''">
        and METER_SORT = #{meterSort}
      </if>
      <if test="meterTypeName != null and meterTypeName != ''">
        and METER_TYPE_NAME = #{meterTypeName}
      </if>
      <if test="spotTypeNo != null and spotTypeNo != ''">
        and SPOT_TYPE_NO = #{spotTypeNo}
      </if>
      <if test="spotTypeName != null and spotTypeName != ''">
        and SPOT_TYPE_NAME = #{spotTypeName}
      </if>
      <if test="isAllowOwnTare != null and isAllowOwnTare != ''">
        and IS_ALLOW_OWN_TARE = #{isAllowOwnTare}
      </if>
    </where>
  </sql>
  <sql id="whereLike">
    <where> 
      <if test="meterTypeNo != null and meterTypeNo != ''">
        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
      </if>
      <if test="valueFlag != null and valueFlag != ''">
        and VALUE_FLAG LIKE '%${valueFlag}%'
      </if>
      <if test="memo != null and memo != ''">
        and MEMO LIKE '%${memo}%'
      </if>
      <if test="createManNo != null and createManNo != ''">
        and CREATE_MAN_NO LIKE '%${createManNo}%'
      </if>
      <if test="createManName != null and createManName != ''">
        and CREATE_MAN_NAME LIKE '%${createManName}%'
      </if>
      <if test="createTime != null">
        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
      </if>
      <if test="updateManName != null and updateManName != ''">
        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
      </if>
      <if test="updateTime != null">
        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
      </if>
      <if test="isNeedDoor != null and isNeedDoor != ''">
        and IS_NEED_DOOR LIKE '%${isNeedDoor}%'
      </if>
      <if test="isAllowTermTare != null and isAllowTermTare != ''">
        and IS_ALLOW_TERM_TARE LIKE '%${isAllowTermTare}%'
      </if>
      <if test="isAppUsed != null and isAppUsed != ''">
        and IS_APP_USED LIKE '%${isAppUsed}%'
      </if>
      <if test="meterType != null and meterType != ''">
        and METER_TYPE LIKE '%${meterType}%'
      </if>
      <if test="meterSort != null and meterSort != ''">
        and METER_SORT LIKE '%${meterSort}%'
      </if>
      <if test="meterTypeName != null and meterTypeName != ''">
        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
      </if>
      <if test="spotTypeNo != null and spotTypeNo != ''">
        and SPOT_TYPE_NO LIKE '%${spotTypeNo}%'
      </if>
      <if test="spotTypeName != null and spotTypeName != ''">
        and SPOT_TYPE_NAME LIKE '%${spotTypeName}%'
      </if>
      <if test="isAllowOwnTare != null and isAllowOwnTare != ''">
        and IS_ALLOW_OWN_TARE LIKE '%${isAllowOwnTare}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_BASE_METERTYPE_CONF
    where METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_BASE_METERTYPE_CONF
    where 1!=1 
      <if test="valueFlag != null and valueFlag != ''">
        or VALUE_FLAG = #{valueFlag}
      </if>
      <if test="memo != null and memo != ''">
        or MEMO = #{memo}
      </if>
      <if test="createManNo != null and createManNo != ''">
        or CREATE_MAN_NO = #{createManNo}
      </if>
      <if test="createManName != null and createManName != ''">
        or CREATE_MAN_NAME = #{createManName}
      </if>
      <if test="createTime != null">
        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
      </if>
      <if test="updateManNo != null and updateManNo != ''">
        or UPDATE_MAN_NO = #{updateManNo}
      </if>
      <if test="updateManName != null and updateManName != ''">
        or UPDATE_MAN_NAME = #{updateManName}
      </if>
      <if test="updateTime != null">
        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
      </if>
      <if test="isNeedDoor != null and isNeedDoor != ''">
        or IS_NEED_DOOR = #{isNeedDoor}
      </if>
      <if test="isAllowTermTare != null and isAllowTermTare != ''">
        or IS_ALLOW_TERM_TARE = #{isAllowTermTare}
      </if>
      <if test="isAppUsed != null and isAppUsed != ''">
        or IS_APP_USED = #{isAppUsed}
      </if>
      <if test="meterType != null and meterType != ''">
        or METER_TYPE = #{meterType}
      </if>
      <if test="meterSort != null and meterSort != ''">
        or METER_SORT = #{meterSort}
      </if>
      <if test="meterTypeName != null and meterTypeName != ''">
        or METER_TYPE_NAME = #{meterTypeName}
      </if>
      <if test="spotTypeNo != null and spotTypeNo != ''">
        or SPOT_TYPE_NO = #{spotTypeNo}
      </if>
      <if test="spotTypeName != null and spotTypeName != ''">
        or SPOT_TYPE_NAME = #{spotTypeName}
      </if>
      <if test="isAllowOwnTare != null and isAllowOwnTare != ''">
        or IS_ALLOW_OWN_TARE = #{isAllowOwnTare}
      </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasemetertypeconf.model.MeterBaseMetertypeConf">
    insert into METER_BASE_METERTYPE_CONF (METER_TYPE_NO, VALUE_FLAG, MEMO, 
      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
      IS_NEED_DOOR, IS_ALLOW_TERM_TARE, IS_APP_USED, 
      METER_TYPE, METER_SORT, METER_TYPE_NAME, 
      SPOT_TYPE_NO, SPOT_TYPE_NAME, IS_ALLOW_OWN_TARE
      )
    values (#{meterTypeNo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, 
      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{isNeedDoor,jdbcType=VARCHAR}, #{isAllowTermTare,jdbcType=VARCHAR}, #{isAppUsed,jdbcType=VARCHAR}, 
      #{meterType,jdbcType=VARCHAR}, #{meterSort,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, 
      #{spotTypeNo,jdbcType=VARCHAR}, #{spotTypeName,jdbcType=VARCHAR}, #{isAllowOwnTare,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasemetertypeconf.model.MeterBaseMetertypeConf">
    insert into METER_BASE_METERTYPE_CONF
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="meterTypeNo != null">
        METER_TYPE_NO,
      </if>
      <if test="valueFlag != null">
        VALUE_FLAG,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO,
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME,
      </if>
      <if test="createTime != null">
        CREATE_TIME,
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO,
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME,
      </if>
      <if test="updateTime != null">
        UPDATE_TIME,
      </if>
      <if test="isNeedDoor != null">
        IS_NEED_DOOR,
      </if>
      <if test="isAllowTermTare != null">
        IS_ALLOW_TERM_TARE,
      </if>
      <if test="isAppUsed != null">
        IS_APP_USED,
      </if>
      <if test="meterType != null">
        METER_TYPE,
      </if>
      <if test="meterSort != null">
        METER_SORT,
      </if>
      <if test="meterTypeName != null">
        METER_TYPE_NAME,
      </if>
      <if test="spotTypeNo != null">
        SPOT_TYPE_NO,
      </if>
      <if test="spotTypeName != null">
        SPOT_TYPE_NAME,
      </if>
      <if test="isAllowOwnTare != null">
        IS_ALLOW_OWN_TARE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="meterTypeNo != null">
        #{meterTypeNo,jdbcType=VARCHAR},
      </if>
      <if test="valueFlag != null">
        #{valueFlag,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="isNeedDoor != null">
        #{isNeedDoor,jdbcType=VARCHAR},
      </if>
      <if test="isAllowTermTare != null">
        #{isAllowTermTare,jdbcType=VARCHAR},
      </if>
      <if test="isAppUsed != null">
        #{isAppUsed,jdbcType=VARCHAR},
      </if>
      <if test="meterType != null">
        #{meterType,jdbcType=VARCHAR},
      </if>
      <if test="meterSort != null">
        #{meterSort,jdbcType=VARCHAR},
      </if>
      <if test="meterTypeName != null">
        #{meterTypeName,jdbcType=VARCHAR},
      </if>
      <if test="spotTypeNo != null">
        #{spotTypeNo,jdbcType=VARCHAR},
      </if>
      <if test="spotTypeName != null">
        #{spotTypeName,jdbcType=VARCHAR},
      </if>
      <if test="isAllowOwnTare != null">
        #{isAllowOwnTare,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasemetertypeconf.model.MeterBaseMetertypeConf">
    update METER_BASE_METERTYPE_CONF
    set VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
      MEMO = #{memo,jdbcType=VARCHAR},
      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      IS_NEED_DOOR = #{isNeedDoor,jdbcType=VARCHAR},
      IS_ALLOW_TERM_TARE = #{isAllowTermTare,jdbcType=VARCHAR},
      IS_APP_USED = #{isAppUsed,jdbcType=VARCHAR},
      METER_TYPE = #{meterType,jdbcType=VARCHAR},
      METER_SORT = #{meterSort,jdbcType=VARCHAR},
      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
      SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
      SPOT_TYPE_NAME = #{spotTypeName,jdbcType=VARCHAR},
      IS_ALLOW_OWN_TARE = #{isAllowOwnTare,jdbcType=VARCHAR}
    where METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasemetertypeconf.model.MeterBaseMetertypeConf">
    update METER_BASE_METERTYPE_CONF
    <set>
      <if test="valueFlag != null">
        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="createManNo != null">
        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
      </if>
      <if test="createManName != null">
        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateManNo != null">
        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
      </if>
      <if test="updateManName != null">
        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="isNeedDoor != null">
        IS_NEED_DOOR = #{isNeedDoor,jdbcType=VARCHAR},
      </if>
      <if test="isAllowTermTare != null">
        IS_ALLOW_TERM_TARE = #{isAllowTermTare,jdbcType=VARCHAR},
      </if>
      <if test="isAppUsed != null">
        IS_APP_USED = #{isAppUsed,jdbcType=VARCHAR},
      </if>
      <if test="meterType != null">
        METER_TYPE = #{meterType,jdbcType=VARCHAR},
      </if>
      <if test="meterSort != null">
        METER_SORT = #{meterSort,jdbcType=VARCHAR},
      </if>
      <if test="meterTypeName != null">
        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
      </if>
      <if test="spotTypeNo != null">
        SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
      </if>
      <if test="spotTypeName != null">
        SPOT_TYPE_NAME = #{spotTypeName,jdbcType=VARCHAR},
      </if>
      <if test="isAllowOwnTare != null">
        IS_ALLOW_OWN_TARE = #{isAllowOwnTare,jdbcType=VARCHAR},
      </if>
    </set>
    where METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where METER_TYPE_NO = #{meterTypeNo,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_METERTYPE_CONF 
      (METER_TYPE_NO, 
      VALUE_FLAG, MEMO, CREATE_MAN_NO, 
      CREATE_MAN_NAME, CREATE_TIME, 
      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
      IS_NEED_DOOR, IS_ALLOW_TERM_TARE, 
      IS_APP_USED, METER_TYPE, METER_SORT, 
      METER_TYPE_NAME, SPOT_TYPE_NO, SPOT_TYPE_NAME, 
      IS_ALLOW_OWN_TARE)
    ( <foreach collection="list" item="item" separator="union all"> 
   select  
      #{item.meterTypeNo,jdbcType=VARCHAR}, 
      #{item.valueFlag,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, 
      #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
      #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
      #{item.isNeedDoor,jdbcType=VARCHAR}, #{item.isAllowTermTare,jdbcType=VARCHAR}, 
      #{item.isAppUsed,jdbcType=VARCHAR}, #{item.meterType,jdbcType=VARCHAR}, #{item.meterSort,jdbcType=VARCHAR}, 
      #{item.meterTypeName,jdbcType=VARCHAR}, #{item.spotTypeNo,jdbcType=VARCHAR}, #{item.spotTypeName,jdbcType=VARCHAR}, 
      #{item.isAllowOwnTare,jdbcType=VARCHAR} from dual  
   </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_BASE_METERTYPE_CONF
     set
       METER_TYPE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
       </foreach>
       ,VALUE_FLAG=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
       </foreach>
       ,MEMO=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
       ,IS_NEED_DOOR=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.isNeedDoor,jdbcType=VARCHAR}
       </foreach>
       ,IS_ALLOW_TERM_TARE=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.isAllowTermTare,jdbcType=VARCHAR}
       </foreach>
       ,IS_APP_USED=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.isAppUsed,jdbcType=VARCHAR}
       </foreach>
       ,METER_TYPE=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.meterType,jdbcType=VARCHAR}
       </foreach>
       ,METER_SORT=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.meterSort,jdbcType=VARCHAR}
       </foreach>
       ,METER_TYPE_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
       </foreach>
       ,SPOT_TYPE_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.spotTypeNo,jdbcType=VARCHAR}
       </foreach>
       ,SPOT_TYPE_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.spotTypeName,jdbcType=VARCHAR}
       </foreach>
       ,IS_ALLOW_OWN_TARE=
       <foreach collection="list" item="item" index="index" separator=" " open="case METER_TYPE_NO" close="end">
          when #{item.meterTypeNo,jdbcType=VARCHAR} then #{item.isAllowOwnTare,jdbcType=VARCHAR}
       </foreach>
     where METER_TYPE_NO in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.meterTypeNo,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_BASE_METERTYPE_CONF
    where METER_TYPE_NO in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->
  
</mapper>