lxw
2023-03-16 f652e29b4d38f1faffd0388ebe492d7c1a7942f8
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
package com.whyc.mapper;
 
import com.whyc.dto.BattState;
import com.whyc.dto.paramter.GroupTestCapPar;
import com.whyc.dto.result.GroupTestCapRes;
import com.whyc.pojo.Battinf;
import com.whyc.pojo.BatttestdataInf;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface BatttestdataInfMapper extends CustomMapper<BatttestdataInf>{
 
    //查询是否存在db_batt_testdata_id表
    int judge(@Param("battGroupId") int battGroupId);
 
    List<BatttestdataInf> searchByTestType(@Param("tinf") BatttestdataInf tinf);
 
    //1.4电池组性能评估(根据电池组id查询所有的放电记录求出放电总次数,最高历史容量,最低历史容量,平均容量,最新测试容量)
    List<BatttestdataInf> searchDischargeTest(@Param("tinf") BatttestdataInf tinf);
 
    //机房历史放电数据续航能力查询(实时)
    List<BattState> searchBattLifeNow(@Param("binf") Battinf binf);
 
    //机房历史放电数据续航能力查询(历史)
    List searchBattLife(@Param("binf") Battinf binf);
 
    //统计时间段内设备的测试容量
    List<GroupTestCapRes> searchGroupTestCap(GroupTestCapPar groupCapPar);
 
    //本月数据
    List<BatttestdataInf> selectMonth(int userId);
 
    //本季度
    List<BatttestdataInf> selectQuarter(int userId);
 
    //本年
    List<BatttestdataInf> selectYear(int userId);
 
    //查询今天所有正在放电的机房总数
    int getPlanStaticToday(int userId);
}