| | |
| | | if(list!=null&&list.size()>0){ |
| | | for(int i=0;i<list.size();i++){ |
| | | state="item-normal"; |
| | | ServiceModel model=new ServiceModel(); |
| | | ServiceModelElectri model=new ServiceModelElectri(); |
| | | BattMap_information binformation = list.get(i); |
| | | if(binformation.getFbsDeviceId()/100000==6185){ |
| | | BattInf binf=new BattInf(); |
| | |
| | | } |
| | | } |
| | | } |
| | | //TODO perry |
| | | // model.setData(list.get(i)); |
| | | // model.setCode(numAlarm); //告警总数 |
| | | // model.setSum(numBadBatt); //落后总数 |
| | | // model.setNewsum(numPlan); //延时总数 |
| | | // model.setMsg(state); //61850状态 |
| | | // model.setMsgN(binformation.getFBSDeviceId().toString()); |
| | | model.setData(list.get(i)); |
| | | model.setCode(numAlarm); //告警总数 |
| | | model.setSum(numBadBatt); //落后总数 |
| | | model.setNewsum(numPlan); //延时总数 |
| | | model.setMsg(state); //61850状态 |
| | | model.setMsgN(binformation.getFbsDeviceId().toString()); |
| | | //System.out.println(model); |
| | | listAll.add(model); |
| | | } |
| | |
| | | for(int i=0;i<list.size();i++){ |
| | | ServiceModelElectri model=new ServiceModelElectri(); |
| | | BattMap_information binformation=list.get(i); |
| | | System.out.println("binformation = " + binformation); |
| | | // System.out.println("binformation = " + binformation); |
| | | int numAlarm=battAlarmDataMapper.serchByStationId(binformation); |
| | | int numBadBatt=badBattMonMapper.serchByStationId(binformation); |
| | | int numPlan=battDischargePlanMapper.serchByStationId(binformation); |
| | | //TODO perry |
| | | model.setData(list.get(i)); |
| | | model.setCode(numAlarm); //告警总数 |
| | | model.setSum(numBadBatt); //落后总数 |
| | |
| | | BattInf binf = list.get(i); |
| | | ServiceModelElectri model = new ServiceModelElectri(); |
| | | model.setCode(binf.getMonCount());//电池组单体个数 |
| | | //TODO perry |
| | | model.setNewsum(binf.getBattGroupId()); |
| | | model.setMsg(binf.getBattGroupName());//电池组名称 |
| | | List<BadBatt_mon> listb = badBattMonMapper.serchMonBad(binf); |