修改对外报告删除同时删除cos文件

This commit is contained in:
gaosong
2022-08-01 11:17:56 +08:00
parent 3ebbee7b59
commit ad433b5e80
@@ -220,10 +220,12 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
}
}
}
this.extRepoDataService.deleteByIds(idsList);
for (String id : idsList) {
ExtRepoData erd = extRepoDataService.queryById(id);
CosBootUtil.delete(erd.getFileKey());
if(null!=erd){
CosBootUtil.delete(erd.getFileKey());
this.extRepoDataService.deleteById(id);
}
}
if (CutEnum.CN.getValue().equals(cut)) {
return Result.OK("删除成功!");