peng
2 天以前 40d3bb9fe638a0bd79e829e7fd5114871101390b
framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java
@@ -5,6 +5,7 @@
import cn.lili.elasticsearch.EsSuffix;
import cn.lili.modules.goods.entity.dos.GoodsSku;
import cn.lili.modules.goods.entity.dto.GoodsParamsDTO;
import cn.lili.modules.order.order.entity.enums.CustomizeFlagEnum;
import cn.lili.modules.promotion.tools.PromotionTools;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
@@ -299,6 +300,13 @@
    @Field(type = FieldType.Long)
    private Integer goodsSort;
    @ApiModelProperty(value = "定制商品")
    @Field(type = FieldType.Text)
    /**
     * @see CustomizeFlagEnum
     */
    private String customizeFlag;
    public EsGoodsIndex(GoodsSku sku) {
        if (sku != null) {
            this.id = sku.getId();
@@ -327,6 +335,7 @@
            this.recommend = sku.getRecommend();
            this.goodsType = sku.getGoodsType();
            this.releaseTime = new Date().getTime();
            this.customizeFlag = sku.getCustomizeFlag();
        }
    }
@@ -397,6 +406,7 @@
            this.intro = sku.getIntro();
            this.grade = sku.getGrade();
            this.releaseTime = new Date().getTime();
            this.customizeFlag = sku.getCustomizeFlag();
        }
    }