Forráskód Böngészése

试验-规范文件-批量更新时对旧文件进行删除

LHB 2 hónapja
szülő
commit
baa617e3a7

+ 2 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/PrivateStandardServiceImpl.java

@@ -241,7 +241,9 @@ public class PrivateStandardServiceImpl extends ServiceImpl<PrivateStandardMappe
                             for (StandardFile standardFile : standardFiles) {
                                 String pdfName = standardFile.getStandardFileUrl().split("upload")[1];
                                 this.newIOSSClient.removeFile("upload" + pdfName);
+                                standardFile.setIsDeleted(1);
                             }
+                            standardFileService.saveOrUpdateBatch(standardFiles);
                         }
                         MultipartFile file = dto.getFile();
                         StandardFile standardFile = new StandardFile();