From 1c8b5d11b68e727ef5ccc130327e2400f937321b Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 十二月 2019 10:55:51 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div --- fanli/src/main/java/com/yeshi/fanli/entity/order/ESOrder.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/order/ESOrder.java b/fanli/src/main/java/com/yeshi/fanli/entity/order/ESOrder.java new file mode 100644 index 0000000..21d525c --- /dev/null +++ b/fanli/src/main/java/com/yeshi/fanli/entity/order/ESOrder.java @@ -0,0 +1,96 @@ +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鏄惁瀛樺偍鏁版嵁锛宼ype:鏁版嵁绫诲瀷锛宎nalyzer锛氬垎璇嶇矑搴﹂�夋嫨锛宻earchAnalyzer锛氭煡璇㈣繘琛屽垎璇嶅鐞� + * 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; + // 浜ゆ槗骞冲彴 + @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; + } + +} -- Gitblit v1.8.0