|
@@ -200,10 +200,12 @@ public class PrivateStandardServiceImpl extends ServiceImpl<PrivateStandardMappe
|
|
|
BladeUser user = SecureUtil.getUser();
|
|
|
//先删除文件
|
|
|
try {
|
|
|
- List<StandardFile> standardFiles = standardFileService.listByIds(delFileIds);
|
|
|
- if(CollectionUtils.isNotEmpty(standardFiles)){
|
|
|
- for (StandardFile standardFile : standardFiles) {
|
|
|
- this.deleteFile(standardFile.getId());
|
|
|
+ if(CollectionUtils.isNotEmpty(delFileIds)){
|
|
|
+ List<StandardFile> standardFiles = standardFileService.listByIds(delFileIds);
|
|
|
+ if(CollectionUtils.isNotEmpty(standardFiles)){
|
|
|
+ for (StandardFile standardFile : standardFiles) {
|
|
|
+ this.deleteFile(standardFile.getId());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//删除规范文件
|
|
@@ -213,6 +215,7 @@ public class PrivateStandardServiceImpl extends ServiceImpl<PrivateStandardMappe
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
throw new ServiceException("Oss删除文件失败");
|
|
|
}
|
|
|
try {
|