| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | | * @Date 2022/1/13 17:02 |
| | |
| | | if (!permissionConfig.check(MenuEnum.LED_FILE_S_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | LambdaQueryWrapper<LedSFile> wrapper = ledProgramFileService.listFile(); |
| | | if (keyword != null && !keyword.isEmpty()) { |
| | | wrapper.like(LedSFile::getOriginName, keyword); |
| | | } |
| | | |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | return ResponseUtil.success(ledProgramFileService.list(wrapper)); |
| | | List<LedSFile> listfile = ledProgramFileService.listfile(baseConditionVO, keyword); |
| | | return ResponseUtil.success(listfile); |
| | | } |
| | | |
| | | @PostMapping("/uploading/{dateType}") |
| | |
| | | /** |
| | | * 文件上传 日志记录开始 |
| | | */ |
| | | String content = "文件内容:"+ JSON.toJSONString(fileUploadDto); |
| | | String content = "文件内容:" + JSON.toJSONString(fileUploadDto); |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "文件上传", content); |
| | | /** |
| | | * 文件上传 日志记录结束 |