whycxzp
2023-08-21 62218e47d0dcec67653a0185d17c27c6e6acdeb5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.whyc.mapper;
 
import com.whyc.pojo.BattalarmDataHistory;
import com.whyc.pojo.DevalarmDataHistory;
import com.whyc.pojo.PwrdevAlarmHistory;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
public interface PwrdevAlarmHistoryMapper extends CustomMapper<PwrdevAlarmHistory> {
    //查询所有的实时历史告警信息
    List getHistoryAllPage(PwrdevAlarmHistory pwrH);
 
    int getCount(PwrdevAlarmHistory param);
 
    //查询所有的实时历史告警信息 分表
    List<DevalarmDataHistory> getList2(PwrdevAlarmHistory data);
 
    //查询所有的通讯电源历史告警信息
    List<PwrdevAlarmHistory> getHistoryAllPage2(PwrdevAlarmHistory pwrH);
 
    int getCountForTX(PwrdevAlarmHistory param);
 
    List<DevalarmDataHistory> getListForTX(PwrdevAlarmHistory data);
 
    List<PwrdevAlarmHistory> getPwrdevAlarmHistory(List powerDeviceIds);
 
    //查询分级告警的个数
    int serchByLevel(@Param("alarmLevel") int alarmLevel, @Param("uId") int uId, @Param("almTypes") List<Integer> almTypes);
 
    List<PwrdevAlarmHistory> getDataBeforeRetentionMonth(@Param("retentionTime") Date retentionTime);
 
    List<BattalarmDataHistory> getLevelSubList(int uId, String tableName, List<Integer> almTypes);
 
}