解决发现的问题
This commit is contained in:
parent
da77309df6
commit
5dfd2c6800
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue