| | |
| | | import com.sandu.ximon.admin.service.ClientService; |
| | | import com.sandu.ximon.admin.service.PoleLightemitService; |
| | | import com.sandu.ximon.admin.service.XiXunPlayerService; |
| | | import com.sandu.ximon.admin.utils.LightemitUtils; |
| | | import com.sandu.ximon.dao.domain.LedPlayerEntity; |
| | | import com.sandu.ximon.dao.domain.PlayPlanNv; |
| | | import com.sandu.ximon.dao.domain.PoleLightemitEntity; |
| | |
| | | private final XiXunPlayerService xiXunPlayerService; |
| | | private final ClientService clientService; |
| | | private final PoleLightemitService poleLightemitService; |
| | | private final LightemitUtils lightemitUtils; |
| | | |
| | | @PostMapping("/addProgram") |
| | | public ResponseVO<Object> addProgram(@RequestBody ProgramPro programPro){ |
| | |
| | | } |
| | | return ResponseUtil.success(poleLightemitService.list(wrapper)); |
| | | } |
| | | |
| | | /* |
| | | 获取led实时画面 |
| | | */ |
| | | @GetMapping("/getPicture/{id}") |
| | | public ResponseVO<Object> getPicture(@PathVariable Long id){ |
| | | if(id == null){ |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | PoleLightemitEntity poleLightemitEntity = poleLightemitService.getById(id); |
| | | if(poleLightemitEntity != null){ |
| | | String result = lightemitUtils.getPicture(poleLightemitEntity.getLightemitControlCode()); |
| | | return ResponseUtil.success(result); |
| | | }else { |
| | | throw new BusinessException("未选择LED屏"); |
| | | } |
| | | } |
| | | } |