whyclxw
2025-05-07 b22e8e7a2d6f6a2998913c381af5ceba9542d79e
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.whyc.mapper;
 
import com.whyc.dto.BattMaintDealarm;
import com.whyc.dto.paramter.AlarmPar;
import com.whyc.dto.result.AlarmRes;
import com.whyc.dto.result.AlarmStaticRes;
import com.whyc.pojo.BattMapInformation;
import com.whyc.pojo.BattalarmData;
import com.whyc.pojo.Battinf;
import com.whyc.pojo.WorkflowAlarm;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
public interface BattalarmDataMapper extends CustomMapper<BattalarmData>{
    //测试
    List<BattMaintDealarm> test(BattalarmData battalarmData);
 
    //历史告警查询
    List<AlarmRes> serchByInfo(AlarmPar par);
 
    //实时告警查询
    List<AlarmRes> serchByCondition(AlarmPar par);
 
    //查询实时告警数
    List<AlarmStaticRes> serchAlm(AlarmPar par);
 
    //根据num取消告警
    int cancelalarm(int num);
 
    //根据num取消告警(多条记录)
    //int cancelalarmPro(List<Integer> list);
 
    //实时告警记录总数查询
    int serchRealTime(int uId);
 
    int getRealTimeWithLevel1(int uId);
 
    //山西晋源特定接口
    int getRealTimeWithLevel1JY();
 
    //电池单体健康率
    List<AlarmRes> serchGood(int uId);
 
 
    List<WorkflowAlarm> getAlarmList();
 
    void updateWorkFlag(List<WorkflowAlarm> battAlarmList);
 
    List<BattalarmData> getCountByStationId(String stationId,int[] alarmParams);
 
    List<BattalarmData> getRealAlarm(Date yesterday,int uId,int[] alarmParams);
 
    List<BattalarmData> getRealAlarmListWithLevel1(int uId);
 
    List<BattMapInformation> findAllStation(@Param("alarmParams") int[] alarmParams);
 
 
    List<AlarmRes> getBattAlarm(@Param("battgroupIds") List battgroupIds);
 
    List<BattalarmData> getSendBattAlarm(@Param("uId") Integer uId);
 
    List<BattalarmData> getBattAlarm2();
 
    List<BattalarmData> getList(@Param("uId") Long userId, @Param("type") int type);
 
    //查询分级告警的个数
    int serchByLevel(@Param("alarmLevel") int alarmLevel, @Param("uId") int uId);
 
    Integer getAlarmHighLow(@Param(value = "userId") int userId, @Param(value = "almSignalId") int almSignalId);
 
    //山西晋源特定接口
    Integer getAlarmHighLowJY(@Param(value = "almSignalId") int almSignalId);
 
    //查询实时告警总数
    int getbattAlm(int battGroupId);
 
    //今日实时告警
    List<BattalarmData> getBalmToday(int userId);
 
    List<Integer> getStationList(int userId);
 
    //电池告警机房
    int getQualityAnalysisStation(int userId);
 
    int getCapAlarmNum(int userId);
 
    int getCountByStationIds(List<String> stationIdList, Integer level);
 
    List<BattalarmData> getListByStationIds(List<String> stationIdList);
 
    //电池告警(劣化:内阻过高重要,电压过低重要;损坏:内阻过高紧急,电压过低紧急)
    List<String> searchAlarmLHorSH(int userId, int severity, List listAlm);
 
    //查询电池告警(劣化:内阻过高重要,电压过低重要;损坏:内阻过高紧急,电压过低紧急)
    List<BattalarmData> getAlm(Integer battGroupId, Integer almFlag);
 
    List<BattalarmData> getAlm2(Integer battGroupId);
 
    List<BattalarmData> getLevelListByUserId(int userId);
    //查询b所有实时电池告警信息
    List<BattalarmData> getAllBattAlarmInSz2(Integer userId);
}