fix(回收站): 回收站文件删除异常处理
This commit is contained in:
parent
07eac3006e
commit
e878179351
@ -65,9 +65,11 @@ public class RecoveryFileController {
|
|||||||
for (RecoveryFile recoveryFile : recoveryFileList) {
|
for (RecoveryFile recoveryFile : recoveryFileList) {
|
||||||
RecoveryFile recoveryFile1 = recoveryFileService.getById(recoveryFile.getRecoveryFileId());
|
RecoveryFile recoveryFile1 = recoveryFileService.getById(recoveryFile.getRecoveryFileId());
|
||||||
|
|
||||||
|
if (recoveryFile1 != null) {
|
||||||
asyncTaskComp.deleteUserFile(recoveryFile1.getUserFileId());
|
asyncTaskComp.deleteUserFile(recoveryFile1.getUserFileId());
|
||||||
|
|
||||||
recoveryFileService.removeById(recoveryFile1.getRecoveryFileId());
|
recoveryFileService.removeById(recoveryFile1.getRecoveryFileId());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return RestResult.success().data("批量删除成功");
|
return RestResult.success().data("批量删除成功");
|
||||||
|
Loading…
Reference in New Issue
Block a user