|
@@ -0,0 +1,71 @@
|
|
|
+package com.fire.es;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Builder;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import org.springframework.data.annotation.Id;
|
|
|
+import org.springframework.data.elasticsearch.annotations.*;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+@ApiModel(value = "交易流水ES实体")
|
|
|
+@Data
|
|
|
+@Document(indexName = "transaction_flow", shards = 6)
|
|
|
+@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+public class TransactionESDto {
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @ApiModelProperty(value = "流水号")
|
|
|
+ private String seqNo;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "入账时间")
|
|
|
+ @Field(type = FieldType.Date)
|
|
|
+ private Date createTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "服务类型:1、订单扣款 2、订单退款 3、财务加款4、财务撤销")
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer serviceType;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "操作前金额")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long beforeAmount;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "操作金额")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long operatingAmount;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "操作后金额")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long afterAmount;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "1、客户流水;2、供应商流水")
|
|
|
+ @Field(type = FieldType.Integer)
|
|
|
+ private Integer distinguish;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "客户/供应商账户")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long relationId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商户订单号")
|
|
|
+ @Field(type = FieldType.Keyword)
|
|
|
+ private String extorderId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "业务描述")
|
|
|
+ @MultiField(
|
|
|
+ mainField = @Field(type=FieldType.Text, analyzer = "ik_max_word"),
|
|
|
+ otherFields = @InnerField(suffix = "keyword", type=FieldType.Keyword))
|
|
|
+ private String note;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "订单号")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long orderId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "操作人id")
|
|
|
+ @Field(type = FieldType.Long)
|
|
|
+ private Long operatorId;
|
|
|
+}
|