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);
|
}
|