|
@@ -102,8 +102,8 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <!-- 联锁总表-分页列表查询(各种逻辑状态) 添加权限-->
|
|
|
- <select id="getPageByUser" resultType="org.jeecg.modules.summary.vo.InterlockSummaryLimitVO">
|
|
|
+ <!-- 联锁总表-分页列表查询(各种逻辑状态) 添加权限 普通用户权限-->
|
|
|
+ <select id="getPageByPtUser" resultType="org.jeecg.modules.summary.vo.InterlockSummaryLimitVO">
|
|
|
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.interlock_apparatus_id, s.interlock_system_id,
|
|
|
h1.interlock_status_name , h2.bypass_name ,
|
|
@@ -135,4 +135,34 @@
|
|
|
order by s.create_time desc
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 联锁总表-分页列表查询(各种逻辑状态) 添加权限 系统管理员权限-->
|
|
|
+ <select id="getPageByAdminUser" resultType="org.jeecg.modules.summary.vo.InterlockSummaryLimitVO">
|
|
|
+ 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.interlock_apparatus_id, s.interlock_system_id,
|
|
|
+ h1.interlock_status_name , h2.bypass_name ,
|
|
|
+ h3.instrument_status_name , h4.control_system_status_name,
|
|
|
+ h.instrument_status_normal, h.bypass_yes, h.interlock_status_ty, h.control_system_status_normal,
|
|
|
+ '0' as limit_type, h.interlock_name as interlock_system_name, h5.interlock_name as interlock_apparatus_name
|
|
|
+ from interlock_detail d
|
|
|
+ left join interlock_summary s on d.summaryid = s.id
|
|
|
+ left join interlock_base_hy h1 on h1.interlock_status = s.interlock_status and h1.interlock_system_id = s.interlock_system_id
|
|
|
+ left join interlock_base_hy h2 on h2.bypass = d.bypass and h2.interlock_system_id = s.interlock_system_id
|
|
|
+ left join interlock_base_hy h3 on h3.instrument_status = d.instrument_status and h3.interlock_system_id = s.interlock_system_id
|
|
|
+ left join interlock_base_hy h4 on h4.control_system_status = d.control_system_status and h4.interlock_system_id = s.interlock_system_id
|
|
|
+ left join interlock_base h on h.id = s.interlock_system_id
|
|
|
+ left join interlock_base h5 on h5.id = s.interlock_apparatus_id
|
|
|
+ <where>
|
|
|
+ <if test="interlockSummaryLimitVO.interlockApparatusId != null and interlockSummaryLimitVO.interlockApparatusId != ''"> and s.interlock_apparatus_id = #{interlockSummaryLimitVO.interlockApparatusId}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.interlockSystemId != null and interlockSummaryLimitVO.interlockSystemId != ''"> and s.interlock_system_id = #{interlockSummaryLimitVO.interlockSystemId}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.interlockname != null and interlockSummaryLimitVO.interlockname != ''"> and d.interlockname like concat('%', #{interlockSummaryLimitVO.interlockname}, '%')</if>
|
|
|
+ <if test="interlockSummaryLimitVO.interlockConditionTag != null and interlockSummaryLimitVO.interlockConditionTag != ''"> and d.interlock_condition_tag like concat('%', #{interlockSummaryLimitVO.interlockConditionTag}, '%')</if>
|
|
|
+ <if test="interlockSummaryLimitVO.instrumentStatus != null and interlockSummaryLimitVO.instrumentStatus != ''"> and d.instrument_status = #{interlockSummaryLimitVO.instrumentStatus}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.controlSystemStatus != null and interlockSummaryLimitVO.controlSystemStatus != ''"> and d.control_system_status = #{interlockSummaryLimitVO.controlSystemStatus}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.interlockStatus != null and interlockSummaryLimitVO.interlockStatus != ''"> and s.interlock_status = #{interlockSummaryLimitVO.interlockStatus}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.loopHealthLevel != null and interlockSummaryLimitVO.loopHealthLevel != ''"> and s.loop_health_level = #{interlockSummaryLimitVO.loopHealthLevel}</if>
|
|
|
+ <if test="interlockSummaryLimitVO.bypass != null and interlockSummaryLimitVO.bypass != ''"> and d.bypass = #{interlockSummaryLimitVO.bypass}</if>
|
|
|
+ </where>
|
|
|
+ order by s.create_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|