|
@@ -58,12 +58,12 @@ public class CaseFilesServiceImpl extends ServiceImpl<ICaseFilesMapper, CaseFile
|
|
|
public void deleteByCaseId(Integer caseId) {
|
|
|
List<CaseFiles> byCaseId = this.getByCaseId(caseId);
|
|
|
for (CaseFiles files : byCaseId) {
|
|
|
- if(StringUtils.isNotBlank(files.getFilesUrl())){
|
|
|
- String ossPath = files.getFilesUrl().replace(queryPath,"");
|
|
|
- if(uploadToOssUtil.existKey(ossPath)){
|
|
|
- uploadToOssUtil.delete(ossPath);
|
|
|
- }
|
|
|
- }
|
|
|
+// if(StringUtils.isNotBlank(files.getFilesUrl())){
|
|
|
+// String ossPath = files.getFilesUrl().replace(queryPath,"");
|
|
|
+// if(uploadToOssUtil.existKey(ossPath)){
|
|
|
+// uploadToOssUtil.delete(ossPath);
|
|
|
+// }
|
|
|
+// }
|
|
|
this.removeById(files.getFilesId());
|
|
|
}
|
|
|
}
|