解决发现的问题

This commit is contained in:
chenxudong 2025-01-14 14:56:21 +08:00
parent da77309df6
commit 5dfd2c6800
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ public class EdFileInfoController {
return edFileInfoService.checkChunkExist(fileChunkDTO); return edFileInfoService.checkChunkExist(fileChunkDTO);
} }
@RequiredPermission(value = FilePermission.VIEW) // @RequiredPermission(value = FilePermission.VIEW)
@RequestMapping(value = "/uploadRecord", method = RequestMethod.GET) @RequestMapping(value = "/uploadRecord", method = RequestMethod.GET)
public ElectromagneticResult<?> uploadRecord(@RequestParam int pageNum, @RequestParam int pageSize) { public ElectromagneticResult<?> uploadRecord(@RequestParam int pageNum, @RequestParam int pageSize) {
return edFileInfoService.uploadRecord(pageNum, pageSize); return edFileInfoService.uploadRecord(pageNum, pageSize);

View File

@ -1168,7 +1168,7 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
if (file == null) { if (file == null) {
throw new IllegalArgumentException("此ID未查询到文件"+id); throw new IllegalArgumentException("此ID未查询到文件"+id);
} }
if(file.getFileCode().length()<6){ if(file.getId().length()<6){
throw new StringIndexOutOfBoundsException("此文件的FILE_CODE小于六位"+id); throw new StringIndexOutOfBoundsException("此文件的FILE_CODE小于六位"+id);
} }
return file.getFileCode().substring(0, 6); return file.getFileCode().substring(0, 6);