|
@@ -6,7 +6,7 @@
|
|
|
<select id="getPage2" parameterType="org.jeecg.modules.detail.dto.InterlockDetailQueryDTO" resultType="org.jeecg.modules.history.vo.InterlockDetailHistoryQueryVO">
|
|
|
select d.id, d.summaryid, d.interlockname, d.interlock_condition, d.interlock_condition_tag, d.description,
|
|
|
d.instrument_status, d.interlock_set_value, d.current_value, d.if_bypass, d.input_status, d.output_status,
|
|
|
- d.mp_status, s.ljgx, s.interlock_out_value
|
|
|
+ d.mp_status, s.ljgx, s.interlock_out_value, s.tag_time, d.summary_origin_id
|
|
|
from interlock_detail_history d left join interlock_summary_history s on d.summaryid = s.id
|
|
|
<where>
|
|
|
<if test="dto.summaryid != null and dto.summaryid != ''"> and d.summaryid = #{dto.summaryid}</if>
|
|
@@ -18,7 +18,7 @@
|
|
|
<!-- 联锁总历史数据表-分页列表查询(各种逻辑状态)-->
|
|
|
<select id="getPage" parameterType="org.jeecg.modules.history.dto.InterlockHistoryQueryDTO" resultType="org.jeecg.modules.history.vo.InterlockSummaryHistoryVO">
|
|
|
select d.id, d.summaryid, d.interlockname, d.interlock_condition, d.interlock_condition_tag, d.instrument_status, d.control_system_status,
|
|
|
- s.interlock_status, s.loop_health_level, d.bypass, s.tag_time
|
|
|
+ s.interlock_status, s.loop_health_level, d.bypass, s.tag_time, d.summary_origin_id
|
|
|
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 s.interlock_system_id = #{dto.interlockSystemId}</if>
|