| | |
| | | |
| | | /** |
| | | * 获取执行中的定时 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @GetMapping("/getPushSchedule") |
| | | public ResponseVO<Object> getPushSchedule(@RequestBody List<Long> ids) { |
| | | if(ids.isEmpty()){ |
| | | if (ids.isEmpty()) { |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | List<LedScheduleVO> list = new ArrayList<>(); |
| | | for(Long id : ids) { |
| | | for (Long id : ids) { |
| | | LedScheduleVO ledScheduleVO = scheduleService.getledschedules(id); |
| | | list.add(ledScheduleVO); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/closeWeatherPush/{id}") |
| | | public ResponseVO<Object> closeWeatherPush(@PathVariable Long id) { |
| | | if(id==null){ |
| | | if (id == null) { |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | SpringContextHolder.getBean(PoleService.class).closeXiXunAirPush(id); |
| | |
| | | * 清屏操作 |
| | | */ |
| | | @GetMapping("/clearScreen") |
| | | public ResponseVO<Object> clearScreen(@RequestBody List<String> codes) { |
| | | |
| | | if(codes.isEmpty()){ |
| | | public ResponseVO<Object> clearScreen(@RequestBody List<Long> ids) { |
| | | List<PoleLightemitEntity> list = poleLightemitService.listByIds(ids); |
| | | if (ids.isEmpty() && list.isEmpty()) { |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | for(String playerId : codes) { |
| | | lightemitUtils.clear(playerId); |
| | | for (PoleLightemitEntity playerId : list) { |
| | | lightemitUtils.clear(playerId.getLightemitControlCode()); |
| | | } |
| | | return ResponseUtil.success("清屏成功"); |
| | | } |