| | |
| | | } |
| | | //获取电源界面信息 |
| | | private Response getPowerPage(RealTimeDto realDto) { |
| | | return new Response().set(1); |
| | | Map<String, Object> map=new HashMap<>(); |
| | | try { |
| | | //实时获取电源信息 |
| | | PwrdevAcdcdata pwrdevAcdcdata = pwrdevAcdcdataService.getPwrRealInfo(realDto.getPowerId()); |
| | | map.put("pwrdevAcdcdata",pwrdevAcdcdata); |
| | | return new Response().setII(1,true,map,"电源界面信息推送"); |
| | | }catch (Exception e){ |
| | | return new Response().set(1,false,"电源界面信息推送"); |
| | | } |
| | | } |
| | | //获取系统概述界面信息 |
| | | private Response getSystemPage(RealTimeDto realDto) { |
| | | Map<String, Object> map=new HashMap<>(); |
| | | try { |
| | | //实时获取电池组信息 |
| | | BattRtstate battRtstate = battRtstateService.getBattRealInfo(realDto.getBattgroupId()); |
| | | map.put("battRtstate",battRtstate); |
| | | //实时获取设备信息 |
| | | DeviceState deviceState = deviceStateService.getDevRealInfo(realDto.getDevId()); |
| | | map.put("deviceState",deviceState); |
| | | //获取上一次标准核容信息 |
| | | BatttestdataInf tinfData= batttestdataInfService.getLastStandardTestData(realDto.getBattgroupId()); |
| | | map.put("tinfData",tinfData); |
| | | //获取近半小时电源数据 |
| | | //获取近半小时整流器数据 |
| | | //获取近半小时核容设备数据 |
| | | return new Response().setII(1,true,map,"系统概述推送"); |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return new Response().set(1); |
| | | return new Response().set(1,false,"系统概述推送"); |
| | | } |
| | | |
| | | @OnClose |