lxw
2023-08-15 160e150009b51a39fa95d9462c3798ba28d51a09
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
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.Date;
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(Integer battGroupId, Date recordStartTime, Date recordEndTime);
 
    //机房历史放电数据续航能力查询(实时)
    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);
 
    //本年度核容放电电池组(testdate_inf中test_type=3,test_startType=3)
    int getHrQuarter(int userId);
 
    /* 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
    stop_type:
                2-放电时间到终止并且放电时间超过2小时
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止
                */
    int getHrQuarterZC(int userId);
 
 
    //获取本年已核容电池组
    List<Battinf> getHrYeardisBatt(String userId);
 
    //获取实时停电放电电池组
    List<Battinf> getJcdisBatt(String userId);
 
    //本年已停电放电电池组数testdate_inf中test_type=3,test_startType!=3
    int getJcQuarter(int userId);
 
    //1.查出符合条件的电池组(核容数据)按照时间倒叙排序(本年度)
    List<BatttestdataInf> getGroupAnalysis(int userId);
 
    //1.查出符合条件的电池组(核容数据)按照时间倒叙排序
     /* 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
    stop_type:
            2-放电时间到终止
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
    List<BatttestdataInf> getGroupAnalysisZC(int userId);
 
 
    //1.查出符合条件的电池组(核容数据)按照时间倒叙排序(不要时间)
    BatttestdataInf getGroupAnalysisQB(int BattGroupId);
 
    //本年度上一次正常核容的放电记录编号
    BatttestdataInf searchHrYear(int battGroupId);
}