|
@@ -8,14 +8,6 @@
|
|
|
<result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
|
|
<result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
|
|
|
<result column="SHIFT_MAN_NO" jdbcType="VARCHAR" property="shiftManNo" />
|
|
<result column="SHIFT_MAN_NO" jdbcType="VARCHAR" property="shiftManNo" />
|
|
|
<result column="SHIFT_MAN_NAME" jdbcType="VARCHAR" property="shiftManName" />
|
|
<result column="SHIFT_MAN_NAME" jdbcType="VARCHAR" property="shiftManName" />
|
|
|
- <result column="WORK_START_TIME" jdbcType="TIMESTAMP" property="workStartTime" />
|
|
|
|
|
- <result column="WORK_END_TIME" jdbcType="TIMESTAMP" property="workEndTime" />
|
|
|
|
|
- <result column="WORK_MATTERS" jdbcType="VARCHAR" property="workMatters" />
|
|
|
|
|
- <result column="WORK_PROCESSING_RESULT" jdbcType="VARCHAR" property="workProcessingResult" />
|
|
|
|
|
- <result column="WORK_REPORTER_NO" jdbcType="VARCHAR" property="workReporterNo" />
|
|
|
|
|
- <result column="WORK_REPORTER_NAME" jdbcType="VARCHAR" property="workReporterName" />
|
|
|
|
|
- <result column="WORK_HANDLER_NO" jdbcType="VARCHAR" property="workHandlerNo" />
|
|
|
|
|
- <result column="WORK_HANDLER_NAME" jdbcType="VARCHAR" property="workHandlerName" />
|
|
|
|
|
<result column="WORK_RECORDER_NO" jdbcType="VARCHAR" property="workRecorderNo" />
|
|
<result column="WORK_RECORDER_NO" jdbcType="VARCHAR" property="workRecorderNo" />
|
|
|
<result column="WORK_RECORDER_NAME" jdbcType="VARCHAR" property="workRecorderName" />
|
|
<result column="WORK_RECORDER_NAME" jdbcType="VARCHAR" property="workRecorderName" />
|
|
|
<result column="SHIFT_WORK_LOG" jdbcType="VARCHAR" property="shiftWorkLog" />
|
|
<result column="SHIFT_WORK_LOG" jdbcType="VARCHAR" property="shiftWorkLog" />
|
|
@@ -25,15 +17,13 @@
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
SHIFT_REPORT_ID, CREATE_TIME, METER_CLASS, METER_GROUP, SHIFT_MAN_NO, SHIFT_MAN_NAME,
|
|
SHIFT_REPORT_ID, CREATE_TIME, METER_CLASS, METER_GROUP, SHIFT_MAN_NO, SHIFT_MAN_NAME,
|
|
|
- WORK_START_TIME, WORK_END_TIME, WORK_MATTERS, WORK_PROCESSING_RESULT, WORK_REPORTER_NO,
|
|
|
|
|
- WORK_REPORTER_NAME, WORK_HANDLER_NO, WORK_HANDLER_NAME, WORK_RECORDER_NO, WORK_RECORDER_NAME,
|
|
|
|
|
- SHIFT_WORK_LOG, COMPARE_RECORDS, DEVICE_PROBLEM, WORK_LOG
|
|
|
|
|
|
|
+ WORK_RECORDER_NO, WORK_RECORDER_NAME, SHIFT_WORK_LOG, COMPARE_RECORDS, DEVICE_PROBLEM,
|
|
|
|
|
+ WORK_LOG
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.SHIFT_REPORT_ID, t.CREATE_TIME, t.METER_CLASS, t.METER_GROUP, t.SHIFT_MAN_NO, t.SHIFT_MAN_NAME,
|
|
t.SHIFT_REPORT_ID, t.CREATE_TIME, t.METER_CLASS, t.METER_GROUP, t.SHIFT_MAN_NO, t.SHIFT_MAN_NAME,
|
|
|
- t.WORK_START_TIME, t.WORK_END_TIME, t.WORK_MATTERS, t.WORK_PROCESSING_RESULT, t.WORK_REPORTER_NO,
|
|
|
|
|
- t.WORK_REPORTER_NAME, t.WORK_HANDLER_NO, t.WORK_HANDLER_NAME, t.WORK_RECORDER_NO,
|
|
|
|
|
- t.WORK_RECORDER_NAME, t.SHIFT_WORK_LOG, t.COMPARE_RECORDS, t.DEVICE_PROBLEM, t.WORK_LOG
|
|
|
|
|
|
|
+ t.WORK_RECORDER_NO, t.WORK_RECORDER_NAME, t.SHIFT_WORK_LOG, t.COMPARE_RECORDS, t.DEVICE_PROBLEM,
|
|
|
|
|
+ t.WORK_LOG
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_WORK_SHIFT_REPORT
|
|
SELECT <include refid="columns"/> FROM METER_WORK_SHIFT_REPORT
|
|
@@ -61,30 +51,6 @@
|
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
|
and SHIFT_MAN_NAME = #{shiftManName}
|
|
and SHIFT_MAN_NAME = #{shiftManName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- and TO_CHAR(WORK_START_TIME,'yyyy-MM-dd') = #{workStartTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- and TO_CHAR(WORK_END_TIME,'yyyy-MM-dd') = #{workEndTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null and workMatters != ''">
|
|
|
|
|
- and WORK_MATTERS = #{workMatters}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null and workProcessingResult != ''">
|
|
|
|
|
- and WORK_PROCESSING_RESULT = #{workProcessingResult}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null and workReporterNo != ''">
|
|
|
|
|
- and WORK_REPORTER_NO = #{workReporterNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null and workReporterName != ''">
|
|
|
|
|
- and WORK_REPORTER_NAME = #{workReporterName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null and workHandlerNo != ''">
|
|
|
|
|
- and WORK_HANDLER_NO = #{workHandlerNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null and workHandlerName != ''">
|
|
|
|
|
- and WORK_HANDLER_NAME = #{workHandlerName}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
|
and WORK_RECORDER_NO = #{workRecorderNo}
|
|
and WORK_RECORDER_NO = #{workRecorderNo}
|
|
|
</if>
|
|
</if>
|
|
@@ -125,30 +91,6 @@
|
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
|
and SHIFT_MAN_NAME LIKE '%${shiftManName}%'
|
|
and SHIFT_MAN_NAME LIKE '%${shiftManName}%'
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- and TO_CHAR(WORK_START_TIME,'yyyy-MM-dd') = #{workStartTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- and TO_CHAR(WORK_END_TIME,'yyyy-MM-dd') = #{workEndTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null and workMatters != ''">
|
|
|
|
|
- and WORK_MATTERS LIKE '%${workMatters}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null and workProcessingResult != ''">
|
|
|
|
|
- and WORK_PROCESSING_RESULT LIKE '%${workProcessingResult}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null and workReporterNo != ''">
|
|
|
|
|
- and WORK_REPORTER_NO LIKE '%${workReporterNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null and workReporterName != ''">
|
|
|
|
|
- and WORK_REPORTER_NAME LIKE '%${workReporterName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null and workHandlerNo != ''">
|
|
|
|
|
- and WORK_HANDLER_NO LIKE '%${workHandlerNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null and workHandlerName != ''">
|
|
|
|
|
- and WORK_HANDLER_NAME LIKE '%${workHandlerName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
|
and WORK_RECORDER_NO LIKE '%${workRecorderNo}%'
|
|
and WORK_RECORDER_NO LIKE '%${workRecorderNo}%'
|
|
|
</if>
|
|
</if>
|
|
@@ -191,30 +133,6 @@
|
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
<if test="shiftManName != null and shiftManName != ''">
|
|
|
or SHIFT_MAN_NAME = #{shiftManName}
|
|
or SHIFT_MAN_NAME = #{shiftManName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- or TO_CHAR(WORK_START_TIME,'yyyy-MM-dd') = '#{workStartTime}'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- or TO_CHAR(WORK_END_TIME,'yyyy-MM-dd') = '#{workEndTime}'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null and workMatters != ''">
|
|
|
|
|
- or WORK_MATTERS = #{workMatters}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null and workProcessingResult != ''">
|
|
|
|
|
- or WORK_PROCESSING_RESULT = #{workProcessingResult}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null and workReporterNo != ''">
|
|
|
|
|
- or WORK_REPORTER_NO = #{workReporterNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null and workReporterName != ''">
|
|
|
|
|
- or WORK_REPORTER_NAME = #{workReporterName}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null and workHandlerNo != ''">
|
|
|
|
|
- or WORK_HANDLER_NO = #{workHandlerNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null and workHandlerName != ''">
|
|
|
|
|
- or WORK_HANDLER_NAME = #{workHandlerName}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
<if test="workRecorderNo != null and workRecorderNo != ''">
|
|
|
or WORK_RECORDER_NO = #{workRecorderNo}
|
|
or WORK_RECORDER_NO = #{workRecorderNo}
|
|
|
</if>
|
|
</if>
|
|
@@ -237,18 +155,14 @@
|
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkshiftreport.model.MeterWorkShiftReport">
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkshiftreport.model.MeterWorkShiftReport">
|
|
|
insert into METER_WORK_SHIFT_REPORT (SHIFT_REPORT_ID, CREATE_TIME, METER_CLASS,
|
|
insert into METER_WORK_SHIFT_REPORT (SHIFT_REPORT_ID, CREATE_TIME, METER_CLASS,
|
|
|
METER_GROUP, SHIFT_MAN_NO, SHIFT_MAN_NAME,
|
|
METER_GROUP, SHIFT_MAN_NO, SHIFT_MAN_NAME,
|
|
|
- WORK_START_TIME, WORK_END_TIME, WORK_MATTERS,
|
|
|
|
|
- WORK_PROCESSING_RESULT, WORK_REPORTER_NO, WORK_REPORTER_NAME,
|
|
|
|
|
- WORK_HANDLER_NO, WORK_HANDLER_NAME, WORK_RECORDER_NO,
|
|
|
|
|
- WORK_RECORDER_NAME, SHIFT_WORK_LOG, COMPARE_RECORDS,
|
|
|
|
|
- DEVICE_PROBLEM, WORK_LOG)
|
|
|
|
|
|
|
+ WORK_RECORDER_NO, WORK_RECORDER_NAME, SHIFT_WORK_LOG,
|
|
|
|
|
+ COMPARE_RECORDS, DEVICE_PROBLEM, WORK_LOG
|
|
|
|
|
+ )
|
|
|
values (#{shiftReportId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{meterClass,jdbcType=VARCHAR},
|
|
values (#{shiftReportId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{meterClass,jdbcType=VARCHAR},
|
|
|
#{meterGroup,jdbcType=VARCHAR}, #{shiftManNo,jdbcType=VARCHAR}, #{shiftManName,jdbcType=VARCHAR},
|
|
#{meterGroup,jdbcType=VARCHAR}, #{shiftManNo,jdbcType=VARCHAR}, #{shiftManName,jdbcType=VARCHAR},
|
|
|
- #{workStartTime,jdbcType=TIMESTAMP}, #{workEndTime,jdbcType=TIMESTAMP}, #{workMatters,jdbcType=VARCHAR},
|
|
|
|
|
- #{workProcessingResult,jdbcType=VARCHAR}, #{workReporterNo,jdbcType=VARCHAR}, #{workReporterName,jdbcType=VARCHAR},
|
|
|
|
|
- #{workHandlerNo,jdbcType=VARCHAR}, #{workHandlerName,jdbcType=VARCHAR}, #{workRecorderNo,jdbcType=VARCHAR},
|
|
|
|
|
- #{workRecorderName,jdbcType=VARCHAR}, #{shiftWorkLog,jdbcType=VARCHAR}, #{compareRecords,jdbcType=VARCHAR},
|
|
|
|
|
- #{deviceProblem,jdbcType=VARCHAR}, #{workLog,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{workRecorderNo,jdbcType=VARCHAR}, #{workRecorderName,jdbcType=VARCHAR}, #{shiftWorkLog,jdbcType=VARCHAR},
|
|
|
|
|
+ #{compareRecords,jdbcType=VARCHAR}, #{deviceProblem,jdbcType=VARCHAR}, #{workLog,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkshiftreport.model.MeterWorkShiftReport">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkshiftreport.model.MeterWorkShiftReport">
|
|
|
insert into METER_WORK_SHIFT_REPORT
|
|
insert into METER_WORK_SHIFT_REPORT
|
|
@@ -271,30 +185,6 @@
|
|
|
<if test="shiftManName != null">
|
|
<if test="shiftManName != null">
|
|
|
SHIFT_MAN_NAME,
|
|
SHIFT_MAN_NAME,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- WORK_START_TIME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- WORK_END_TIME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null">
|
|
|
|
|
- WORK_MATTERS,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null">
|
|
|
|
|
- WORK_PROCESSING_RESULT,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null">
|
|
|
|
|
- WORK_REPORTER_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null">
|
|
|
|
|
- WORK_REPORTER_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null">
|
|
|
|
|
- WORK_HANDLER_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null">
|
|
|
|
|
- WORK_HANDLER_NAME,
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null">
|
|
<if test="workRecorderNo != null">
|
|
|
WORK_RECORDER_NO,
|
|
WORK_RECORDER_NO,
|
|
|
</if>
|
|
</if>
|
|
@@ -333,30 +223,6 @@
|
|
|
<if test="shiftManName != null">
|
|
<if test="shiftManName != null">
|
|
|
#{shiftManName,jdbcType=VARCHAR},
|
|
#{shiftManName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- #{workStartTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- #{workEndTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null">
|
|
|
|
|
- #{workMatters,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null">
|
|
|
|
|
- #{workProcessingResult,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null">
|
|
|
|
|
- #{workReporterNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null">
|
|
|
|
|
- #{workReporterName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null">
|
|
|
|
|
- #{workHandlerNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null">
|
|
|
|
|
- #{workHandlerName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null">
|
|
<if test="workRecorderNo != null">
|
|
|
#{workRecorderNo,jdbcType=VARCHAR},
|
|
#{workRecorderNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -384,14 +250,6 @@
|
|
|
METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
|
|
METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
|
|
|
SHIFT_MAN_NO = #{shiftManNo,jdbcType=VARCHAR},
|
|
SHIFT_MAN_NO = #{shiftManNo,jdbcType=VARCHAR},
|
|
|
SHIFT_MAN_NAME = #{shiftManName,jdbcType=VARCHAR},
|
|
SHIFT_MAN_NAME = #{shiftManName,jdbcType=VARCHAR},
|
|
|
- WORK_START_TIME = #{workStartTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- WORK_END_TIME = #{workEndTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- WORK_MATTERS = #{workMatters,jdbcType=VARCHAR},
|
|
|
|
|
- WORK_PROCESSING_RESULT = #{workProcessingResult,jdbcType=VARCHAR},
|
|
|
|
|
- WORK_REPORTER_NO = #{workReporterNo,jdbcType=VARCHAR},
|
|
|
|
|
- WORK_REPORTER_NAME = #{workReporterName,jdbcType=VARCHAR},
|
|
|
|
|
- WORK_HANDLER_NO = #{workHandlerNo,jdbcType=VARCHAR},
|
|
|
|
|
- WORK_HANDLER_NAME = #{workHandlerName,jdbcType=VARCHAR},
|
|
|
|
|
WORK_RECORDER_NO = #{workRecorderNo,jdbcType=VARCHAR},
|
|
WORK_RECORDER_NO = #{workRecorderNo,jdbcType=VARCHAR},
|
|
|
WORK_RECORDER_NAME = #{workRecorderName,jdbcType=VARCHAR},
|
|
WORK_RECORDER_NAME = #{workRecorderName,jdbcType=VARCHAR},
|
|
|
SHIFT_WORK_LOG = #{shiftWorkLog,jdbcType=VARCHAR},
|
|
SHIFT_WORK_LOG = #{shiftWorkLog,jdbcType=VARCHAR},
|
|
@@ -418,30 +276,6 @@
|
|
|
<if test="shiftManName != null">
|
|
<if test="shiftManName != null">
|
|
|
SHIFT_MAN_NAME = #{shiftManName,jdbcType=VARCHAR},
|
|
SHIFT_MAN_NAME = #{shiftManName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="workStartTime != null">
|
|
|
|
|
- WORK_START_TIME = #{workStartTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workEndTime != null">
|
|
|
|
|
- WORK_END_TIME = #{workEndTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workMatters != null">
|
|
|
|
|
- WORK_MATTERS = #{workMatters,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workProcessingResult != null">
|
|
|
|
|
- WORK_PROCESSING_RESULT = #{workProcessingResult,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterNo != null">
|
|
|
|
|
- WORK_REPORTER_NO = #{workReporterNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workReporterName != null">
|
|
|
|
|
- WORK_REPORTER_NAME = #{workReporterName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerNo != null">
|
|
|
|
|
- WORK_HANDLER_NO = #{workHandlerNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="workHandlerName != null">
|
|
|
|
|
- WORK_HANDLER_NAME = #{workHandlerName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="workRecorderNo != null">
|
|
<if test="workRecorderNo != null">
|
|
|
WORK_RECORDER_NO = #{workRecorderNo,jdbcType=VARCHAR},
|
|
WORK_RECORDER_NO = #{workRecorderNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -479,24 +313,18 @@
|
|
|
insert into METER_WORK_SHIFT_REPORT
|
|
insert into METER_WORK_SHIFT_REPORT
|
|
|
(SHIFT_REPORT_ID,
|
|
(SHIFT_REPORT_ID,
|
|
|
CREATE_TIME, METER_CLASS, METER_GROUP,
|
|
CREATE_TIME, METER_CLASS, METER_GROUP,
|
|
|
- SHIFT_MAN_NO, SHIFT_MAN_NAME, WORK_START_TIME,
|
|
|
|
|
- WORK_END_TIME, WORK_MATTERS, WORK_PROCESSING_RESULT,
|
|
|
|
|
- WORK_REPORTER_NO, WORK_REPORTER_NAME,
|
|
|
|
|
- WORK_HANDLER_NO, WORK_HANDLER_NAME,
|
|
|
|
|
- WORK_RECORDER_NO, WORK_RECORDER_NAME,
|
|
|
|
|
- SHIFT_WORK_LOG, COMPARE_RECORDS,
|
|
|
|
|
- DEVICE_PROBLEM, WORK_LOG)
|
|
|
|
|
|
|
+ SHIFT_MAN_NO, SHIFT_MAN_NAME, WORK_RECORDER_NO,
|
|
|
|
|
+ WORK_RECORDER_NAME, SHIFT_WORK_LOG,
|
|
|
|
|
+ COMPARE_RECORDS, DEVICE_PROBLEM,
|
|
|
|
|
+ WORK_LOG)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.shiftReportId,jdbcType=VARCHAR},
|
|
#{item.shiftReportId,jdbcType=VARCHAR},
|
|
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.meterClass,jdbcType=VARCHAR}, #{item.meterGroup,jdbcType=VARCHAR},
|
|
#{item.createTime,jdbcType=TIMESTAMP}, #{item.meterClass,jdbcType=VARCHAR}, #{item.meterGroup,jdbcType=VARCHAR},
|
|
|
- #{item.shiftManNo,jdbcType=VARCHAR}, #{item.shiftManName,jdbcType=VARCHAR}, #{item.workStartTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{item.workEndTime,jdbcType=TIMESTAMP}, #{item.workMatters,jdbcType=VARCHAR}, #{item.workProcessingResult,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.workReporterNo,jdbcType=VARCHAR}, #{item.workReporterName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.workHandlerNo,jdbcType=VARCHAR}, #{item.workHandlerName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.workRecorderNo,jdbcType=VARCHAR}, #{item.workRecorderName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.shiftWorkLog,jdbcType=VARCHAR}, #{item.compareRecords,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.deviceProblem,jdbcType=VARCHAR}, #{item.workLog,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
|
+ #{item.shiftManNo,jdbcType=VARCHAR}, #{item.shiftManName,jdbcType=VARCHAR}, #{item.workRecorderNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.workRecorderName,jdbcType=VARCHAR}, #{item.shiftWorkLog,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.compareRecords,jdbcType=VARCHAR}, #{item.deviceProblem,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.workLog,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -526,38 +354,6 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.shiftManName,jdbcType=VARCHAR}
|
|
when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.shiftManName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- ,WORK_START_TIME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workStartTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_END_TIME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workEndTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_MATTERS=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workMatters,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_PROCESSING_RESULT=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workProcessingResult,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_REPORTER_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workReporterNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_REPORTER_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workReporterName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_HANDLER_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workHandlerNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
- ,WORK_HANDLER_NAME=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
|
|
- when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workHandlerName,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
,WORK_RECORDER_NO=
|
|
,WORK_RECORDER_NO=
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case SHIFT_REPORT_ID" close="end">
|
|
|
when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workRecorderNo,jdbcType=VARCHAR}
|
|
when #{item.shiftReportId,jdbcType=VARCHAR} then #{item.workRecorderNo,jdbcType=VARCHAR}
|
|
@@ -599,7 +395,6 @@
|
|
|
<select id="likeByCreateTime" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="likeByCreateTime" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
|
where 1 = 1
|
|
where 1 = 1
|
|
|
- and rownum = 1
|
|
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
</if>
|
|
</if>
|