public Flux<PortCall> updateByFindById(String gsisKey, PortCall portCall) {
return portCallRepository.findAllByVesselCode(portCall.getVesselCode())
.collectList().flatMap(list->{
return portCallRepository.saveAll(Flux.fromIterable(list));
});
}
在这里,我试图调用 SimpleReactiveMongoRepository 的 saveAll() 即 public Flux saveAll(Iterable entity)