mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
fix(测试跟踪): 回收站删除用例报错
This commit is contained in:
parent
33f0719090
commit
9b39bfadc9
@ -194,6 +194,9 @@ public class MdFileService {
|
||||
* @param resourceIds
|
||||
*/
|
||||
public void deleteBySourceIds(List<String> resourceIds) {
|
||||
if (CollectionUtils.isEmpty(resourceIds)) {
|
||||
return;
|
||||
}
|
||||
// 查询文件是否被其他资源引用
|
||||
List<FileAssociation> deleteFileAssociations = fileAssociationService.getByResourceIds(resourceIds);
|
||||
List<String> fileNames = deleteFileAssociations.stream().map(FileAssociation::getFileMetadataId).toList();
|
||||
|
Loading…
Reference in New Issue
Block a user