peng
2025-10-10 ad9751046d07546724ca76447898895b19d63158
处理es
3个文件已修改
21 ■■■■■ 已修改文件
framework/src/main/java/cn/lili/elasticsearch/BaseElasticsearchService.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/goods/entity/dos/GoodsSku.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/search/entity/dos/EsGoodsIndex.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/elasticsearch/BaseElasticsearchService.java
@@ -277,6 +277,15 @@
                        "          }\n" +
                        "        }\n" +
                        "      },\n" +
                        "      \"customizeFlag\": {\n" +
                        "        \"type\": \"text\",\n" +
                        "        \"fields\": {\n" +
                        "          \"keyword\": {\n" +
                        "            \"type\": \"keyword\",\n" +
                        "            \"ignore_above\": 256\n" +
                        "          }\n" +
                        "        }\n" +
                        "      },\n" +
                        "      \"point\": {\n" +
                        "        \"type\": \"long\"\n" +
                        "      },\n" +
framework/src/main/java/cn/lili/modules/goods/entity/dos/GoodsSku.java
@@ -183,7 +183,7 @@
    @ApiModelProperty(value ="定制模板名称")
    private String customizeTemplateName;
    @ApiModelProperty(value ="表示虚拟定制商品类型 现有类型:定制商品")
    @ApiModelProperty(value ="定制商品")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    /**
     * @see CustomizeFlagEnum
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();
        }
    }