<?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.meterbaseoperationlog.mapper.MeterBaseOperationLogMapper">
  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbaseoperationlog.model.MeterBaseOperationLog">
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <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="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
    <result column="OPERATION_PAGE" jdbcType="VARCHAR" property="operationPage" />
    <result column="OPERATION_FUNCTION" jdbcType="VARCHAR" property="operationFunction" />
    <result column="OPERATION_ID" jdbcType="VARCHAR" property="operationId" />
    <result column="OPERATION_PREDICTION_NO" jdbcType="VARCHAR" property="operationPredictionNo" />
    <result column="OPERATION_CARN_NO" jdbcType="VARCHAR" property="operationCarnNo" />
    <result column="OPERATION_BEFORE_FIX" jdbcType="VARCHAR" property="operationBeforeFix" />
    <result column="OPERATION_AFTER_FIX" jdbcType="VARCHAR" property="operationAfterFix" />
    <result column="LOG_TYPE" jdbcType="VARCHAR" property="logType" />
    <result column="LOG_TYPE_CODE" jdbcType="VARCHAR" property="logTypeCode" />
  </resultMap>
  <sql id="columns">
    ID, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
    UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, OPERATION_PAGE, OPERATION_FUNCTION, 
    OPERATION_ID, OPERATION_PREDICTION_NO, OPERATION_CARN_NO, OPERATION_BEFORE_FIX, OPERATION_AFTER_FIX,
    LOG_TYPE, LOG_TYPE_CODE
  </sql>
  <sql id="columns_alias">
    t.ID, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME,
    t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.OPERATION_PAGE,
    t.OPERATION_FUNCTION, t.OPERATION_ID, t.OPERATION_PREDICTION_NO, t.OPERATION_CARN_NO,
    t.OPERATION_BEFORE_FIX, t.OPERATION_AFTER_FIX, t.LOG_TYPE, t.LOG_TYPE_CODE
  </sql>
  <sql id="select">
    SELECT <include refid="columns"/> FROM METER_BASE_OPERATION_LOG
  </sql>
  <sql id="select_alias">
    SELECT <include refid="columns_alias"/> FROM METER_BASE_OPERATION_LOG t
  </sql>
  <sql id="where">
  <where>
    <if test="id != null and id != ''">
      and ID = #{id}
    </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="deleteManNo != null and deleteManNo != ''">
      and DELETE_MAN_NO = #{deleteManNo}
    </if>
    <if test="deleteManName != null and deleteManName != ''">
      and DELETE_MAN_NAME = #{deleteManName}
    </if>
    <if test="deleteTime != null">
      and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
    </if>
    <if test="operationPage != null and operationPage != ''">
      and OPERATION_PAGE = #{operationPage}
    </if>
    <if test="operationFunction != null and operationFunction != ''">
      and OPERATION_FUNCTION = #{operationFunction}
    </if>
    <if test="operationId != null and operationId != ''">
      and OPERATION_ID = #{operationId}
    </if>
    <if test="operationPredictionNo != null and operationPredictionNo != ''">
      and OPERATION_PREDICTION_NO = #{operationPredictionNo}
    </if>
    <if test="operationCarnNo != null and operationCarnNo != ''">
      and OPERATION_CARN_NO = #{operationCarnNo}
    </if>
    <if test="operationBeforeFix != null and operationBeforeFix != ''">
      and OPERATION_BEFORE_FIX = #{operationBeforeFix}
    </if>
    <if test="operationAfterFix != null and operationAfterFix != ''">
      and OPERATION_AFTER_FIX = #{operationAfterFix}
    </if>
    <if test="logType != null and logType != ''">
      and LOG_TYPE = #{logType}
    </if>
    <if test="logTypeCode != null and logTypeCode != ''">
      and LOG_TYPE_CODE = #{logTypeCode}
    </if>
  </where>
