|
|
@@ -557,7 +557,7 @@ public class MaterialManagementImpl implements MaterialManagementInterface {
|
|
|
template.insert(albumItem)
|
|
|
//albumItemRepository.save(new AlbumItem(null, item.getUrl(), item.getStatus()))
|
|
|
.flatMap(f->{
|
|
|
- return albumItemInterface.saveMysqlAndRedisCache(f)
|
|
|
+ return albumItemInterface.saveMysqlAndRedisCache(f.id(),f)
|
|
|
.onErrorResume(throwable ->
|
|
|
Mono.error(new BaseException("cache-"+throwable.getMessage()+"------"+f.id())));
|
|
|
});
|
|
|
@@ -594,7 +594,9 @@ public class MaterialManagementImpl implements MaterialManagementInterface {
|
|
|
}
|
|
|
return then.then(Flux.fromIterable(list).flatMap(item -> albumItemRepository
|
|
|
.save(new AlbumItem(null, item.getUrl(), item.getStatus()))
|
|
|
- .flatMap(albumItemInterface::saveMysqlAndRedisCache))
|
|
|
+ .flatMap(f->{
|
|
|
+ return albumItemInterface.saveMysqlAndRedisCache(f.id(),f);
|
|
|
+ }))
|
|
|
.collectList().switchIfEmpty(Mono.just(List.of()))
|
|
|
.flatMap(items -> {
|
|
|
Album albumNew = new Album(albumReq.getAlbumId(),
|