@@ -60,6 +60,7 @@ public class SeriesServiceImpl implements SeriesService {
60
60
private final StampsCatalogService scottCatalogService ;
61
61
private final StampsCatalogService yvertCatalogService ;
62
62
private final StampsCatalogService gibbonsCatalogService ;
63
+ private final StampsCatalogService solovyovCatalogService ;
63
64
private final StampsCatalogService zagorskiCatalogService ;
64
65
65
66
@ Override
@@ -113,6 +114,10 @@ public Integer add(AddSeriesDto dto, Integer userId, boolean userCanAddComments)
113
114
series .setGibbonsCurrency (Currency .GBP .toString ());
114
115
}
115
116
117
+ if (dto .getSolovyovPrice () != null ) {
118
+ series .setSolovyovPrice (dto .getSolovyovPrice ());
119
+ }
120
+
116
121
if (dto .getZagorskiPrice () != null ) {
117
122
series .setZagorskiPrice (dto .getZagorskiPrice ());
118
123
}
@@ -159,6 +164,12 @@ public Integer add(AddSeriesDto dto, Integer userId, boolean userCanAddComments)
159
164
gibbonsCatalogService .addToSeries (id , gibbonsNumbers );
160
165
}
161
166
167
+ Set <String > solovyovNumbers = CatalogUtils .parseCatalogNumbers (dto .getSolovyovNumbers ());
168
+ if (!solovyovNumbers .isEmpty ()) {
169
+ solovyovCatalogService .add (solovyovNumbers );
170
+ solovyovCatalogService .addToSeries (id , solovyovNumbers );
171
+ }
172
+
162
173
Set <String > zagorskiNumbers = CatalogUtils .parseCatalogNumbers (dto .getZagorskiNumbers ());
163
174
if (!zagorskiNumbers .isEmpty ()) {
164
175
zagorskiCatalogService .add (zagorskiNumbers );
@@ -276,6 +287,7 @@ public SeriesDto findFullInfoById(Integer seriesId, String lang) {
276
287
List <String > scottNumbers = scottCatalogService .findBySeriesId (seriesId );
277
288
List <String > yvertNumbers = yvertCatalogService .findBySeriesId (seriesId );
278
289
List <String > gibbonsNumbers = gibbonsCatalogService .findBySeriesId (seriesId );
290
+ List <String > solovyovNumbers = solovyovCatalogService .findBySeriesId (seriesId );
279
291
List <String > zagorskiNumbers = zagorskiCatalogService .findBySeriesId (seriesId );
280
292
281
293
List <Integer > imageIds = imageService .findBySeriesId (seriesId );
@@ -286,6 +298,7 @@ public SeriesDto findFullInfoById(Integer seriesId, String lang) {
286
298
scottNumbers ,
287
299
yvertNumbers ,
288
300
gibbonsNumbers ,
301
+ solovyovNumbers ,
289
302
zagorskiNumbers ,
290
303
imageIds
291
304
);
0 commit comments