whyclxw
2025-05-07 45ef9e340f9bb4b98fd88a758343470dfe125cb3
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package com.whyc.mapper;
 
import com.whyc.dto.BattInfAndEnduranceDTO;
import com.whyc.dto.BattInfDTO;
import com.whyc.dto.ReportBattDTO;
import com.whyc.pojo.Battinf;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
public interface BattInfMapper extends CustomMapper<Battinf>{
 
    Integer getMaxBattGroupId_zj();
 
    Integer getMaxStationId_zj();
 
    Integer getMaxDevId(@Param("fbsDeviceId") int fbsDeviceId);
 
    Integer getMaxPowerDeviceId(@Param("powerDeviceType") Integer powerDeviceType);
 
    Battinf judgeBattStationName(@Param("stationName") String stationName,@Param("FBSDeviceName") String FBSDeviceName);
    //判断新增机房是否存在
    Battinf judgeBattStationName3(@Param("battinf")Battinf battinf);
 
 
    List<String> getStationName1ByUserId(@Param("userId")Integer userId);
 
    List<String> getStationName2ByUseridAndSt1(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
 
    List<String> getStationName5ByUseridAndSt1AndSt2(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("userId")Integer userId);
 
    List<Battinf> getAllStationName(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5);
 
    List<String> getStationNameInGroup(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
 
    List<Battinf> getStationNameInGroup2(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
 
    //TODO 这个接口返回映射未做,需要check
    List<Battinf> searchInform(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3);
 
    List<Battinf> getStationListOfBattPower();
 
    List<Battinf> getBattgroupListByStationNameAndStationName1(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName")String stationName);
 
    void insertUserBattgroupBaojigroupBattgroup(@Param("stationId") String stationId,@Param("battgroupId") Integer battgroupId);
    void insertUserBattgroupBaojigroupBattgroupSelect(@Param("stationId") String stationId,@Param("battgroupId") Integer battgroupId,@Param("userId")Integer userId);
 
    List<Battinf> getStationList(int userId);
 
 
    List<String> getAllBattProducer();
 
    int updatePublicKeyByDevId(@Param("publicKey")String publicKey,@Param("deviceId")Integer deviceId);
 
 
    List<Battinf> searchNotInBattMapByUid(@Param("uId") int uId);
 
    List<Integer> findUseYear(@Param("uId") int uId);
 
    List<Battinf> findBattProducer(@Param("uId")int uId);
    //放电计划--查询
    List serchBattPlan(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationId")String stationId,@Param("uId")int uId);
 
    List<BattInfAndEnduranceDTO> findBattProducerInfoByProducerName(@Param("battProducer") String battProducer,@Param("userId") int userId);
 
    List<BattInfAndEnduranceDTO> findBattProducerInfoByYearCode(@Param("year") int year,@Param("userId") int uId);
 
    List<BattInfAndEnduranceDTO> findBattProducerInfoByTime(@Param("startTime") Date startTime,@Param("endTime") Date endTime, @Param("userId") int uId);
 
    List<Battinf> searchByTestType(@Param("tinf") ReportBattDTO tinf,  @Param("userId") int userId);
 
    //报表统计-电池组评估
    List<Battinf> searchGroupAssess(@Param("tinf") ReportBattDTO tinf, @Param("userId") int userId);
    //根据蓄电池组查不重复的MonCount(monNum)(单体编号)(但实际sql语句通过battGroupId查询)
    List<Battinf> searchByMonNum(@Param("battGroupId") int battGroupId);
 
    List<Battinf> getStationList8059(Long uId);
 
    int searchByDeviceId(int uId);
    //取出电池组信息构建excel文件的名称
    Battinf serchExcelName(int battGroupId);
 
    List<Battinf> getA059StationOfBattinf(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3);
 
    //第三方接口提供
    List<BattInfDTO> getBattInf();
 
    int getBattGroupNum(int userId);
 
    int getBattGroupMonNum(int userId);
 
    //山西晋源特定接口
    int getBattGroupNumJY();
 
    int getDevNum(int userId);
 
    //山西晋源特定接口
    int getDevNumJY();
 
    List<Battinf> getBattGroupList(int userId);
 
    //山西晋源特定接口
    List<Battinf> getBattGroupListJY();
 
    //单体总数
    int getMonCount(int userId);
 
    int geStationCount(int userId);
 
    //电池组总数
    int geGroupCount(int userId);
 
    //所有电池组
    List<Battinf> getBinfList(int userId);
 
    List<Battinf> getSateAnalysis(int userId);
 
    //根据机房id查询电池组id(排序取groupIndex=0)
    int searchBattGroupId(String stationId);
 
    //查询标称电压类别
    List<String> searchMonVol();
 
    //未放电电池组数
    int searchInDischarge(int userId);
 
    //根据设备id查询电池组id(取第一个)
    String searchBattGroupIdByDevId(int devId);
 
    //天一电厂获取用户管理的电池组实时数据
    List<Battinf> selectTydc3DRealTimeInfo(Long userId);
    //是否存在电池设备
    int hasBattBinf(String stationId);
 
    //获取所有的电池组
    List<Battinf> getInfInStation(String stationId);
    //1统计机房个数,设备个数,电池组个数(苏州地铁)
    List<Battinf> getAllInfInSz2(Integer userId);
    //查询battinf表中所有机房信息
    List<Battinf> getAllStationInSz2(Integer userId);
}