</sql>
  <sql id="whereLike">
    <where>
      <if test="id != null and id != ''">
        and ID LIKE '%${id}%'
      </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="deleteManNo != null and deleteManNo != ''">
        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
      </if>
      <if test="deleteManName != null and deleteManName != ''">
        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
      </if>
      <if test="deleteTime != null">
        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
      </if>
      <if test="operationPage != null and operationPage != ''">
        and OPERATION_PAGE LIKE '%${operationPage}%'
      </if>
      <if test="operationFunction != null and operationFunction != ''">
        and OPERATION_FUNCTION LIKE '%${operationFunction}%'
      </if>
      <if test="operationId != null and operationId != ''">
        and OPERATION_ID LIKE '%${operationId}%'
      </if>
      <if test="operationPredictionNo != null and operationPredictionNo != ''">
        and OPERATION_PREDICTION_NO LIKE '%${operationPredictionNo}%'
      </if>
      <if test="operationCarnNo != null and operationCarnNo != ''">
        and OPERATION_CARN_NO LIKE '%${operationCarnNo}%'
      </if>
      <if test="operationBeforeFix != null and operationBeforeFix != ''">
        and OPERATION_BEFORE_FIX LIKE '%${operationBeforeFix}%'
      </if>
      <if test="operationAfterFix != null and operationAfterFix != ''">
        and OPERATION_AFTER_FIX LIKE '%${operationAfterFix}%'
      </if>
      <if test="logType != null and logType != ''">
        and LOG_TYPE LIKE '%${logType}%'
      </if>
      <if test="logTypeCode != null and logTypeCode != ''">
        and LOG_TYPE_CODE LIKE '%${logTypeCode}%'
      </if>
    </where>
  </sql>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from METER_BASE_OPERATION_LOG
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
    delete from METER_BASE_OPERATION_LOG
    where 1!=1
    <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="deleteManNo != null and deleteManNo != ''">
      or DELETE_MAN_NO = #{deleteManNo}
    </if>
    <if test="deleteManName != null and deleteManName != ''">
      or DELETE_MAN_NAME = #{deleteManName}
    </if>
    <if test="deleteTime != null">
      or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
    </if>
    <if test="operationPage != null and operationPage != ''">
      or OPERATION_PAGE = #{operationPage}
    </if>
    <if test="operationFunction != null and operationFunction != ''">
      or OPERATION_FUNCTION = #{operationFunction}
    </if>
    <if test="operationId != null and operationId != ''">
      or OPERATION_ID = #{operationId}
    </if>
    <if test="operationPredictionNo != null and operationPredictionNo != ''">
      or OPERATION_PREDICTION_NO = #{operationPredictionNo}
    </if>
    <if test="operationCarnNo != null and operationCarnNo != ''">
      or OPERATION_CARN_NO = #{operationCarnNo}
    </if>
    <if test="operationBeforeFix != null and operationBeforeFix != ''">
      or OPERATION_BEFORE_FIX = #{operationBeforeFix}
    </if>
    <if test="operationAfterFix != null and operationAfterFix != ''">
      or OPERATION_AFTER_FIX = #{operationAfterFix}
    </if>
    <if test="logType != null and logType != ''">
      or LOG_TYPE = #{logType}
    </if>
    <if test="logTypeCode != null and logTypeCode != ''">
      or LOG_TYPE_CODE = #{logTypeCode}
    </if>
  </delete>
  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbaseoperationlog.model.MeterBaseOperationLog">
   insert into METER_BASE_OPERATION_LOG (ID, CREATE_MAN_NO, CREATE_MAN_NAME,
      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
      UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
      DELETE_TIME, OPERATION_PAGE, OPERATION_FUNCTION,
      OPERATION_ID, OPERATION_PREDICTION_NO, OPERATION_CARN_NO,
      OPERATION_BEFORE_FIX, OPERATION_AFTER_FIX,
      LOG_TYPE, LOG_TYPE_CODE)
    values (#{id,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
      #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
      #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
      #{deleteTime,jdbcType=TIMESTAMP}, #{operationPage,jdbcType=VARCHAR}, #{operationFunction,jdbcType=VARCHAR},
      #{operationId,jdbcType=VARCHAR}, #{operationPredictionNo,jdbcType=VARCHAR}, #{operationCarnNo,jdbcType=VARCHAR},
      #{operationBeforeFix,jdbcType=VARCHAR}, #{operationAfterFix,jdbcType=VARCHAR},
      #{logType,jdbcType=VARCHAR}, #{logTypeCode,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbaseoperationlog.model.MeterBaseOperationLog">
    insert into METER_BASE_OPERATION_LOG
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </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="deleteManNo != null">
        DELETE_MAN_NO,
      </if>
      <if test="deleteManName != null">
        DELETE_MAN_NAME,
      </if>
      <if test="deleteTime != null">
        DELETE_TIME,
      </if>
      <if test="operationPage != null">
        OPERATION_PAGE,
      </if>
      <if test="operationFunction != null">
        OPERATION_FUNCTION,
      </if>
      <if test="operationId != null">
        OPERATION_ID,
      </if>
      <if test="operationPredictionNo != null">
        OPERATION_PREDICTION_NO,
      </if>
      <if test="operationCarnNo != null">
        OPERATION_CARN_NO,
      </if>
      <if test="operationBeforeFix != null">
        OPERATION_BEFORE_FIX,
      </if>
      <if test="operationAfterFix != null">
        OPERATION_AFTER_FIX,
      </if>
      <if test="logType != null">
        LOG_TYPE,
      </if>
      <if test="logTypeCode != null">
        LOG_TYPE_CODE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,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="deleteManNo != null">
        #{deleteManNo,jdbcType=VARCHAR},
      </if>
      <if test="deleteManName != null">
        #{deleteManName,jdbcType=VARCHAR},
      </if>
      <if test="deleteTime != null">
        #{deleteTime,jdbcType=TIMESTAMP},
      </if>
      <if test="operationPage != null">
        #{operationPage,jdbcType=VARCHAR},
      </if>
      <if test="operationFunction != null">
        #{operationFunction,jdbcType=VARCHAR},
      </if>
      <if test="operationId != null">
        #{operationId,jdbcType=VARCHAR},
      </if>
      <if test="operationPredictionNo != null">
        #{operationPredictionNo,jdbcType=VARCHAR},
      </if>
      <if test="operationCarnNo != null">
        #{operationCarnNo,jdbcType=VARCHAR},
      </if>
      <if test="operationBeforeFix != null">
        #{operationBeforeFix,jdbcType=VARCHAR},
      </if>
      <if test="operationAfterFix != null">
        #{operationAfterFix,jdbcType=VARCHAR},
      </if>
      <if test="logType != null">
        #{logType,jdbcType=VARCHAR},
      </if>
      <if test="logTypeCode != null">
        #{logTypeCode,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbaseoperationlog.model.MeterBaseOperationLog">
    update METER_BASE_OPERATION_LOG
    set 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},
      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
      OPERATION_PAGE = #{operationPage,jdbcType=VARCHAR},
      OPERATION_FUNCTION = #{operationFunction,jdbcType=VARCHAR},
      OPERATION_ID = #{operationId,jdbcType=VARCHAR},
      OPERATION_PREDICTION_NO = #{operationPredictionNo,jdbcType=VARCHAR},
      OPERATION_CARN_NO = #{operationCarnNo,jdbcType=VARCHAR},
      OPERATION_BEFORE_FIX = #{operationBeforeFix,jdbcType=VARCHAR},
      OPERATION_AFTER_FIX = #{operationAfterFix,jdbcType=VARCHAR},
      LOG_TYPE = #{logType,jdbcType=VARCHAR},
      LOG_TYPE_CODE = #{logTypeCode,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbaseoperationlog.model.MeterBaseOperationLog">
    update METER_BASE_OPERATION_LOG
    <set>
      <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="deleteManNo != null">
        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
      </if>
      <if test="deleteManName != null">
        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
      </if>
      <if test="deleteTime != null">
        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
      </if>
      <if test="operationPage != null">
        OPERATION_PAGE = #{operationPage,jdbcType=VARCHAR},
      </if>
      <if test="operationFunction != null">
        OPERATION_FUNCTION = #{operationFunction,jdbcType=VARCHAR},
      </if>
      <if test="operationId != null">
        OPERATION_ID = #{operationId,jdbcType=VARCHAR},
      </if>
      <if test="operationPredictionNo != null">
        OPERATION_PREDICTION_NO = #{operationPredictionNo,jdbcType=VARCHAR},
      </if>
      <if test="operationCarnNo != null">
        OPERATION_CARN_NO = #{operationCarnNo,jdbcType=VARCHAR},
      </if>
      <if test="operationBeforeFix != null">
        OPERATION_BEFORE_FIX = #{operationBeforeFix,jdbcType=VARCHAR},
      </if>
      <if test="operationAfterFix != null">
        OPERATION_AFTER_FIX = #{operationAfterFix,jdbcType=VARCHAR},
      </if>
      <if test="logType != null">
        LOG_TYPE = #{logType,jdbcType=VARCHAR},
      </if>
      <if test="logTypeCode != null">
        LOG_TYPE_CODE = #{logTypeCode,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <include refid="select"/>
    where ID = #{id,jdbcType=VARCHAR}
  </select>
  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="where"/>
    order by CREATE_TIME  desc
  </select>
  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    <include refid="select"/>
    <include refid="whereLike"/>
    order by CREATE_TIME  desc
  </select>
  <insert id="batchInsert" parameterType="java.util.List">
    insert into METER_BASE_OPERATION_LOG
    (ID,
    CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
    UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
    DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
    OPERATION_PAGE, OPERATION_FUNCTION,
    OPERATION_ID, OPERATION_PREDICTION_NO,
    OPERATION_CARN_NO, OPERATION_BEFORE_FIX,
    OPERATION_AFTER_FIX, LOG_TYPE, LOG_TYPE_CODE
    )
    ( <foreach collection="list" item="item" separator="union all">
    select
    #{item.id,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.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
    #{item.operationPage,jdbcType=VARCHAR}, #{item.operationFunction,jdbcType=VARCHAR},
    #{item.operationId,jdbcType=VARCHAR}, #{item.operationPredictionNo,jdbcType=VARCHAR},
    #{item.operationCarnNo,jdbcType=VARCHAR}, #{item.operationBeforeFix,jdbcType=VARCHAR},
    #{item.operationAfterFix,jdbcType=VARCHAR}, #{item.logType,jdbcType=VARCHAR}, #{item.logTypeCode,jdbcType=VARCHAR}
    from dual
  </foreach> )
  </insert>
  <update id="batchUpdate" parameterType="java.util.List">
     update METER_BASE_OPERATION_LOG
     set
       ID=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.id,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
       </foreach>
       ,CREATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
       </foreach>
       ,UPDATE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
       </foreach>
       ,UPDATE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
       </foreach>
       ,DELETE_MAN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
       </foreach>
       ,DELETE_MAN_NAME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
       </foreach>
       ,DELETE_TIME=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
       </foreach>
       ,OPERATION_PAGE=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationPage,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_FUNCTION=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationFunction,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_ID=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationId,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_PREDICTION_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationPredictionNo,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_CARN_NO=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationCarnNo,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_BEFORE_FIX=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationBeforeFix,jdbcType=VARCHAR}
       </foreach>
       ,OPERATION_AFTER_FIX=
       <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
          when #{item.id,jdbcType=VARCHAR} then #{item.operationAfterFix,jdbcType=VARCHAR}
       </foreach>
     where ID in 
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
    #{item.id,jdbcType=VARCHAR}
     </foreach> 
  </update>
  <delete id="batchDelete" parameterType="java.util.List">
    delete from METER_BASE_OPERATION_LOG
    where ID in 
    <foreach collection="list" item="id" open="(" close=")" separator=",">
      #{id}
    </foreach>
  </delete>
  <!-- 友情提示！！！-->
  <!-- 请将自己写的代码放在此标签之下，方便以后粘贴复制。-->

  <select id="doQueryAndMultiple" parameterType="java.util.HashMap" resultMap="BaseResultMap">
    SELECT <include refid="columns"/> from METER_BASE_OPERATION_LOG
    where  1=1
    <if test="createTime != null">
      and CREATE_TIME between TO_DATE(#{startTime1},'yyyy-MM-dd HH24:mi:ss') and TO_DATE(#{endTime1},'yyyy-MM-dd HH24:mi:ss')
    </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="operationPage != null and operationPage != ''">
      and OPERATION_PAGE LIKE '%${operationPage}%'
    </if>
    <if test="operationFunction != null and operationFunction != ''">
      and OPERATION_FUNCTION LIKE '%${operationFunction}%'
    </if>
    <if test="operationId != null and operationId != ''">
      and OPERATION_ID LIKE '%${operationId}%'
    </if>
    <if test="operationPredictionNo != null and operationPredictionNo != ''">
      and OPERATION_PREDICTION_NO LIKE '%${operationPredictionNo}%'
    </if>
    <if test="operationCarnNo != null and operationCarnNo != ''">
      and OPERATION_CARN_NO LIKE '%${operationCarnNo}%'
    </if>
    <if test="operationBeforeFix != null and operationBeforeFix != ''">
      and OPERATION_BEFORE_FIX LIKE '%${operationBeforeFix}%'
    </if>
    <if test="operationAfterFix != null and operationAfterFix != ''">
      and OPERATION_AFTER_FIX LIKE '%${operationAfterFix}%'
    </if>
    <if test="logType != null and logType != ''">
      and LOG_TYPE = #{logType}
    </if>
    <if test="logTypeCode != null and logTypeCode != ''">
      and LOG_TYPE_CODE = #{logTypeCode}
    </if>
    order by CREATE_TIME desc
  </select>
  
</mapper>