| | |
| | | |
| | | <!-- 原始limit limit #{start}, #{end} ,实际上end应该是pageSize--> |
| | | <select id="alarmByWorkstation" resultType="com.qianwen.smartman.modules.mdc.vo.AlarmAnalysisWorkstationVO"> |
| | | select code as alarmCode, |
| | | select code as alarmCode, |
| | | message as alarmMsg |
| | | from root.f2.alarm_* |
| | | where workstation_id = #{workstationId} |
| | | order by time desc |
| | | from root.f2.alarm_${workstationId} order by time desc |
| | | limit #{end} offset #{start} |
| | | align by device |
| | | </select> |
| | | |
| | | <select id="alarmByWorkstationTotal" resultType="java.lang.Integer"> |
| | | select count(workstation_id) |
| | | from root.f2.alarm_* |
| | | where workstation_id = #{workstationId} |
| | | select count(workstation_id) from root.f2.alarm_${workstationId} |
| | | </select> |
| | | |
| | | <!-- , --> |