| | |
| | | return programPro; |
| | | } |
| | | |
| | | |
| | | |
| | | // public Object getProgram(String json) { |
| | | //// PoleXixunPlayerEntity byId = getById(pid); |
| | | // List<Long> fileIds = new ArrayList<>(); |
| | | // List<LedSFile> file = new ArrayList<>(); |
| | | // if (json == null) { |
| | | // throw new BusinessException("未找到该节目"); |
| | | // } |
| | | // ProgramPro programPro = new ProgramPro(); |
| | | // try { |
| | | // programPro = JsonUtil.convertJsonStringToObject(json, ProgramPro.class); |
| | | // programPro.setProgramId(pid); |
| | | // programPro.setScreenShot(byId.getScreenShot()); |
| | | // programPro.getLayers().forEach( |
| | | // layerPro -> { |
| | | // layerPro.getSources().forEach( |
| | | // sourcePro -> { |
| | | // long fileId = Long.parseLong(sourcePro.getId()); |
| | | // file.add(xiXunFileService.getById(fileId)); |
| | | // } |
| | | // ); |
| | | // } |
| | | // ); |
| | | // programPro.setFileList(file); |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | // return programPro; |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 推送节目 |
| | | * |