| | |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.admin.service.*; |
| | | import com.sandu.ximon.admin.utils.LightemitUtils; |
| | | import com.sandu.ximon.admin.vo.LedScheduleVO; |
| | | import com.sandu.ximon.dao.domain.PoleLightemitEntity; |
| | | import com.sandu.ximon.dao.domain.PoleXixunPlayerEntity; |
| | | import com.sandu.ximon.dao.enums.MenuEnum; |
| | |
| | | return ResponseUtil.success("推送成功"); |
| | | } |
| | | |
| | | //执行中的节目 |
| | | @GetMapping("/getProgram/{lightemitId}") |
| | | public ResponseVO<Object> getProgram(@PathVariable Long lightemitId) { |
| | | return ResponseUtil.success(xiXunPlayerService.getByPid(lightemitId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * LED屏幕新增 |
| | | * |
| | |
| | | throw new BusinessException("LED控制卡编号不能重复"); |
| | | } |
| | | |
| | | poleLightemit.setCreateUserId(SecurityUtils.getClientId()); |
| | | if (SecurityUtils.getClientId() == null) { |
| | | poleLightemit.setClientId(clientService.getClientId()); |
| | | poleLightemit.setUserId(SecurityUtils.getUserId()); |
| | | poleLightemit.setCreateUserId(SecurityUtils.getUserId()); |
| | | } |
| | | |
| | | poleLightemitService.savePoleLightemit(poleLightemit); |
| | | |
| | |
| | | return ResponseUtil.success("设置成功"); |
| | | } |
| | | |
| | | /** |
| | | * 获取执行中的定时 |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @GetMapping("/getPushSchedule") |
| | | public ResponseVO<Object> getPushSchedule(@RequestBody List<Long> ids) { |
| | | if(ids.isEmpty()){ |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | List<LedScheduleVO> list = new ArrayList<>(); |
| | | for(Long id : ids) { |
| | | LedScheduleVO ledScheduleVO = scheduleService.getledschedules(id); |
| | | list.add(ledScheduleVO); |
| | | } |
| | | return ResponseUtil.success(list); |
| | | } |
| | | } |