| | |
| | | package com.fgkj.mapper.impl; |
| | | |
| | | import com.fgkj.dto.*; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface BadBatt_monMapper{ |
| | | |
| | | //9.1根据stationid查询机房的落后单体总数 |
| | | public int serchByStationId(Object obj); |
| | | @Select("select count(num) as nums from web_site.tb_badbatt_mon " + |
| | | "where battgroupid in (select distinct battgroupid from db_battinf.tb_battinf where stationid=#{stationId} ) limit 1 ") |
| | | public int serchByStationId(BattMap_information obj); |
| | | |
| | | //9.1根据stationName3查询站点的落后单体总数 |
| | | public int serchBystationName3(Object obj); |
| | | |
| | | //9.1根据机房stationid查询机房下电池组单体落后情况 |
| | | public String serchMonBad(Object obj); |
| | | @Select("select battgroupid,group_concat(distinct mon_num) as mon_nums from web_site.tb_badbatt_mon " + |
| | | " where battgroupid =#{battGroupId} group by battgroupid limit 1") |
| | | public List<BadBatt_mon> serchMonBad(BattInf obj); |
| | | |
| | | public int searchNums(Object obj); |
| | | @Select("select count(distinct num,battgroupid,mon_num) " + |
| | | " from web_site.tb_badbatt_mon " + |
| | | " where web_site.tb_badbatt_mon.battgroupid in (select distinct db_battinf.tb_battinf.battgroupid " + |
| | | " from db_battinf.tb_battinf,db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr,db_user.tb_user_inf " + |
| | | " where db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId=db_battinf.tb_battinf.BattGroupId " + |
| | | " and db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id=db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id " + |
| | | " and db_user.tb_user_inf.uid=db_user.tb_user_battgroup_baojigroup_usr.uid " + |
| | | " and db_user.tb_user_inf.uid=#{uId} ) ") |
| | | public int searchNums(User_inf userInf); |
| | | |
| | | //落后单体查询:根据条件查询落后单体(用户管理的电池组) |
| | | public List serchByInfo(Object obj); |
| | | public List<Batt_Maint_Dealarm> serchByInfo(Batt_Maint_Dealarm bmd); |
| | | |
| | | //查询落后单体总数 |
| | | /*public int searchNums() { |
| | |
| | | page.setPageCurr(1); |
| | | page.setPageSize(10); |
| | | User_inf uinf=new User_inf(); |
| | | uinf.setUId(1002); |
| | | uinf.setuId(1002); |
| | | Batt_Maint_Dealarm bmd = new Batt_Maint_Dealarm(); |
| | | bmd.setBinf(binf); |
| | | bmd.setPage(page); |