whyclxw
6 天以前 2262618a51134d89b0d9390eaff152c7a9dc1f5d
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
package com.whyc.mapper;
 
import com.whyc.dto.Station.Provice;
import com.whyc.dto.Statistic.StationStic;
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 StationInfMapper extends CustomMapper<StationInf>{
    //获取当前最大的机房id
    Integer getMaxStationId();
    //获取左侧列表
    List<Provice> getLeftStation(@Param("uid") Integer uid);
    //获取所有的省份
    List<String> getProviceByUid(@Param("uid") Integer uid);
    //获取省下的市
    List<String> getCityByUid(@Param("uid") Integer uid,@Param("provice") String provice);
    //获取省市下的区县
    List<String> getCountryByUid(@Param("uid") Integer uid,@Param("provice") String provice, @Param("city") String city);
    //获取省市区县下的站点
    List<StationInf> getStationByUid(@Param("uid") Integer uid,@Param("provice") String provice,@Param("city") String city,@Param("country") String country);
    //获取站点下的电源(下拉)
    List<PowerInf> getPowerByUid(@Param("uid") Integer uid, @Param("provice") String provice, @Param("city") String city, @Param("country") String country, @Param("stationName") String stationName);
    //获取电压等级(下拉)
    List<String> getStationTypeByUid(@Param("uid") Integer uid);
    //站点信息统计
    List<StationInf> getStationStatistic(@Param("stic") StationStic stic);
 
    List<StationInf> getListByUserId(Integer userId);
 
}