修改对外报告删除同时删除cos文件
This commit is contained in:
+4
-2
@@ -220,10 +220,12 @@ public class ExtRepoDataController extends JeroController<ExtRepoData, IExtRepoD
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.extRepoDataService.deleteByIds(idsList);
|
|
||||||
for (String id : idsList) {
|
for (String id : idsList) {
|
||||||
ExtRepoData erd = extRepoDataService.queryById(id);
|
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)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
return Result.OK("删除成功!");
|
return Result.OK("删除成功!");
|
||||||
|
|||||||
Reference in New Issue
Block a user