|
@@ -356,4 +356,58 @@
|
|
|
typeTemp.node2,
|
|
typeTemp.node2,
|
|
|
typeTemp.node1
|
|
typeTemp.node1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectDetail07ByTypeAndTripType" resultType="hashmap" parameterType="java.util.Map">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ DFD7_TYPE,
|
|
|
|
|
+ DFD7_TRIPTYPE,
|
|
|
|
|
+ count( 1 )
|
|
|
|
|
+ FROM
|
|
|
|
|
+ `dw_file_detail_07` dw07
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="beginTime != null and beginTime != ''">
|
|
|
|
|
+ AND SUBSTRING(replace(dw07.DFD7_TIME, '-', ''), 1, 8) >= #{beginTime,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
|
+ AND SUBSTRING(replace(dw07.DFD7_TIME, '-', ''), 1, 8) <= #{endTime,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ GROUP BY
|
|
|
|
|
+ DFD7_TYPE,
|
|
|
|
|
+ DFD7_TRIPTYPE
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select id="selectDetail07Detail" resultType="hashmap" parameterType="java.util.Map">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ dw07.DFD7_ID id,
|
|
|
|
|
+ dw07.DFD7_NO no,
|
|
|
|
|
+ dw07.DFD7_TYPE type,
|
|
|
|
|
+ dw07.DFD7_UNIT unit,
|
|
|
|
|
+ dw07.DFD7_DEVICE device,
|
|
|
|
|
+ dw07.DFD7_TIME time,
|
|
|
|
|
+ dw07.DFD7_EVENTTYPE eventType,
|
|
|
|
|
+ dw07.DFD7_FA fa,
|
|
|
|
|
+ dw07.DFD7_TRIPTYPE tripType,
|
|
|
|
|
+ dw07.DFD7_CAUSE cause,
|
|
|
|
|
+ dw07.DFD7_CHZDZQK chzdzqk,
|
|
|
|
|
+ dw07.DFD7_HANDLE handle,
|
|
|
|
|
+ dw07.DFD7_ERROBRIEF erroBrief,
|
|
|
|
|
+ dw07.DFD7_FILE_ID
|
|
|
|
|
+ FROM
|
|
|
|
|
+ `dw_file_detail_07` dw07
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="beginTime != null and beginTime != ''">
|
|
|
|
|
+ AND SUBSTRING(replace(dw07.DFD7_TIME, '-', ''), 1, 8) >= #{beginTime,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
|
+ AND SUBSTRING(replace(dw07.DFD7_TIME, '-', ''), 1, 8) <= #{endTime,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="type != null and type != ''">
|
|
|
|
|
+ and dw07.DFD7_TYPE = #{type,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tripType != null and tripType != ''">
|
|
|
|
|
+ and dw07.DFD7_TRIPTYPE = #{tripType,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ GROUP BY
|
|
|
|
|
+ DFD7_TYPE,
|
|
|
|
|
+ DFD7_TRIPTYPE
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|