|
@@ -0,0 +1,1141 @@
|
|
|
|
|
+<?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.meterreportwide.mapper.MeterReportWideMapper">
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterreportwide.model.MeterReportWide">
|
|
|
|
|
+ <id column="WIDE_ID" jdbcType="DECIMAL" property="wideId" />
|
|
|
|
|
+ <result column="SYNC_TIME" jdbcType="TIMESTAMP" property="syncTime" />
|
|
|
|
|
+ <result column="DATA_VERSION" jdbcType="VARCHAR" property="dataVersion" />
|
|
|
|
|
+ <result column="IS_LATEST" jdbcType="CHAR" property="isLatest" />
|
|
|
|
|
+ <result column="BUSINESS_FLAG" jdbcType="VARCHAR" property="businessFlag" />
|
|
|
|
|
+ <result column="EXT_FIELD1" jdbcType="VARCHAR" property="extField1" />
|
|
|
|
|
+ <result column="EXT_FIELD2" jdbcType="VARCHAR" property="extField2" />
|
|
|
|
|
+ <result column="EXT_FIELD3" jdbcType="DECIMAL" property="extField3" />
|
|
|
|
|
+ <result column="OPERATION_TIME_ORIGINAL" jdbcType="VARCHAR" property="operationTimeOriginal" />
|
|
|
|
|
+ <result column="NOTE_NO" jdbcType="VARCHAR" property="noteNo" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
|
|
|
|
|
+ <result column="OPERATION_CONTENT" jdbcType="VARCHAR" property="operationContent" />
|
|
|
|
|
+ <result column="OPERATION_TIME" jdbcType="TIMESTAMP" property="operationTime" />
|
|
|
|
|
+ <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
|
|
|
|
|
+ <result column="METER_MAN_NO" jdbcType="VARCHAR" property="meterManNo" />
|
|
|
|
|
+ <result column="METER_MAN_NAME" jdbcType="VARCHAR" property="meterManName" />
|
|
|
|
|
+ <result column="METER_NOTE_SOURCE" jdbcType="VARCHAR" property="meterNoteSource" />
|
|
|
|
|
+ <result column="NOTE_TYPE_NO" jdbcType="VARCHAR" property="noteTypeNo" />
|
|
|
|
|
+ <result column="NOTE_TYPE_NAME" jdbcType="VARCHAR" property="noteTypeName" />
|
|
|
|
|
+ <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
|
|
|
|
|
+ <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="MONITOR_NOTE" jdbcType="VARCHAR" property="monitorNote" />
|
|
|
|
|
+ <result column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
|
|
|
|
|
+ <result column="ACTUAL_CAR_NO" jdbcType="VARCHAR" property="actualCarNo" />
|
|
|
|
|
+ <result column="ACTUAL_CREATE_TIME" jdbcType="TIMESTAMP" property="actualCreateTime" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
|
|
|
|
|
+ <result column="RECEIVING_UNIT_NO" jdbcType="VARCHAR" property="receivingUnitNo" />
|
|
|
|
|
+ <result column="RECEIVING_UNIT_NAME" jdbcType="VARCHAR" property="receivingUnitName" />
|
|
|
|
|
+ <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
|
|
|
|
|
+ <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
|
|
|
|
|
+ <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
|
|
|
|
|
+ <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
|
|
|
|
|
+ <result column="TIME_DIFF_SECONDS" jdbcType="DECIMAL" property="timeDiffSeconds" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+ <sql id="columns">
|
|
|
|
|
+ WIDE_ID, SYNC_TIME, DATA_VERSION, IS_LATEST, BUSINESS_FLAG, EXT_FIELD1, EXT_FIELD2,
|
|
|
|
|
+ EXT_FIELD3, OPERATION_TIME_ORIGINAL, NOTE_NO, BASE_SPOT_NO, BASE_SPOT_NAME, OPERATION_CONTENT,
|
|
|
|
|
+ OPERATION_TIME, CAR_NO, METER_MAN_NO, METER_MAN_NAME, METER_NOTE_SOURCE, NOTE_TYPE_NO,
|
|
|
|
|
+ NOTE_TYPE_NAME, PREDICTION_NO, MEMO, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, MONITOR_NOTE, ACTUAL_FIRST_NO, ACTUAL_CAR_NO,
|
|
|
|
|
+ ACTUAL_CREATE_TIME, FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UNIT_NO,
|
|
|
|
|
+ RECEIVING_UNIT_NAME, MATTER_NO, MATTER_NAME, SPEC_NO, SPEC_NAME, TIME_DIFF_SECONDS
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
|
+ t.WIDE_ID, t.SYNC_TIME, t.DATA_VERSION, t.IS_LATEST, t.BUSINESS_FLAG, t.EXT_FIELD1,
|
|
|
|
|
+ t.EXT_FIELD2, t.EXT_FIELD3, t.OPERATION_TIME_ORIGINAL, t.NOTE_NO, t.BASE_SPOT_NO,
|
|
|
|
|
+ t.BASE_SPOT_NAME, t.OPERATION_CONTENT, t.OPERATION_TIME, t.CAR_NO, t.METER_MAN_NO,
|
|
|
|
|
+ t.METER_MAN_NAME, t.METER_NOTE_SOURCE, t.NOTE_TYPE_NO, t.NOTE_TYPE_NAME, t.PREDICTION_NO,
|
|
|
|
|
+ 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.MONITOR_NOTE, t.ACTUAL_FIRST_NO, t.ACTUAL_CAR_NO, t.ACTUAL_CREATE_TIME,
|
|
|
|
|
+ t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UNIT_NO, t.RECEIVING_UNIT_NAME,
|
|
|
|
|
+ t.MATTER_NO, t.MATTER_NAME, t.SPEC_NO, t.SPEC_NAME, t.TIME_DIFF_SECONDS
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select">
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM METER_REPORT_WIDE
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM METER_REPORT_WIDE t
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="where">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="wideId != null">
|
|
|
|
|
+ and WIDE_ID = #{wideId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ and TO_CHAR(SYNC_TIME,'yyyy-MM-dd') = #{syncTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null and dataVersion != ''">
|
|
|
|
|
+ and DATA_VERSION = #{dataVersion}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ and IS_LATEST = #{isLatest}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null and businessFlag != ''">
|
|
|
|
|
+ and BUSINESS_FLAG = #{businessFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null and extField1 != ''">
|
|
|
|
|
+ and EXT_FIELD1 = #{extField1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null and extField2 != ''">
|
|
|
|
|
+ and EXT_FIELD2 = #{extField2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ and EXT_FIELD3 = #{extField3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null and operationTimeOriginal != ''">
|
|
|
|
|
+ and OPERATION_TIME_ORIGINAL = #{operationTimeOriginal}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null and noteNo != ''">
|
|
|
|
|
+ and NOTE_NO = #{noteNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO = #{baseSpotNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME = #{baseSpotName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null and operationContent != ''">
|
|
|
|
|
+ and OPERATION_CONTENT = #{operationContent}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ and TO_CHAR(OPERATION_TIME,'yyyy-MM-dd') = #{operationTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
|
|
+ and CAR_NO = #{carNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null and meterManNo != ''">
|
|
|
|
|
+ and METER_MAN_NO = #{meterManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null and meterManName != ''">
|
|
|
|
|
+ and METER_MAN_NAME = #{meterManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null and meterNoteSource != ''">
|
|
|
|
|
+ and METER_NOTE_SOURCE = #{meterNoteSource}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null and noteTypeNo != ''">
|
|
|
|
|
+ and NOTE_TYPE_NO = #{noteTypeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null and noteTypeName != ''">
|
|
|
|
|
+ and NOTE_TYPE_NAME = #{noteTypeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null and predictionNo != ''">
|
|
|
|
|
+ and PREDICTION_NO = #{predictionNo}
|
|
|
|
|
+ </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="monitorNote != null and monitorNote != ''">
|
|
|
|
|
+ and MONITOR_NOTE = #{monitorNote}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
|
|
+ and ACTUAL_FIRST_NO = #{actualFirstNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null and actualCarNo != ''">
|
|
|
|
|
+ and ACTUAL_CAR_NO = #{actualCarNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ and TO_CHAR(ACTUAL_CREATE_TIME,'yyyy-MM-dd') = #{actualCreateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO = #{forwardingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME = #{forwardingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null and receivingUnitNo != ''">
|
|
|
|
|
+ and RECEIVING_UNIT_NO = #{receivingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null and receivingUnitName != ''">
|
|
|
|
|
+ and RECEIVING_UNIT_NAME = #{receivingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO = #{matterNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME = #{matterName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null and specNo != ''">
|
|
|
|
|
+ and SPEC_NO = #{specNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null and specName != ''">
|
|
|
|
|
+ and SPEC_NAME = #{specName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ and TIME_DIFF_SECONDS = #{timeDiffSeconds}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="wideId != null">
|
|
|
|
|
+ and WIDE_ID = #{wideId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ and TO_CHAR(SYNC_TIME,'yyyy-MM-dd') = #{syncTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null and dataVersion != ''">
|
|
|
|
|
+ and DATA_VERSION LIKE '%${dataVersion}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ and IS_LATEST = #{isLatest}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null and businessFlag != ''">
|
|
|
|
|
+ and BUSINESS_FLAG LIKE '%${businessFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null and extField1 != ''">
|
|
|
|
|
+ and EXT_FIELD1 LIKE '%${extField1}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null and extField2 != ''">
|
|
|
|
|
+ and EXT_FIELD2 LIKE '%${extField2}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ and EXT_FIELD3 = #{extField3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null and operationTimeOriginal != ''">
|
|
|
|
|
+ and OPERATION_TIME_ORIGINAL LIKE '%${operationTimeOriginal}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null and noteNo != ''">
|
|
|
|
|
+ and NOTE_NO LIKE '%${noteNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null and operationContent != ''">
|
|
|
|
|
+ and OPERATION_CONTENT LIKE '%${operationContent}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ and TO_CHAR(OPERATION_TIME,'yyyy-MM-dd') = #{operationTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
|
|
+ and CAR_NO LIKE '%${carNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null and meterManNo != ''">
|
|
|
|
|
+ and METER_MAN_NO LIKE '%${meterManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null and meterManName != ''">
|
|
|
|
|
+ and METER_MAN_NAME LIKE '%${meterManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null and meterNoteSource != ''">
|
|
|
|
|
+ and METER_NOTE_SOURCE LIKE '%${meterNoteSource}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null and noteTypeNo != ''">
|
|
|
|
|
+ and NOTE_TYPE_NO LIKE '%${noteTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null and noteTypeName != ''">
|
|
|
|
|
+ and NOTE_TYPE_NAME LIKE '%${noteTypeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null and predictionNo != ''">
|
|
|
|
|
+ and PREDICTION_NO LIKE '%${predictionNo}%'
|
|
|
|
|
+ </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="monitorNote != null and monitorNote != ''">
|
|
|
|
|
+ and MONITOR_NOTE LIKE '%${monitorNote}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
|
|
+ and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null and actualCarNo != ''">
|
|
|
|
|
+ and ACTUAL_CAR_NO LIKE '%${actualCarNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ and TO_CHAR(ACTUAL_CREATE_TIME,'yyyy-MM-dd') = #{actualCreateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null and receivingUnitNo != ''">
|
|
|
|
|
+ and RECEIVING_UNIT_NO LIKE '%${receivingUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null and receivingUnitName != ''">
|
|
|
|
|
+ and RECEIVING_UNIT_NAME LIKE '%${receivingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO LIKE '%${matterNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME LIKE '%${matterName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null and specNo != ''">
|
|
|
|
|
+ and SPEC_NO LIKE '%${specNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null and specName != ''">
|
|
|
|
|
+ and SPEC_NAME LIKE '%${specName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ and TIME_DIFF_SECONDS = #{timeDiffSeconds}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
|
+ delete from METER_REPORT_WIDE
|
|
|
|
|
+ where WIDE_ID = #{wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
|
+ delete from METER_REPORT_WIDE
|
|
|
|
|
+ where 1!=1
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ or TO_CHAR(SYNC_TIME,'yyyy-MM-dd') = '#{syncTime}'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null and dataVersion != ''">
|
|
|
|
|
+ or DATA_VERSION = #{dataVersion}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ or IS_LATEST = #{isLatest}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null and businessFlag != ''">
|
|
|
|
|
+ or BUSINESS_FLAG = #{businessFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null and extField1 != ''">
|
|
|
|
|
+ or EXT_FIELD1 = #{extField1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null and extField2 != ''">
|
|
|
|
|
+ or EXT_FIELD2 = #{extField2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ or EXT_FIELD3 = #{extField3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null and operationTimeOriginal != ''">
|
|
|
|
|
+ or OPERATION_TIME_ORIGINAL = #{operationTimeOriginal}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null and noteNo != ''">
|
|
|
|
|
+ or NOTE_NO = #{noteNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ or BASE_SPOT_NO = #{baseSpotNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME = #{baseSpotName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null and operationContent != ''">
|
|
|
|
|
+ or OPERATION_CONTENT = #{operationContent}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ or TO_CHAR(OPERATION_TIME,'yyyy-MM-dd') = '#{operationTime}'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
|
|
+ or CAR_NO = #{carNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null and meterManNo != ''">
|
|
|
|
|
+ or METER_MAN_NO = #{meterManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null and meterManName != ''">
|
|
|
|
|
+ or METER_MAN_NAME = #{meterManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null and meterNoteSource != ''">
|
|
|
|
|
+ or METER_NOTE_SOURCE = #{meterNoteSource}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null and noteTypeNo != ''">
|
|
|
|
|
+ or NOTE_TYPE_NO = #{noteTypeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null and noteTypeName != ''">
|
|
|
|
|
+ or NOTE_TYPE_NAME = #{noteTypeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null and predictionNo != ''">
|
|
|
|
|
+ or PREDICTION_NO = #{predictionNo}
|
|
|
|
|
+ </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="monitorNote != null and monitorNote != ''">
|
|
|
|
|
+ or MONITOR_NOTE = #{monitorNote}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
|
|
+ or ACTUAL_FIRST_NO = #{actualFirstNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null and actualCarNo != ''">
|
|
|
|
|
+ or ACTUAL_CAR_NO = #{actualCarNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ or TO_CHAR(ACTUAL_CREATE_TIME,'yyyy-MM-dd') = '#{actualCreateTime}'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ or FORWARDING_UNIT_NO = #{forwardingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ or FORWARDING_UNIT_NAME = #{forwardingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null and receivingUnitNo != ''">
|
|
|
|
|
+ or RECEIVING_UNIT_NO = #{receivingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null and receivingUnitName != ''">
|
|
|
|
|
+ or RECEIVING_UNIT_NAME = #{receivingUnitName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ or MATTER_NO = #{matterNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ or MATTER_NAME = #{matterName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null and specNo != ''">
|
|
|
|
|
+ or SPEC_NO = #{specNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null and specName != ''">
|
|
|
|
|
+ or SPEC_NAME = #{specName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ or TIME_DIFF_SECONDS = #{timeDiffSeconds}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.baseinfo.meterreportwide.model.MeterReportWide">
|
|
|
|
|
+ insert into METER_REPORT_WIDE (WIDE_ID, SYNC_TIME, DATA_VERSION,
|
|
|
|
|
+ IS_LATEST, BUSINESS_FLAG, EXT_FIELD1,
|
|
|
|
|
+ EXT_FIELD2, EXT_FIELD3, OPERATION_TIME_ORIGINAL,
|
|
|
|
|
+ NOTE_NO, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
|
|
|
+ OPERATION_CONTENT, OPERATION_TIME, CAR_NO,
|
|
|
|
|
+ METER_MAN_NO, METER_MAN_NAME, METER_NOTE_SOURCE,
|
|
|
|
|
+ NOTE_TYPE_NO, NOTE_TYPE_NAME, PREDICTION_NO,
|
|
|
|
|
+ MEMO, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
|
|
+ CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
|
|
|
|
|
+ UPDATE_TIME, MONITOR_NOTE, ACTUAL_FIRST_NO,
|
|
|
|
|
+ ACTUAL_CAR_NO, ACTUAL_CREATE_TIME, FORWARDING_UNIT_NO,
|
|
|
|
|
+ FORWARDING_UNIT_NAME, RECEIVING_UNIT_NO, RECEIVING_UNIT_NAME,
|
|
|
|
|
+ MATTER_NO, MATTER_NAME, SPEC_NO,
|
|
|
|
|
+ SPEC_NAME, TIME_DIFF_SECONDS)
|
|
|
|
|
+ values (#{wideId,jdbcType=DECIMAL}, #{syncTime,jdbcType=TIMESTAMP}, #{dataVersion,jdbcType=VARCHAR},
|
|
|
|
|
+ #{isLatest,jdbcType=CHAR}, #{businessFlag,jdbcType=VARCHAR}, #{extField1,jdbcType=VARCHAR},
|
|
|
|
|
+ #{extField2,jdbcType=VARCHAR}, #{extField3,jdbcType=DECIMAL}, #{operationTimeOriginal,jdbcType=VARCHAR},
|
|
|
|
|
+ #{noteNo,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{operationContent,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}, #{carNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{meterManNo,jdbcType=VARCHAR}, #{meterManName,jdbcType=VARCHAR}, #{meterNoteSource,jdbcType=VARCHAR},
|
|
|
|
|
+ #{noteTypeNo,jdbcType=VARCHAR}, #{noteTypeName,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{memo,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{monitorNote,jdbcType=VARCHAR}, #{actualFirstNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{actualCarNo,jdbcType=VARCHAR}, #{actualCreateTime,jdbcType=TIMESTAMP}, #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUnitNo,jdbcType=VARCHAR}, #{receivingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{specName,jdbcType=VARCHAR}, #{timeDiffSeconds,jdbcType=DECIMAL})
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterreportwide.model.MeterReportWide">
|
|
|
|
|
+ insert into METER_REPORT_WIDE
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="wideId != null">
|
|
|
|
|
+ WIDE_ID,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ SYNC_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null">
|
|
|
|
|
+ DATA_VERSION,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ IS_LATEST,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null">
|
|
|
|
|
+ BUSINESS_FLAG,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null">
|
|
|
|
|
+ EXT_FIELD1,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null">
|
|
|
|
|
+ EXT_FIELD2,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ EXT_FIELD3,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null">
|
|
|
|
|
+ OPERATION_TIME_ORIGINAL,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null">
|
|
|
|
|
+ NOTE_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ BASE_SPOT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ BASE_SPOT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null">
|
|
|
|
|
+ OPERATION_CONTENT,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ OPERATION_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null">
|
|
|
|
|
+ CAR_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null">
|
|
|
|
|
+ METER_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null">
|
|
|
|
|
+ METER_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null">
|
|
|
|
|
+ METER_NOTE_SOURCE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null">
|
|
|
|
|
+ NOTE_TYPE_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null">
|
|
|
|
|
+ NOTE_TYPE_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null">
|
|
|
|
|
+ PREDICTION_NO,
|
|
|
|
|
+ </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="monitorNote != null">
|
|
|
|
|
+ MONITOR_NOTE,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null">
|
|
|
|
|
+ ACTUAL_FIRST_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null">
|
|
|
|
|
+ ACTUAL_CAR_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ ACTUAL_CREATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ FORWARDING_UNIT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ FORWARDING_UNIT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null">
|
|
|
|
|
+ RECEIVING_UNIT_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null">
|
|
|
|
|
+ RECEIVING_UNIT_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ MATTER_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ MATTER_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null">
|
|
|
|
|
+ SPEC_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null">
|
|
|
|
|
+ SPEC_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ TIME_DIFF_SECONDS,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="wideId != null">
|
|
|
|
|
+ #{wideId,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ #{syncTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null">
|
|
|
|
|
+ #{dataVersion,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ #{isLatest,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null">
|
|
|
|
|
+ #{businessFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null">
|
|
|
|
|
+ #{extField1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null">
|
|
|
|
|
+ #{extField2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ #{extField3,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null">
|
|
|
|
|
+ #{operationTimeOriginal,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null">
|
|
|
|
|
+ #{noteNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null">
|
|
|
|
|
+ #{operationContent,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ #{operationTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null">
|
|
|
|
|
+ #{carNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null">
|
|
|
|
|
+ #{meterManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null">
|
|
|
|
|
+ #{meterManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null">
|
|
|
|
|
+ #{meterNoteSource,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null">
|
|
|
|
|
+ #{noteTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null">
|
|
|
|
|
+ #{noteTypeName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null">
|
|
|
|
|
+ #{predictionNo,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="monitorNote != null">
|
|
|
|
|
+ #{monitorNote,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null">
|
|
|
|
|
+ #{actualFirstNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null">
|
|
|
|
|
+ #{actualCarNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ #{actualCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null">
|
|
|
|
|
+ #{receivingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null">
|
|
|
|
|
+ #{receivingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null">
|
|
|
|
|
+ #{specNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null">
|
|
|
|
|
+ #{specName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ #{timeDiffSeconds,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterreportwide.model.MeterReportWide">
|
|
|
|
|
+ update METER_REPORT_WIDE
|
|
|
|
|
+ set SYNC_TIME = #{syncTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ DATA_VERSION = #{dataVersion,jdbcType=VARCHAR},
|
|
|
|
|
+ IS_LATEST = #{isLatest,jdbcType=CHAR},
|
|
|
|
|
+ BUSINESS_FLAG = #{businessFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ EXT_FIELD1 = #{extField1,jdbcType=VARCHAR},
|
|
|
|
|
+ EXT_FIELD2 = #{extField2,jdbcType=VARCHAR},
|
|
|
|
|
+ EXT_FIELD3 = #{extField3,jdbcType=DECIMAL},
|
|
|
|
|
+ OPERATION_TIME_ORIGINAL = #{operationTimeOriginal,jdbcType=VARCHAR},
|
|
|
|
|
+ NOTE_NO = #{noteNo,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR},
|
|
|
|
|
+ OPERATION_TIME = #{operationTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ CAR_NO = #{carNo,jdbcType=VARCHAR},
|
|
|
|
|
+ METER_MAN_NO = #{meterManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ METER_MAN_NAME = #{meterManName,jdbcType=VARCHAR},
|
|
|
|
|
+ METER_NOTE_SOURCE = #{meterNoteSource,jdbcType=VARCHAR},
|
|
|
|
|
+ NOTE_TYPE_NO = #{noteTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ NOTE_TYPE_NAME = #{noteTypeName,jdbcType=VARCHAR},
|
|
|
|
|
+ PREDICTION_NO = #{predictionNo,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},
|
|
|
|
|
+ MONITOR_NOTE = #{monitorNote,jdbcType=VARCHAR},
|
|
|
|
|
+ ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR},
|
|
|
|
|
+ ACTUAL_CAR_NO = #{actualCarNo,jdbcType=VARCHAR},
|
|
|
|
|
+ ACTUAL_CREATE_TIME = #{actualCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ RECEIVING_UNIT_NO = #{receivingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ RECEIVING_UNIT_NAME = #{receivingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ MATTER_NO = #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ MATTER_NAME = #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ SPEC_NO = #{specNo,jdbcType=VARCHAR},
|
|
|
|
|
+ SPEC_NAME = #{specName,jdbcType=VARCHAR},
|
|
|
|
|
+ TIME_DIFF_SECONDS = #{timeDiffSeconds,jdbcType=DECIMAL}
|
|
|
|
|
+ where WIDE_ID = #{wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterreportwide.model.MeterReportWide">
|
|
|
|
|
+ update METER_REPORT_WIDE
|
|
|
|
|
+ <set>
|
|
|
|
|
+ <if test="syncTime != null">
|
|
|
|
|
+ SYNC_TIME = #{syncTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataVersion != null">
|
|
|
|
|
+ DATA_VERSION = #{dataVersion,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isLatest != null">
|
|
|
|
|
+ IS_LATEST = #{isLatest,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessFlag != null">
|
|
|
|
|
+ BUSINESS_FLAG = #{businessFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField1 != null">
|
|
|
|
|
+ EXT_FIELD1 = #{extField1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField2 != null">
|
|
|
|
|
+ EXT_FIELD2 = #{extField2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="extField3 != null">
|
|
|
|
|
+ EXT_FIELD3 = #{extField3,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTimeOriginal != null">
|
|
|
|
|
+ OPERATION_TIME_ORIGINAL = #{operationTimeOriginal,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteNo != null">
|
|
|
|
|
+ NOTE_NO = #{noteNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null">
|
|
|
|
|
+ BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null">
|
|
|
|
|
+ BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationContent != null">
|
|
|
|
|
+ OPERATION_CONTENT = #{operationContent,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="operationTime != null">
|
|
|
|
|
+ OPERATION_TIME = #{operationTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null">
|
|
|
|
|
+ CAR_NO = #{carNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManNo != null">
|
|
|
|
|
+ METER_MAN_NO = #{meterManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterManName != null">
|
|
|
|
|
+ METER_MAN_NAME = #{meterManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterNoteSource != null">
|
|
|
|
|
+ METER_NOTE_SOURCE = #{meterNoteSource,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeNo != null">
|
|
|
|
|
+ NOTE_TYPE_NO = #{noteTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noteTypeName != null">
|
|
|
|
|
+ NOTE_TYPE_NAME = #{noteTypeName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null">
|
|
|
|
|
+ PREDICTION_NO = #{predictionNo,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="monitorNote != null">
|
|
|
|
|
+ MONITOR_NOTE = #{monitorNote,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirstNo != null">
|
|
|
|
|
+ ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCarNo != null">
|
|
|
|
|
+ ACTUAL_CAR_NO = #{actualCarNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualCreateTime != null">
|
|
|
|
|
+ ACTUAL_CREATE_TIME = #{actualCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null">
|
|
|
|
|
+ FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null">
|
|
|
|
|
+ FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitNo != null">
|
|
|
|
|
+ RECEIVING_UNIT_NO = #{receivingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUnitName != null">
|
|
|
|
|
+ RECEIVING_UNIT_NAME = #{receivingUnitName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null">
|
|
|
|
|
+ MATTER_NO = #{matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null">
|
|
|
|
|
+ MATTER_NAME = #{matterName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null">
|
|
|
|
|
+ SPEC_NO = #{specNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null">
|
|
|
|
|
+ SPEC_NAME = #{specName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="timeDiffSeconds != null">
|
|
|
|
|
+ TIME_DIFF_SECONDS = #{timeDiffSeconds,jdbcType=DECIMAL},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </set>
|
|
|
|
|
+ where WIDE_ID = #{wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ where WIDE_ID = #{wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </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_REPORT_WIDE
|
|
|
|
|
+ (WIDE_ID,
|
|
|
|
|
+ SYNC_TIME, DATA_VERSION, IS_LATEST,
|
|
|
|
|
+ BUSINESS_FLAG, EXT_FIELD1, EXT_FIELD2,
|
|
|
|
|
+ EXT_FIELD3, OPERATION_TIME_ORIGINAL,
|
|
|
|
|
+ NOTE_NO, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
|
|
|
+ OPERATION_CONTENT, OPERATION_TIME,
|
|
|
|
|
+ CAR_NO, METER_MAN_NO, METER_MAN_NAME,
|
|
|
|
|
+ METER_NOTE_SOURCE, NOTE_TYPE_NO,
|
|
|
|
|
+ NOTE_TYPE_NAME, PREDICTION_NO, MEMO,
|
|
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
+ MONITOR_NOTE, ACTUAL_FIRST_NO, ACTUAL_CAR_NO,
|
|
|
|
|
+ ACTUAL_CREATE_TIME, FORWARDING_UNIT_NO,
|
|
|
|
|
+ FORWARDING_UNIT_NAME, RECEIVING_UNIT_NO,
|
|
|
|
|
+ RECEIVING_UNIT_NAME, MATTER_NO,
|
|
|
|
|
+ MATTER_NAME, SPEC_NO, SPEC_NAME,
|
|
|
|
|
+ TIME_DIFF_SECONDS)
|
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
|
+ select
|
|
|
|
|
+ #{item.wideId,jdbcType=DECIMAL},
|
|
|
|
|
+ #{item.syncTime,jdbcType=TIMESTAMP}, #{item.dataVersion,jdbcType=VARCHAR}, #{item.isLatest,jdbcType=CHAR},
|
|
|
|
|
+ #{item.businessFlag,jdbcType=VARCHAR}, #{item.extField1,jdbcType=VARCHAR}, #{item.extField2,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.extField3,jdbcType=DECIMAL}, #{item.operationTimeOriginal,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.noteNo,jdbcType=VARCHAR}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.operationContent,jdbcType=VARCHAR}, #{item.operationTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.carNo,jdbcType=VARCHAR}, #{item.meterManNo,jdbcType=VARCHAR}, #{item.meterManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.meterNoteSource,jdbcType=VARCHAR}, #{item.noteTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.noteTypeName,jdbcType=VARCHAR}, #{item.predictionNo,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.monitorNote,jdbcType=VARCHAR}, #{item.actualFirstNo,jdbcType=VARCHAR}, #{item.actualCarNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.actualCreateTime,jdbcType=TIMESTAMP}, #{item.forwardingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.forwardingUnitName,jdbcType=VARCHAR}, #{item.receivingUnitNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.receivingUnitName,jdbcType=VARCHAR}, #{item.matterNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.matterName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, #{item.specName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.timeDiffSeconds,jdbcType=DECIMAL} from dual
|
|
|
|
|
+ </foreach> )
|
|
|
|
|
+ </insert>
|
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
|
+ update METER_REPORT_WIDE
|
|
|
|
|
+ set
|
|
|
|
|
+ WIDE_ID=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SYNC_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.syncTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DATA_VERSION=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.dataVersion,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,IS_LATEST=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.isLatest,jdbcType=CHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BUSINESS_FLAG=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.businessFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,EXT_FIELD1=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.extField1,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,EXT_FIELD2=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.extField2,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,EXT_FIELD3=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.extField3,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,OPERATION_TIME_ORIGINAL=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.operationTimeOriginal,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NOTE_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.noteNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.baseSpotNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.baseSpotName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,OPERATION_CONTENT=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.operationContent,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,OPERATION_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.operationTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CAR_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.carNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,METER_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.meterManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,METER_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.meterManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,METER_NOTE_SOURCE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.meterNoteSource,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NOTE_TYPE_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.noteTypeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,NOTE_TYPE_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.noteTypeName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,PREDICTION_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.predictionNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MEMO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.memo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CREATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MONITOR_NOTE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.monitorNote,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,ACTUAL_FIRST_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.actualFirstNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,ACTUAL_CAR_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.actualCarNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,ACTUAL_CREATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.actualCreateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,FORWARDING_UNIT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,FORWARDING_UNIT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.forwardingUnitName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECEIVING_UNIT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.receivingUnitNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,RECEIVING_UNIT_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.receivingUnitName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATTER_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.matterNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,MATTER_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.matterName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SPEC_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.specNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,SPEC_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.specName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,TIME_DIFF_SECONDS=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WIDE_ID" close="end">
|
|
|
|
|
+ when #{item.wideId,jdbcType=DECIMAL} then #{item.timeDiffSeconds,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ where WIDE_ID in
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
+ #{item.wideId,jdbcType=DECIMAL}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </update>
|
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
|
+ delete from METER_REPORT_WIDE
|
|
|
|
|
+ where WIDE_ID in
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|
+
|
|
|
|
|
+</mapper>
|