| | |
| | | //private static BatttestdataInfService testInfService; |
| | | |
| | | private static BatttestdataInfService batttestdataInfService; |
| | | |
| | | private static BattRtstateService battRtStateService; |
| | | |
| | | @Autowired |
| | | public void setPowerAlarmService(PwrdevAlarmService powerAlarmService) { |
| | | ScreenForNWKMSocket.powerAlarmService = powerAlarmService; |
| | |
| | | public void setBatttestdataInfService(BatttestdataInfService batttestdataInfService) { |
| | | ScreenForNWKMSocket.batttestdataInfService = batttestdataInfService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setBattRtStateService(BattRtstateService battRtStateService) { |
| | | ScreenForNWKMSocket.battRtStateService = battRtStateService; |
| | | } |
| | | |
| | | @OnOpen |
| | | public void onOpen(Session session, EndpointConfig config){ |
| | | this.session = session; |
| | |
| | | latch.countDown(); |
| | | });*/ |
| | | poolExecutor.execute(()->{ |
| | | //6.统计:实时放电信息 TODO 正在放电的电池信息展示 |
| | | Response res_alarm = new Response(); |
| | | |
| | | res.put("dischargingBattery", res_alarm); |
| | | //6.统计:实时放电信息 正在放电的电池信息展示 |
| | | Response dischargingList = battRtStateService.getDischargingList(userId); |
| | | res.put("dischargingBattery", dischargingList); |
| | | latch.countDown(); |
| | | }); |
| | | poolExecutor.execute(()->{ |