| | |
| | | package com.yeshi.fanli.entity.order;
|
| | |
|
| | | import org.springframework.data.elasticsearch.annotations.Document;
|
| | | import org.springframework.data.elasticsearch.annotations.Field;
|
| | | import org.springframework.data.elasticsearch.annotations.FieldType;
|
| | | import org.yeshi.utils.elasticsearch.Document;
|
| | |
|
| | | /**
|
| | | * index:是否设置索引, store是否存储数据,type:数据类型,analyzer:分词粒度选择,searchAnalyzer:查询进行分词处理
|
| | |
| | | * @author Derlin
|
| | | *
|
| | | */
|
| | | @Document(indexName = "order", type = "doc")
|
| | | @Document(indexName = "order")
|
| | | public class ESOrder {
|
| | |
|
| | | // 订单相关uid
|
| | | @Field(index=true, store = true, type = FieldType.Long)
|
| | | private Long uid;
|
| | | // 上级直接uid
|
| | | @Field(index=true, store = true, type = FieldType.Long)
|
| | | private Long uidDirect;
|
| | | // 上 上级直接uid
|
| | | @Field(index=true, store = true, type = FieldType.Long)
|
| | | private Long uidIndirect;
|
| | | // 商品名称
|
| | | @Field(index=true, store = true, type = FieldType.Text)
|
| | | private String goodsName;
|
| | | // 订单号
|
| | | @Field(index=true, store = true, type = FieldType.Text)
|
| | | private String orderNo;
|
| | | // 交易id
|
| | | @Field(index=true, store = true, type = FieldType.Text)
|
| | | private String tradeId;
|
| | | // 交易平台
|
| | | @Field(index=true, store = true, type = FieldType.Integer)
|
| | | // 交易平台 (1淘宝 2京东 3拼多多)
|
| | | private Integer platform;
|
| | |
|
| | |
|