|
|
@@ -656,7 +656,78 @@
|
|
|
|
|
|
<select id="likeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
- <include refid="whereLike"/>
|
|
|
+ <where>
|
|
|
+ <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 operationTime != ''">
|
|
|
+ and OPERATION_TIME LIKE '%${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="baseSpotNoStr != null and baseSpotNoStr != ''">
|
|
|
+ and BASE_SPOT_NO in
|
|
|
+ <foreach collection="spotNoStr" index="item" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
+ and to_date(OPERATION_TIME ,'yyyy-mm-dd HH24:mi:ss') >= to_date(#{startTime},'yyyy-mm-dd HH24:mi:ss')-3/24/60
|
|
|
+ and to_date(OPERATION_TIME ,'yyyy-mm-dd HH24:mi:ss') <= to_date(#{endTime},'yyyy-mm-dd HH24:mi:ss') + 1/(24*60)
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
order by operation_time desc
|
|
|
</select>
|
|
|
|