| | |
| | | |
| | | /** |
| | | * 获取执行中的定时 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | |
| | | * 清屏操作 |
| | | */ |
| | | @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("清屏成功"); |
| | | } |