| | |
| | | private final LedSFileMapper ledSFileMapper; |
| | | private final AliOssFileServiceImpl aliOssFileService; |
| | | private final FileOperationRecordService fileOperationRecordService; |
| | | private final ClientService clientService; |
| | | |
| | | public boolean addProgramFile(MultipartFile file) { |
| | | FileUploadDto fileUploadDto = aliOssFileService.uploadFile(file); |
| | |
| | | BeanUtils.copyProperties(fileUploadDto, sFile); |
| | | sFile.setCilentId(SecurityUtils.getClientId()); |
| | | if (SecurityUtils.getClientId() != null) { |
| | | sFile.setUserId(SecurityUtils.getUserId()); |
| | | sFile.setUserName(SecurityUtils.getUsername()); |
| | | if (clientService.findClientId()) { |
| | | sFile.setCilentId(clientService.getClientId()); |
| | | } |
| | | } |
| | | // save(sFile); |
| | | return save(sFile); |
| | | // return fileUploadDto; |
| | | } |
| | | |
| | | public boolean deleteFile(Long id) { |