From 0e9b6603d4ae9d11c1fbc90257ce816c5807b8ff Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 28 十月 2022 16:55:02 +0800
Subject: [PATCH] 批量添加结算消息

---
 app/src/main/java/com/yeshi/makemoney/app/entity/goldcorn/GoldCornGetRecord.java |  156 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 154 insertions(+), 2 deletions(-)

diff --git a/app/src/main/java/com/yeshi/makemoney/app/entity/goldcorn/GoldCornGetRecord.java b/app/src/main/java/com/yeshi/makemoney/app/entity/goldcorn/GoldCornGetRecord.java
index ae8b19a..a002de6 100644
--- a/app/src/main/java/com/yeshi/makemoney/app/entity/goldcorn/GoldCornGetRecord.java
+++ b/app/src/main/java/com/yeshi/makemoney/app/entity/goldcorn/GoldCornGetRecord.java
@@ -1,5 +1,7 @@
 package com.yeshi.makemoney.app.entity.goldcorn;
 
+import com.yeshi.makemoney.app.entity.SystemEnum;
+import org.springframework.data.annotation.Id;
 import org.springframework.data.mongodb.core.index.Indexed;
 import org.springframework.data.mongodb.core.mapping.Document;
 
@@ -8,11 +10,17 @@
 /**
  * @author hxh
  * @title: GoldCornRecord
- * @description: 閲戝竵璁板綍
+ * @description: 閲戝竵鑾峰緱璁板綍
  * @date 2022/3/31 18:25
  */
-@Document(collection = "goldCornRecord")
+@Document(collection = "goldCornGetRecord")
 public class GoldCornGetRecord {
+    public final static int LEVEL_OWN = 0;
+    public final static int LEVEL_FIRST = 1;
+    public final static int LEVEL_SECOND = 2;
+
+
+    @Id
     private String id;
     @Indexed
     private Long uid;
@@ -20,15 +28,159 @@
     private String day;
     private Integer cornNum;
 
+    private SystemEnum system;
+
+    /**
+     * 鏃堕棿鏁伴噺锛堝崟浣嶄负娆�/涓�/绉掞級
+     **/
+    private Long eventCount;
+
     /**
      * 缂樼敱鐢ㄦ埛ID锛堝綋鏈変簩绾у垎閿�鏃跺瓨鍦級
      **/
     @Indexed
     private Long fromUid;
 
+    /**
+     * 缂樼敱浜嬩欢ID锛堝綋鏈変簩绾у垎閿�鏃跺瓨鍦級
+     **/
+    @Indexed
+    private String fromId;
+
+    /**
+     * 鏄惁灞炰簬鍔犲��
+     **/
+    private Boolean isDubble;
+
     @Indexed
     private GoldCornGetType type;
     private String remarks;
+    @Indexed
     private Date createTime;
     private Date updateTime;
+
+    /**
+     * 绛夌骇锛�0-鐢辫嚜宸辫幏鍙� 1-涓嬬骇鑾峰彇  2-涓嬩笅绾ц幏鍙�
+     **/
+    private Integer level;
+
+    public String toId() {
+        String st = uid + "-" + type.name() + "-" + createTime.getTime();
+        if (isDubble != null && isDubble) {
+            st += "-double";
+        }
+        return st;
+    }
+
+    public SystemEnum getSystem() {
+        return system;
+    }
+
+    public void setSystem(SystemEnum system) {
+        this.system = system;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public Long getUid() {
+        return uid;
+    }
+
+    public void setUid(Long uid) {
+        this.uid = uid;
+    }
+
+    public String getDay() {
+        return day;
+    }
+
+    public void setDay(String day) {
+        this.day = day;
+    }
+
+    public Integer getCornNum() {
+        return cornNum;
+    }
+
+    public void setCornNum(Integer cornNum) {
+        this.cornNum = cornNum;
+    }
+
+    public Long getFromUid() {
+        return fromUid;
+    }
+
+    public void setFromUid(Long fromUid) {
+        this.fromUid = fromUid;
+    }
+
+    public String getFromId() {
+        return fromId;
+    }
+
+    public void setFromId(String fromId) {
+        this.fromId = fromId;
+    }
+
+    public GoldCornGetType getType() {
+        return type;
+    }
+
+    public void setType(GoldCornGetType type) {
+        this.type = type;
+    }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public Integer getLevel() {
+        return level;
+    }
+
+    public void setLevel(Integer level) {
+        this.level = level;
+    }
+
+    public Boolean getDubble() {
+        return isDubble;
+    }
+
+    public void setDubble(Boolean dubble) {
+        isDubble = dubble;
+    }
+
+    public Long getEventCount() {
+        return eventCount;
+    }
+
+    public void setEventCount(Long eventCount) {
+        this.eventCount = eventCount;
+    }
 }

--
Gitblit v1.8.0