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 | 42 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 41 insertions(+), 1 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 d4fc504..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,6 @@ 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; @@ -27,6 +28,13 @@ private String day; private Integer cornNum; + private SystemEnum system; + + /** + * 鏃堕棿鏁伴噺锛堝崟浣嶄负娆�/涓�/绉掞級 + **/ + private Long eventCount; + /** * 缂樼敱鐢ㄦ埛ID锛堝綋鏈変簩绾у垎閿�鏃跺瓨鍦級 **/ @@ -38,6 +46,11 @@ **/ @Indexed private String fromId; + + /** + * 鏄惁灞炰簬鍔犲�� + **/ + private Boolean isDubble; @Indexed private GoldCornGetType type; @@ -52,9 +65,20 @@ private Integer level; public String toId() { - return uid + "-" + type.name() + "-" + createTime.getTime(); + 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; @@ -143,4 +167,20 @@ 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