whyclxw
7 天以前 326468e5ce8f9f69eb461f483cdd3a1c0575ad3c
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
package com.whyc.mapper;
 
import com.whyc.dto.Param.ParamAlmDto;
import com.whyc.dto.PowerDto;
import com.whyc.dto.Statistic.Pwr7Stic;
import com.whyc.dto.Statistic.StationStic;
import com.whyc.pojo.db_station.BattInf;
import com.whyc.pojo.db_station.PowerInf;
import com.whyc.pojo.db_station.StationInf;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface PowerInfMapper extends CustomMapper<PowerInf>{
    List<PowerInf> getPowerList();
    //获取对应的电源id
    int getMaxPowerId();
    //查询电源
    List<PowerInf> getPower(PowerDto dto);
    //电源需要编号,powerNum编号,电源名称自动生成通讯电源+powerNum
    int getMaxPowerNum(@Param("stationId") Integer stationId);
    //获取电源品牌(下拉)
    List<String> getCompanyByUid(Integer uid);
    //获取电源型号(下拉)
    List<String> getPowerModelByUid(Integer uid);
    //获取电源协议(下拉)
    List<String> getProtocolByUid(Integer uid);
    //电源信息统计
    List<PowerInf> getPowerStatistic(@Param("stic") StationStic stic);
    //查询机房所在的班组
    String getGroupName(Integer powerId);
 
    //优良电源数量统计(1.2.7)
    List<PowerInf> getPwr7Statistic(@Param("stic") Pwr7Stic stic);
 
    List<PowerInf> getListByUserId(Integer userId);
    //根据查询条件获取电源集合
    PowerInf getPowerIdList(@Param("powerId") Integer powerId);
}