From ad9751046d07546724ca76447898895b19d63158 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 10 十月 2025 14:59:04 +0800
Subject: [PATCH] 处理es

---
 framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java |   13 ++++++++++++-
 1 files changed, 12 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 acb53be..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,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;
@@ -293,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) {
@@ -326,6 +335,7 @@
             this.recommend = sku.getRecommend();
             this.goodsType = sku.getGoodsType();
             this.releaseTime = new Date().getTime();
+            this.customizeFlag = sku.getCustomizeFlag();
         }
     }
 
@@ -396,6 +406,7 @@
             this.intro = sku.getIntro();
             this.grade = sku.getGrade();
             this.releaseTime = new Date().getTime();
+            this.customizeFlag = sku.getCustomizeFlag();
         }
     }
 

--
Gitblit v1.8.0