whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/mapper/BattInfMapper.java
@@ -1,10 +1,12 @@
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 com.whyc.pojo.BatttestdataInf;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
public interface BattInfMapper extends CustomMapper<Battinf>{
@@ -14,6 +16,8 @@
    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);
    //判断新增机房是否存在
@@ -30,6 +34,9 @@
    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();
@@ -57,7 +64,79 @@
    List<BattInfAndEnduranceDTO> findBattProducerInfoByProducerName(@Param("battProducer") String battProducer,@Param("userId") int userId);
    List<BattInfAndEnduranceDTO> findBattProducerInfoByYearCode(@Param("yearCode") int yearCode,@Param("userId") int uId);
    List<BattInfAndEnduranceDTO> findBattProducerInfoByYearCode(@Param("year") int year,@Param("userId") int uId);
    List<Battinf> searchByTestType(@Param("tinf") BatttestdataInf tinf,int userId);
    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);
    //1统计机房个数,设备个数,电池组个数(苏州地铁)
    List<Battinf> getAllInfInSz2(Integer userId);
    //查询battinf表中所有机房信息
    List<Battinf> getAllStationInSz2(Integer userId);
}