...
|
...
|
@@ -99,12 +99,14 @@ public class ProductHelpService { |
|
|
public ProductHelpService setBrand(ProductInfo productInfo, Integer brandId) {
|
|
|
String brandName = Optional.ofNullable(brandId).map(brandCacheService::queryByBrandId).map(Brand::getBrandName).orElse("");
|
|
|
productInfo.setBrandName(brandName);
|
|
|
productInfo.setBrandId(brandId);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
public ProductHelpService setSeries(ProductInfo productInfo, Integer seriesId) {
|
|
|
String brandSeriesName = Optional.ofNullable(seriesId).map(brandSeriesCacheService::queryByBrandSeriesId).map(BrandSeries::getSeriesName).orElse("");
|
|
|
productInfo.setSeriesName(brandSeriesName);
|
|
|
productInfo.setSeriesId(seriesId);
|
|
|
return this;
|
|
|
}
|
|
|
|
...
|
...
|
|