| | |
| | | checkProgram(genrateProgram); |
| | | //发布节目 |
| | | List<TrasfromStatusVO> trasfromStatusVOS = new ArrayList<>(); |
| | | if (!programPrarm.getSnList().isEmpty()) { |
| | | if (programPrarm.getFileIds().size() > 0) { |
| | | Map<String, String> proFile = getProFile(programPrarm); |
| | | programPrarm.setFileMap(proFile); |
| | | trasfromStatusVOS = instanceUtil.trasfromProgram(programPrarm); |
| | | } |
| | | trasfromStatusVOS = instanceUtil.trasfromProgram(programPrarm); |
| | | newNovaProgram.setUserId(SecurityUtils.getUserId()); |
| | | saveOrUpdate(newNovaProgram); |
| | | fileRelationService.saveRelation(newNovaProgram.getId(), programPrarm.getFileIds()); |
| | |
| | | throw new BusinessException("不能操作不属于你的节目"); |
| | | } |
| | | } |
| | | File file = new File(filePathConfig.getOutPutPath() + "/program" + newNovaProgram.getPid()); |
| | | deleteFile(file); |
| | | // File file = new File(filePathConfig.getOutPutPath() + "/program" + newNovaProgram.getPid()); |
| | | // deleteFile(file); |
| | | }); |
| | | return removeByIds(pids); |
| | | } |