Commit 81bf8cf5 authored by tangwei's avatar tangwei

修改bug

parent 4eded1bb
...@@ -76,11 +76,18 @@ public class SourceFileServiceImpl extends BaseService<SourceFileDto, SourceFile ...@@ -76,11 +76,18 @@ public class SourceFileServiceImpl extends BaseService<SourceFileDto, SourceFile
if (CollectionUtils.isEmpty(sourceFiles)) { if (CollectionUtils.isEmpty(sourceFiles)) {
return new ArrayList<>(); return new ArrayList<>();
} }
sourceFiles.forEach(s -> {
s.setSourceId(sourceId); // sourceFiles.forEach(s -> {
}); // s.setSourceId(sourceId);
boolean flag = this.saveOrUpdateBatch(sourceFiles); // this.saveOrUpdate(s);
return flag ? sourceFiles : Collections.EMPTY_LIST; // });
boolean flag =false;
for (SourceFile sourceFile : sourceFiles) {
sourceFile.setSourceId(sourceId);
flag =this.saveOrUpdate(sourceFile);
}
// boolean flag = this.saveOrUpdate(sourceFiles);
return false ? sourceFiles : Collections.EMPTY_LIST;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment