yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAlarmMapper.xml
@@ -210,19 +210,15 @@
   
   <!-- 原始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>
    
    <!-- , -->