|
@@ -21,6 +21,9 @@
|
|
|
s.interlock_status, s.loop_health_level, d.bypass, s.tag_time
|
|
|
from interlock_detail_history d left join interlock_summary_history s on d.summaryid = s.id
|
|
|
<where>
|
|
|
+ <if test="dto.interlockSystemId != null and dto.interlockSystemId != ''"> and d.interlock_system_id = #{dto.interlockSystemId}</if>
|
|
|
+ <if test="dto.interlockApparatusId != null and dto.interlockApparatusId != ''"> and d.interlock_apparatus_id = #{dto.interlockApparatusId}</if>
|
|
|
+
|
|
|
<if test="dto.interlockname != null and dto.interlockname != ''"> and d.interlockname like concat('%', #{dto.interlockname}, '%')</if>
|
|
|
<if test="dto.interlockCondition != null and dto.interlockCondition != ''"> and d.interlock_condition = #{dto.interlockCondition}</if>
|
|
|
<if test="dto.interlockConditionTag != null and dto.interlockConditionTag != ''"> and d.interlock_condition_tag like concat('%',#{dtodtodto.interlockConditionTag},'%')</if>
|