| | |
| | | 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;
|
| | |
|
| | | /**
|
| | | * index:是否设置索引, store是否存储数据,type:数据类型,analyzer:分词粒度选择,searchAnalyzer:查询进行分词处理
|
| | | * ik_smart:进行最小粒度分词,ik_max_word进行最大粒度分词
|
| | | * @author Derlin
|
| | | *
|
| | | */
|
| | | @Document(indexName = "order", type = "doc")
|
| | | 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;
|
| | | // 交易平台 (1淘宝 2京东 3拼多多)
|
| | | @Field(index=true, store = true, type = FieldType.Integer)
|
| | | private Integer platform;
|
| | | |
| | | |
| | |
|
| | | public Long getUid() {
|
| | | return uid;
|
| | | }
|
| | |
|
| | | public void setUid(Long uid) {
|
| | | this.uid = uid;
|
| | | }
|
| | |
|
| | | public Long getUidDirect() {
|
| | | return uidDirect;
|
| | | }
|
| | |
|
| | | public void setUidDirect(Long uidDirect) {
|
| | | this.uidDirect = uidDirect;
|
| | | }
|
| | |
|
| | | public Long getUidIndirect() {
|
| | | return uidIndirect;
|
| | | }
|
| | |
|
| | | public void setUidIndirect(Long uidIndirect) {
|
| | | this.uidIndirect = uidIndirect;
|
| | | }
|
| | |
|
| | | public String getGoodsName() {
|
| | | return goodsName;
|
| | | }
|
| | |
|
| | | public void setGoodsName(String goodsName) {
|
| | | this.goodsName = goodsName;
|
| | | }
|
| | |
|
| | | public String getOrderNo() {
|
| | | return orderNo;
|
| | | }
|
| | |
|
| | | public void setOrderNo(String orderNo) {
|
| | | this.orderNo = orderNo;
|
| | | }
|
| | |
|
| | | public String getTradeId() {
|
| | | return tradeId;
|
| | | }
|
| | |
|
| | | public void setTradeId(String tradeId) {
|
| | | this.tradeId = tradeId;
|
| | | }
|
| | |
|
| | | public Integer getPlatform() {
|
| | | return platform;
|
| | | }
|
| | |
|
| | | public void setPlatform(Integer platform) {
|
| | | this.platform = platform;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.entity.order; |
| | | |
| | | import org.yeshi.utils.elasticsearch.Document; |
| | | |
| | | /** |
| | | * index:是否设置索引, store是否存储数据,type:数据类型,analyzer:分词粒度选择,searchAnalyzer:查询进行分词处理 |
| | | * ik_smart:进行最小粒度分词,ik_max_word进行最大粒度分词 |
| | | * @author Derlin |
| | | * |
| | | */ |
| | | @Document(indexName = "order") |
| | | public class ESOrder { |
| | | |
| | | // 订单相关uid |
| | | private Long uid; |
| | | // 上级直接uid |
| | | private Long uidDirect; |
| | | // 上 上级直接uid |
| | | private Long uidIndirect; |
| | | // 商品名称 |
| | | private String goodsName; |
| | | // 订单号 |
| | | private String orderNo; |
| | | // 交易id |
| | | private String tradeId; |
| | | // 交易平台 (1淘宝 2京东 3拼多多) |
| | | private Integer platform; |
| | | |
| | | |
| | | |
| | | public Long getUid() { |
| | | return uid; |
| | | } |
| | | |
| | | public void setUid(Long uid) { |
| | | this.uid = uid; |
| | | } |
| | | |
| | | public Long getUidDirect() { |
| | | return uidDirect; |
| | | } |
| | | |
| | | public void setUidDirect(Long uidDirect) { |
| | | this.uidDirect = uidDirect; |
| | | } |
| | | |
| | | public Long getUidIndirect() { |
| | | return uidIndirect; |
| | | } |
| | | |
| | | public void setUidIndirect(Long uidIndirect) { |
| | | this.uidIndirect = uidIndirect; |
| | | } |
| | | |
| | | public String getGoodsName() { |
| | | return goodsName; |
| | | } |
| | | |
| | | public void setGoodsName(String goodsName) { |
| | | this.goodsName = goodsName; |
| | | } |
| | | |
| | | public String getOrderNo() { |
| | | return orderNo; |
| | | } |
| | | |
| | | public void setOrderNo(String orderNo) { |
| | | this.orderNo = orderNo; |
| | | } |
| | | |
| | | public String getTradeId() { |
| | | return tradeId; |
| | | } |
| | | |
| | | public void setTradeId(String tradeId) { |
| | | this.tradeId = tradeId; |
| | | } |
| | | |
| | | public Integer getPlatform() { |
| | | return platform; |
| | | } |
| | | |
| | | public void setPlatform(Integer platform) { |
| | | this.platform = platform; |
| | | } |
| | | |
| | | } |