| | |
| | | if (!permissionConfig.check(MenuEnum.LED_FILE_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | LambdaQueryWrapper<LedSFile> wrapper = ledProgramFileService.listFile(); |
| | | if (null != keyword) { |
| | | if (!keyword.isEmpty()) { |
| | | wrapper.like(LedSFile::getOriginName, keyword); |
| | | } |
| | | |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | return ResponseUtil.success(ledProgramFileService.list(wrapper)); |
| | | } |
| | | |
| | | @PostMapping("/uploading/{dateType}") |
| | | public ResponseVO<Object> uploadingFile(@RequestParam("file") MultipartFile file,@PathVariable Integer dateType) { |
| | | public ResponseVO<Object> uploadingFile(@RequestParam("file") MultipartFile file, @PathVariable Integer dateType) { |
| | | FileUploadDto fileUploadDto = aliOssFileService.uploadFile(file); |
| | | if("mp4".equals(fileUploadDto.getFileType())){ |
| | | fileUploadDto.setScreenShot(fileUploadDto.getFileUrl()+"?x-oss-process=video/snapshot,t_10000,m_fast"); |
| | | if ("mp4".equals(fileUploadDto.getFileType())) { |
| | | fileUploadDto.setScreenShot(fileUploadDto.getFileUrl() + "?x-oss-process=video/snapshot,t_10000,m_fast"); |
| | | } |
| | | FileOperationRecord fileOperationRecord = new FileOperationRecord(); |
| | | // if("mp4".equals(fileUploadDto.getFileType())){ |