From 18a9f86a8c1fdb6c42c4212dcaa1de437f6f4861 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 15 十月 2025 14:25:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/user_action' into user_action
---
framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java b/framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java
index 493f594..a2cf7b6 100644
--- a/framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java
+++ b/framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java
@@ -5,7 +5,10 @@
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;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@@ -15,6 +18,7 @@
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
+import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.ArrayList;
@@ -271,6 +275,18 @@
@Field(type = FieldType.Nested)
private List<EsGoodsAttribute> attrList;
+
+ @ApiModelProperty(value = "棰勫敭缁撴潫鏃堕棿")
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Field(type = FieldType.Date)
+ private Date preSaleEndDate;
+
+ @ApiModelProperty(value = "棰勫敭寮�濮嬫椂闂�")
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Field(type = FieldType.Date)
+ private Date preSaleBeginDate;
/**
* 鍟嗗搧淇冮攢娲诲姩闆嗗悎
* key 涓� 淇冮攢娲诲姩绫诲瀷
@@ -278,10 +294,18 @@
* @see PromotionTypeEnum
* value 涓� 淇冮攢娲诲姩瀹炰綋淇℃伅
*/
- @Field(type = FieldType.Text)
@ApiModelProperty("鍟嗗搧淇冮攢娲诲姩闆嗗悎JSON锛宬ey 涓� 淇冮攢娲诲姩绫诲瀷锛寁alue 涓� 淇冮攢娲诲姩瀹炰綋淇℃伅 ")
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) {
@@ -311,6 +335,7 @@
this.recommend = sku.getRecommend();
this.goodsType = sku.getGoodsType();
this.releaseTime = new Date().getTime();
+ this.customizeFlag = sku.getCustomizeFlag();
}
}
@@ -381,6 +406,7 @@
this.intro = sku.getIntro();
this.grade = sku.getGrade();
this.releaseTime = new Date().getTime();
+ this.customizeFlag = sku.getCustomizeFlag();
}
}
--
Gitblit v1.8.0