| | |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.common.util.SpringContextHolder; |
| | | import com.sandu.ximon.admin.entity.ProgramPro; |
| | | import com.sandu.ximon.admin.param.LEDScheduleParam_xixun; |
| | | import com.sandu.ximon.admin.param.SetBrightnessParam; |
| | |
| | | } |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 关闭天气推送 |
| | | */ |
| | | @GetMapping("/closeWeatherPush/{id}") |
| | | public ResponseVO<Object> closeWeatherPush(@PathVariable Long id) { |
| | | if(id==null){ |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | SpringContextHolder.getBean(PoleService.class).closeXiXunAirPush(id); |
| | | return ResponseUtil.success("关闭成功"); |
| | | } |
| | | |
| | | /** |
| | | * 清屏操作 |
| | | */ |
| | | @GetMapping("/clearScreen") |
| | | public ResponseVO<Object> clearScreen(@RequestBody List<String> codes) { |
| | | |
| | | if(codes.isEmpty()){ |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | for(String playerId : codes) { |
| | | lightemitUtils.clear(playerId); |
| | | } |
| | | return ResponseUtil.success("清屏成功"); |
| | | } |
| | | } |