| | |
| | | |
| | | //测试数据——实时查询中左下角的充放电统计(旧) |
| | | public List serchDisOrChargr(); |
| | | |
| | | |
| | | // @Select(" SELECT distinct db_ram_db.tb_batt_rtstate.battgroupid " |
| | | // + ",batt_test_type,stationid,fbsdeviceid,stationName,stationName1,stationName2,stationName3,stationName4,stationName5 " + |
| | | // " from db_ram_db.tb_batt_rtstate,db_battinf.tb_battinf ") |
| | | //测试数据——实时查询中左下角的充放电统计(用户管理的机房) |
| | | public List serchDisOrChargrNew(User_inf obj); |
| | | @Select(" SELECT distinct db_ram_db.tb_batt_rtstate.battgroupid " |
| | | + ",batt_test_type,stationid,fbsdeviceid,stationName,stationName1,stationName2,stationName3,stationName4,stationName5 " + |
| | | " from db_ram_db.tb_batt_rtstate,db_battinf.tb_battinf " + |
| | | " where batt_test_type IN(2,3) " + |
| | | " and db_ram_db.tb_batt_rtstate.battgroupid=db_battinf.tb_battinf.BattGroupId " + |
| | | " and db_ram_db.tb_batt_rtstate.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} ) " + |
| | | " ORDER BY db_ram_db.tb_batt_rtstate.battgroupid") |
| | | public List<Batt_rtstate> serchDisOrChargrNew(User_inf obj); |
| | | |
| | | //根据电池组id查询该电池组(电池续航能力) |
| | | public List<Batt_State> serchByInfo(BattInf obj); |
| | |
| | | |
| | | }*/ |
| | | @Select("SELECT DISTINCT tb_batt_rtstate.BattGroupId,batt_state, " + |
| | | "COUNT(tb_batt_rtstate.BattGroupId) as stateNum " + |
| | | "COUNT(tb_batt_rtstate.BattGroupId) as batt_count " + |
| | | "FROM db_ram_db.tb_batt_rtstate " + |
| | | "GROUP BY tb_batt_rtstate.BattGroupId,batt_state " + |
| | | "having db_ram_db.tb_batt_rtstate.BattGroupId in(select distinct db_battinf.tb_battinf.battgroupid " + |
| | |
| | | "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} ) " + |
| | | "and db_user.tb_user_inf.uid=#{uId} ) " + |
| | | "ORDER BY batt_state") |
| | | public List<BattRtStateBean> serchBattStateRate(User_inf obj); |
| | | public List<Batt_rtstate> serchBattStateRate(User_inf obj); |
| | | |
| | | //电池组实时情况+实时电池续航能力查询 |
| | | /*public List serchBattLife(Object obj) { |
| | |
| | | |
| | | /*public static void main(String[] args) { |
| | | User_inf uinf=new User_inf(); |
| | | uinf.setUId(1001); |
| | | uinf.setuId(1001); |
| | | Batt_rtstateDAOImpl bimpl=new Batt_rtstateDAOImpl(); |
| | | *//*List<Batt_rtstate> list=bimpl.serchDisOrChargrNew(uinf); |
| | | for (Batt_rtstate b : list) { |