商品规格添加商品类型

This commit is contained in:
lifenlong 2021-06-09 17:39:57 +08:00
parent cf4f9dd6bc
commit 19ae44f851
2 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,11 @@ public class GoodsSku extends BaseEntity {
@ApiModelProperty(value = "销售模式", required = true)
private String salesModel;
/**
* @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
*/
@ApiModelProperty(value = "商品类型", required = true)
private String goodsType;
@Override
public Date getUpdateTime() {

View File

@ -490,6 +490,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
if (goods.getSelfOperated() != null) {
goodsSku.setSelfOperated(goods.getSelfOperated());
}
goodsSku.setGoodsType(goods.getGoodsType());
EsGoodsIndex goodsIndex = (EsGoodsIndex) resultMap.get("goodsIndex");
skus.add(goodsSku);
goodsIndices.add(goodsIndex);