| | |
| | | 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; |
| | |
| | | * @see PromotionTypeEnum |
| | | * value 为 促销活动实体信息 |
| | | */ |
| | | @Field(type = FieldType.Text) |
| | | @ApiModelProperty("商品促销活动集合JSON,key 为 促销活动类型,value 为 促销活动实体信息 ") |
| | | private String promotionMapJson; |
| | | @ApiModelProperty(value = "商品排序") |
| | | @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.recommend = sku.getRecommend(); |
| | | this.goodsType = sku.getGoodsType(); |
| | | this.releaseTime = new Date().getTime(); |
| | | this.customizeFlag = sku.getCustomizeFlag(); |
| | | } |
| | | } |
| | | |
| | |
| | | this.intro = sku.getIntro(); |
| | | this.grade = sku.getGrade(); |
| | | this.releaseTime = new Date().getTime(); |
| | | this.customizeFlag = sku.getCustomizeFlag(); |
| | | } |
| | | } |
| | | |