| | |
| | | public boolean addProgramFile(LEDProgramFileParam param) { |
| | | LEDProgramFile file = new LEDProgramFile(); |
| | | BeanUtils.copyProperties(param, file); |
| | | file.setUserId(SecurityUtils.getClientId()); |
| | | if (SecurityUtils.getClientId() != null) { |
| | | file.setUserId(SecurityUtils.getUserId()); |
| | | file.setUserName(SecurityUtils.getUsername()); |
| | | if (clientService.findClientId()) { |
| | | file.setClientId(clientService.getClientId()); |
| | | } |
| | | } |
| | | // if("mp4".equals(fileUploadDto.getFileType())){ |
| | | // fileUploadDto.setScreenShot(fileUploadDto.getFileUrl()+"?x-oss-process=video/snapshot,t_10000,m_fast"); |
| | | // } |
| | | return save(file); |
| | | } |
| | | |