package com.whyc.mapper;
|
|
import com.whyc.dto.BattInfAndEnduranceDTO;
|
import com.whyc.dto.BattInfDTO;
|
import com.whyc.dto.ReportBattDTO;
|
import com.whyc.pojo.Battinf;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.Date;
|
import java.util.List;
|
|
public interface BattInfMapper extends CustomMapper<Battinf>{
|
|
Integer getMaxBattGroupId_zj();
|
|
Integer getMaxStationId_zj();
|
|
Integer getMaxDevId(@Param("fbsDeviceId") int fbsDeviceId);
|
|
Integer getMaxPowerDeviceId(@Param("powerDeviceType") Integer powerDeviceType);
|
|
Battinf judgeBattStationName(@Param("stationName") String stationName,@Param("FBSDeviceName") String FBSDeviceName);
|
//判断新增机房是否存在
|
Battinf judgeBattStationName3(@Param("battinf")Battinf battinf);
|
|
|
List<String> getStationName1ByUserId(@Param("userId")Integer userId);
|
|
List<String> getStationName2ByUseridAndSt1(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
|
|
List<String> getStationName5ByUseridAndSt1AndSt2(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("userId")Integer userId);
|
|
List<Battinf> getAllStationName(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5);
|
|
List<String> getStationNameInGroup(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
|
|
List<Battinf> getStationNameInGroup2(@Param("userId")Integer userId,@Param("stationName1")String stationName1);
|
|
//TODO 这个接口返回映射未做,需要check
|
List<Battinf> searchInform(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3);
|
|
List<Battinf> getStationListOfBattPower();
|
|
List<Battinf> getBattgroupListByStationNameAndStationName1(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName")String stationName);
|
|
void insertUserBattgroupBaojigroupBattgroup(@Param("stationId") String stationId,@Param("battgroupId") Integer battgroupId);
|
void insertUserBattgroupBaojigroupBattgroupSelect(@Param("stationId") String stationId,@Param("battgroupId") Integer battgroupId,@Param("userId")Integer userId);
|
|
List<Battinf> getStationList(int userId);
|
|
|
List<String> getAllBattProducer();
|
|
int updatePublicKeyByDevId(@Param("publicKey")String publicKey,@Param("deviceId")Integer deviceId);
|
|
|
List<Battinf> searchNotInBattMapByUid(@Param("uId") int uId);
|
|
List<Integer> findUseYear(@Param("uId") int uId);
|
|
List<Battinf> findBattProducer(@Param("uId")int uId);
|
//放电计划--查询
|
List serchBattPlan(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationId")String stationId,@Param("uId")int uId);
|
|
List<BattInfAndEnduranceDTO> findBattProducerInfoByProducerName(@Param("battProducer") String battProducer,@Param("userId") int userId);
|
|
List<BattInfAndEnduranceDTO> findBattProducerInfoByYearCode(@Param("year") int year,@Param("userId") int uId);
|
|
List<BattInfAndEnduranceDTO> findBattProducerInfoByTime(@Param("startTime") Date startTime,@Param("endTime") Date endTime, @Param("userId") int uId);
|
|
List<Battinf> searchByTestType(@Param("tinf") ReportBattDTO tinf, @Param("userId") int userId);
|
|
//报表统计-电池组评估
|
List<Battinf> searchGroupAssess(@Param("tinf") ReportBattDTO tinf, @Param("userId") int userId);
|
//根据蓄电池组查不重复的MonCount(monNum)(单体编号)(但实际sql语句通过battGroupId查询)
|
List<Battinf> searchByMonNum(@Param("battGroupId") int battGroupId);
|
|
List<Battinf> getStationList8059(Long uId);
|
|
int searchByDeviceId(int uId);
|
//取出电池组信息构建excel文件的名称
|
Battinf serchExcelName(int battGroupId);
|
|
List<Battinf> getA059StationOfBattinf(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3);
|
|
//第三方接口提供
|
List<BattInfDTO> getBattInf();
|
|
int getBattGroupNum(int userId);
|
|
int getBattGroupMonNum(int userId);
|
|
//山西晋源特定接口
|
int getBattGroupNumJY();
|
|
int getDevNum(int userId);
|
|
//山西晋源特定接口
|
int getDevNumJY();
|
|
List<Battinf> getBattGroupList(int userId);
|
|
//山西晋源特定接口
|
List<Battinf> getBattGroupListJY();
|
|
//单体总数
|
int getMonCount(int userId);
|
|
int geStationCount(int userId);
|
|
//电池组总数
|
int geGroupCount(int userId);
|
|
//所有电池组
|
List<Battinf> getBinfList(int userId);
|
|
List<Battinf> getSateAnalysis(int userId);
|
|
//根据机房id查询电池组id(排序取groupIndex=0)
|
int searchBattGroupId(String stationId);
|
|
//查询标称电压类别
|
List<String> searchMonVol();
|
|
//未放电电池组数
|
int searchInDischarge(int userId);
|
|
//根据设备id查询电池组id(取第一个)
|
String searchBattGroupIdByDevId(int devId);
|
|
//天一电厂获取用户管理的电池组实时数据
|
List<Battinf> selectTydc3DRealTimeInfo(Long userId);
|
//是否存在电池设备
|
int hasBattBinf(String stationId);
|
|
//获取所有的电池组
|
List<Battinf> getInfInStation(String stationId);
|
}
|