代码提交
This commit is contained in:
parent
662f1eecb9
commit
721cfd85ff
|
|
@ -354,10 +354,10 @@ public class FileManagementController extends BaseController {
|
|||
return R.ok(num);
|
||||
}
|
||||
|
||||
@GetMapping("/getFileAsBase64}")
|
||||
public R getFileAsBase64(@PathVariable Long id) throws IOException {
|
||||
@GetMapping("/getFileAsBase64")
|
||||
public R getFileAsBase64(DaKyProFilesContentsDto dto) throws IOException {
|
||||
Map<String, Object> response = new HashMap<>();
|
||||
DaKyProFilesContentsVo record = fileManageService.getFileById(id);
|
||||
DaKyProFilesContentsVo record = fileManageService.getFileById(Long.parseLong(dto.getId()));
|
||||
|
||||
if (record == null || StringUtils.isBlank(record.getFilePath())) {
|
||||
return R.fail("文件未找到");
|
||||
|
|
|
|||
Loading…
Reference in New Issue