| | |
| | | public List<BattInf> serchAllStation(User_inf obj); |
| | | |
| | | //根据机房id查询机房下的电池组信息 |
| | | public List serchBattByStation(Object obj); |
| | | @Select("select DISTINCT StationName,StationName1,StationName2,StationName3,StationName4,StationName5,StationId,StationIP,FBSDeviceId,BattGroupName,BattGroupName1,BattGroupName2,MonCount,battgroupId,MonCapStd,MonVolStd,MonResStd,MonSerStd,BattProducer,BattInUseDate,GroupIndexInFBSDevice,Load_curr,DisCurrMax " + |
| | | "from db_battinf.tb_battinf where stationid=#{stationId} " + |
| | | "ORDER BY StationName1,battgroupId ") |
| | | public List<BattInf> serchBattByStation(BattInf obj); |
| | | |
| | | //搜索机房或电池组 |
| | | public List serchStationOrBattgroup(Object obj); |
| | | public List<BattInf> serchStationOrBattgroup(BattInf obj); |
| | | |
| | | //查询所有的电池组数 |
| | | public int serchAllBatt(Object obj); |
| | | @Select("select count(distinct battgroupid) as nums from db_battinf.tb_battinf " + |
| | | " where battgroupid in(" + |
| | | " select distinct db_user.tb_user_battgroup_baojigroup_battgroup.battgroupid from db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id and db_user.tb_user_battgroup_baojigroup_usr.uId=#{uId}" + |
| | | " ) " + |
| | | " and stationid in(" + |
| | | " select distinct db_user.tb_user_battgroup_baojigroup_battgroup.stationid from db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id and db_user.tb_user_battgroup_baojigroup_usr.uId=#{uId}" + |
| | | " ) " + |
| | | " limit 1") |
| | | public int serchAllBatt(User_inf obj); |
| | | |
| | | //添加电池组时查询出最大的机房id和电池组id |
| | | @Select("select max(StationId) as id from db_battinf.tb_battinf limit 1") |
| | |
| | | //查询出当前存在内存中最大的电池组id(很重要**********) |
| | | @Select(" select max(battgroupId) as id from db_battinf.tb_battinf limit 1") |
| | | public int searchMaxBattgroupId_zj(); |
| | | |
| | | |
| | | //查站点下的所有设备名称 |
| | | public List searchDevByStationName3(Object obj); |
| | | @Select(" select distinct(stationName4) from db_battinf.tb_battinf " + |
| | | "where stationname1 like '%${stationName1}%' and stationname2 like '%${stationName2}%' " + |
| | | "and stationname5 like '%${stationName5}%' and stationname3 like '%${stationName3}%' ") |
| | | public List<String> searchDevByStationName3(BattInf obj); |
| | | |
| | | //根据维护区和机房名称查询电池组信息(电池组信息配置)<-------跨域-> |
| | | public List searchInform_ky(); |
| | | |
| | | //首页上根据stationid查询电池组的机历卡 |
| | | public List serchBattAllInfoByStationId(Object obj); |
| | | @Select("select * from db_battinf.tb_battinf where db_battinf.tb_battinf.stationId=#{stationId} order by db_battinf.tb_battinf.battgroupid") |
| | | public List<BattInf> serchBattAllInfoByStationId(BattInf obj); |
| | | |
| | | //-查询电池组信息<大屏显示> |
| | | public List serchBatt_DP(Object obj); |