|
@@ -214,6 +214,15 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
|
|
|
return shareProductVo;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<Long, String> queryNameMap(List<Long> goodsIds) {
|
|
|
+ PmsProductExample example = new PmsProductExample();
|
|
|
+ PmsProductExample.Criteria criteria = example.createCriteria();
|
|
|
+ criteria.andIdIn(goodsIds);
|
|
|
+ List<PmsProduct> goodsList = productMapper.selectByExample(example);
|
|
|
+ return goodsList.stream().collect(Collectors.toMap(PmsProduct::getId, PmsProduct::getName));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private List<PmsProductAttributeCategory> getHomeProductAttributeCategory() {
|
|
|
PmsProductAttributeCategoryExample example = new PmsProductAttributeCategoryExample();
|