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{ 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 getStationName1ByUserId(@Param("userId")Integer userId); List getStationName2ByUseridAndSt1(@Param("userId")Integer userId,@Param("stationName1")String stationName1); List getStationName5ByUseridAndSt1AndSt2(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("userId")Integer userId); List getAllStationName(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5); List getStationNameInGroup(@Param("userId")Integer userId,@Param("stationName1")String stationName1); List getStationNameInGroup2(@Param("userId")Integer userId,@Param("stationName1")String stationName1); //TODO 这个接口返回映射未做,需要check List searchInform(@Param("userId")Integer userId,@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3); List getStationListOfBattPower(); List 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 getStationList(int userId); List getAllBattProducer(); int updatePublicKeyByDevId(@Param("publicKey")String publicKey,@Param("deviceId")Integer deviceId); List searchNotInBattMapByUid(@Param("uId") int uId); List findUseYear(@Param("uId") int uId); List 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 findBattProducerInfoByProducerName(@Param("battProducer") String battProducer,@Param("userId") int userId); List findBattProducerInfoByYearCode(@Param("year") int year,@Param("userId") int uId); List findBattProducerInfoByTime(@Param("startTime") Date startTime,@Param("endTime") Date endTime, @Param("userId") int uId); List searchByTestType(@Param("tinf") ReportBattDTO tinf, @Param("userId") int userId); //报表统计-电池组评估 List searchGroupAssess(@Param("tinf") ReportBattDTO tinf, @Param("userId") int userId); //根据蓄电池组查不重复的MonCount(monNum)(单体编号)(但实际sql语句通过battGroupId查询) List searchByMonNum(@Param("battGroupId") int battGroupId); List getStationList8059(Long uId); int searchByDeviceId(int uId); //取出电池组信息构建excel文件的名称 Battinf serchExcelName(int battGroupId); List getA059StationOfBattinf(@Param("stationName1")String stationName1,@Param("stationName2")String stationName2,@Param("stationName5")String stationName5,@Param("stationName3")String stationName3); //第三方接口提供 List getBattInf(); int getBattGroupNum(int userId); int getBattGroupMonNum(int userId); //山西晋源特定接口 int getBattGroupNumJY(); int getDevNum(int userId); //山西晋源特定接口 int getDevNumJY(); List getBattGroupList(int userId); //山西晋源特定接口 List getBattGroupListJY(); //单体总数 int getMonCount(int userId); int geStationCount(int userId); //电池组总数 int geGroupCount(int userId); //所有电池组 List getBinfList(int userId); List getSateAnalysis(int userId); //根据机房id查询电池组id(排序取groupIndex=0) int searchBattGroupId(String stationId); //查询标称电压类别 List searchMonVol(); //未放电电池组数 int searchInDischarge(int userId); //根据设备id查询电池组id(取第一个) String searchBattGroupIdByDevId(int devId); //天一电厂获取用户管理的电池组实时数据 List selectTydc3DRealTimeInfo(Long userId); //是否存在电池设备 int hasBattBinf(String stationId); //获取所有的电池组 List getInfInStation(String stationId); //1统计机房个数,设备个数,电池组个数(苏州地铁) List getAllInfInSz2(Integer userId); }