|
|
|
@ -235,7 +235,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
|
|
map.put("name", goods.getName());
|
|
|
|
|
map.put("countPrice", goods.getCounterPrice());
|
|
|
|
|
map.put("retailPrice", goods.getRetailPrice());
|
|
|
|
|
map.put("keyword", goods.getKeywords().split(","));
|
|
|
|
|
map.put("keyword", Objects.isNull(goods.getKeywords()) ? Collections.emptyList() : goods.getKeywords().split(","));
|
|
|
|
|
map.put("isOnSale", goods.getIsOnSale());
|
|
|
|
|
elasticEntity.setData(map);
|
|
|
|
|
boolean one = baseElasticService.insertOrUpdateOne(SysConstants.ES_GOODS_INDEX, elasticEntity);
|
|
|
|
|