Showing
1 changed file
with
2 additions
and
0 deletions
@@ -99,12 +99,14 @@ public class ProductHelpService { | @@ -99,12 +99,14 @@ public class ProductHelpService { | ||
99 | public ProductHelpService setBrand(ProductInfo productInfo, Integer brandId) { | 99 | public ProductHelpService setBrand(ProductInfo productInfo, Integer brandId) { |
100 | String brandName = Optional.ofNullable(brandId).map(brandCacheService::queryByBrandId).map(Brand::getBrandName).orElse(""); | 100 | String brandName = Optional.ofNullable(brandId).map(brandCacheService::queryByBrandId).map(Brand::getBrandName).orElse(""); |
101 | productInfo.setBrandName(brandName); | 101 | productInfo.setBrandName(brandName); |
102 | + productInfo.setBrandId(brandId); | ||
102 | return this; | 103 | return this; |
103 | } | 104 | } |
104 | 105 | ||
105 | public ProductHelpService setSeries(ProductInfo productInfo, Integer seriesId) { | 106 | public ProductHelpService setSeries(ProductInfo productInfo, Integer seriesId) { |
106 | String brandSeriesName = Optional.ofNullable(seriesId).map(brandSeriesCacheService::queryByBrandSeriesId).map(BrandSeries::getSeriesName).orElse(""); | 107 | String brandSeriesName = Optional.ofNullable(seriesId).map(brandSeriesCacheService::queryByBrandSeriesId).map(BrandSeries::getSeriesName).orElse(""); |
107 | productInfo.setSeriesName(brandSeriesName); | 108 | productInfo.setSeriesName(brandSeriesName); |
109 | + productInfo.setSeriesId(seriesId); | ||
108 | return this; | 110 | return this; |
109 | } | 111 | } |
110 | 112 |
-
Please register or login to post a comment