From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 16 十月 2024 14:28:37 +0800
Subject: [PATCH] 将CMQ替换为rabbitmq
---
fanli/src/main/java/com/yeshi/fanli/dto/HongBao.java | 627 ++++++++++++++++++++++++++++----------------------------
1 files changed, 313 insertions(+), 314 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/dto/HongBao.java b/fanli/src/main/java/com/yeshi/fanli/dto/HongBao.java
index 272b391..43d2a12 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dto/HongBao.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dto/HongBao.java
@@ -1,314 +1,313 @@
-package com.yeshi.fanli.dto;
-
-import java.math.BigDecimal;
-import java.util.Date;
-
-import javax.persistence.Transient;
-
-import com.google.gson.annotations.Expose;
-import com.yeshi.fanli.entity.bus.user.Order;
-import com.yeshi.fanli.entity.bus.user.UserInfo;
-
-/**
- * 绾㈠寘
- *
- * @author Administrator
- *
- */
-public class HongBao {
- // 鐘舵�佺紪鍙� 1-鏈埌鏃堕棿涓嶅彲棰嗗彇 2-鍙鍙� 3-宸茬粡棰嗗彇 4-绾㈠寘澶辨晥
- public final static int STATE_BUKELINGQU = 1;
- public final static int STATE_KELINGQU = 2;
- public final static int STATE_YILINGQU = 3;
- public final static int STATE_SHIXIAO = 4;
-
- // 娣樺疂璐墿绾㈠寘
- public final static int TYPE_TAOBAO = 1;
- // 浜笢璐墿绾㈠寘
- public final static int TYPE_JINGDONG = 2;
- // 娲诲姩绾㈠寘
- public final static int TYPE_HUODONG = 3;
- // 鏂颁汉绾㈠寘
- public final static int TYPE_XINREN = 4;
-
- public final static int TYPE_YAOQING = 5;
- // 涓�绾у垎閿�绾㈠寘
- public final static int TYPE_YIJI = 6;
- // 浜岀骇鍒嗛攢绾㈠寘
- public final static int TYPE_ERJI = 7;
-
- // 涓�绾у垎浜禋鍒嗛攢绾㈠寘
- public final static int TYPE_SHARE_YIJI = 21;
- // 浜岀骇鍒嗕韩璧氬垎閿�绾㈠寘
- public final static int TYPE_SHARE_ERJI = 22;
-
- // 鍒嗕韩鍟嗗搧寰楁潵鐨勭孩鍖�
- public final static int TYPE_SHARE_GOODS = 20;
-
- @Expose
- private Long id;
-
- private UserInfo userInfo;
-
- private Long auctionId;
-
- private BigDecimal payMoney;
-
- /**
- * 鍒嗛攢绾㈠寘瀵瑰簲鐨勬渶涓婄骇绾㈠寘
- */
-
- private HongBao parent;
-
- private BigDecimal money;
-
- private String param;// type瀵瑰簲鐨勫弬鏁�
-
- @Expose
- private Integer type;// 1-娣樺疂璁㈠崟 2-浜笢璁㈠崟 3-娲诲姩绾㈠寘 4-鏂颁汉绾㈠寘 5.閭�璇峰ソ鍙嬬孩鍖�(甯冨績琛楃殑) 6.涓�绾у垎閿�绾㈠寘
- // 7.浜岀骇鍒嗛攢绾㈠寘 20-鍒嗕韩鍟嗗搧璁㈠崟
-
- @Expose
- private Integer state;// 鐘舵�佺紪鍙� 1-鏈埌鏃堕棿涓嶅彲棰嗗彇 2-鍙鍙� 3-宸茬粡棰嗗彇 4-绾㈠寘澶辨晥
-
- @Expose
- private Long createtime;// 绾㈠寘鍒涘缓鏃堕棿
-
- @Expose
-
- private Long preGettime;// 棰勮棰嗗彇鐨勬椂闂�
-
- @Expose
- private Long getTime;// 棰嗗彇鐨勬椂闂�
-
- @Expose
- private String getIp;// 棰嗗彇鐨刬p
-
- @Expose
- private String beizhu;
-
- @Expose
- private String orderId; // yes璁㈠崟ID
-
- // 瀛愯鍗曠殑ID锛屽彧閽堝鐩存帴璐拱鍟嗗搧浜х敓鐨勭孩鍖呮湁鏁�
- private Long orderItemId;
-
- @Expose
- private Order order;
-
- /**
- * 绾㈠寘鎷ユ湁鑰呯殑rank
- */
- private Integer urank;
-
- public HongBao() {
-
- }
-
- public HongBao(Long id) {
- this.id = id;
- }
-
- private Boolean hasChild;
-
- private Integer version;
-
- private Date balanceTime;
-
- @Transient // 鍒嗕韩閭�璇烽噾棰濇�婚
- private BigDecimal ShareAndInviteMoney;
-
- public HongBao(UserInfo userInfo, BigDecimal money, String param, int type, int state, long createtime,
- long preGettime, long getTime, String getIp, String beizhu) {
- this.userInfo = userInfo;
- this.money = money;
- this.param = param;
- this.type = type;
- this.state = state;
- this.createtime = createtime;
- this.preGettime = preGettime;
- this.getTime = getTime;
- this.getIp = getIp;
- this.beizhu = beizhu;
- this.urank = 0;
- this.hasChild = false;
- this.version = 2;
- }
-
- public Boolean getHasChild() {
- return hasChild;
- }
-
- public void setHasChild(Boolean hasChild) {
- this.hasChild = hasChild;
- }
-
- public Long getOrderItemId() {
- return orderItemId;
- }
-
- public void setOrderItemId(Long orderItemId) {
- this.orderItemId = orderItemId;
- }
-
- public String getOrderId() {
- return orderId;
- }
-
- public void setOrderId(String orderId) {
- this.orderId = orderId;
- }
-
- public HongBao getParent() {
- return parent;
- }
-
- public void setParent(HongBao parent) {
- this.parent = parent;
- }
-
- public Order getOrder() {
- return order;
- }
-
- public void setOrder(Order order) {
- this.order = order;
- }
-
- public Integer getUrank() {
- return urank;
- }
-
- public Long getAuctionId() {
- return auctionId;
- }
-
- public void setAuctionId(Long auctionId) {
- this.auctionId = auctionId;
- }
-
- public BigDecimal getPayMoney() {
- return payMoney;
- }
-
- public void setPayMoney(BigDecimal payMoney) {
- this.payMoney = payMoney;
- }
-
- public void setUrank(Integer urank) {
- this.urank = urank;
- }
-
- public String getParam() {
- return param;
- }
-
- public void setParam(String param) {
- this.param = param;
- }
-
- public Integer getType() {
- return type;
- }
-
- public void setType(Integer type) {
- this.type = type;
- }
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public UserInfo getUserInfo() {
- return userInfo;
- }
-
- public void setUserInfo(UserInfo userInfo) {
- this.userInfo = userInfo;
- }
-
- public BigDecimal getMoney() {
- return money;
- }
-
- public void setMoney(BigDecimal money) {
- this.money = money;
- }
-
- public Integer getState() {
- return state;
- }
-
- public void setState(Integer state) {
- this.state = state;
- }
-
- public Long getCreatetime() {
- return createtime;
- }
-
- public void setCreatetime(Long createtime) {
- this.createtime = createtime;
- }
-
- public Long getPreGettime() {
- return preGettime;
- }
-
- public void setPreGettime(Long preGettime) {
- this.preGettime = preGettime;
- }
-
- public Long getGetTime() {
- return getTime;
- }
-
- public void setGetTime(Long getTime) {
- this.getTime = getTime;
- }
-
- public String getGetIp() {
- return getIp;
- }
-
- public void setGetIp(String getIp) {
- this.getIp = getIp;
- }
-
- public String getBeizhu() {
- return beizhu;
- }
-
- public void setBeizhu(String beizhu) {
- this.beizhu = beizhu;
- }
-
- public Integer getVersion() {
- return version;
- }
-
- public void setVersion(Integer version) {
- this.version = version;
- }
-
- public Date getBalanceTime() {
- return balanceTime;
- }
-
- public void setBalanceTime(Date balanceTime) {
- this.balanceTime = balanceTime;
- }
-
- public BigDecimal getShareAndInviteMoney() {
- return ShareAndInviteMoney;
- }
-
- public void setShareAndInviteMoney(BigDecimal shareAndInviteMoney) {
- ShareAndInviteMoney = shareAndInviteMoney;
- }
-
-}
+package com.yeshi.fanli.dto;
+
+import com.google.gson.annotations.Expose;
+import com.yeshi.fanli.entity.bus.user.Order;
+import com.yeshi.fanli.entity.bus.user.UserInfo;
+import org.springframework.data.annotation.Transient;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 绾㈠寘
+ *
+ * @author Administrator
+ *
+ */
+public class HongBao {
+ // 鐘舵�佺紪鍙� 1-鏈埌鏃堕棿涓嶅彲棰嗗彇 2-鍙鍙� 3-宸茬粡棰嗗彇 4-绾㈠寘澶辨晥
+ public final static int STATE_BUKELINGQU = 1;
+ public final static int STATE_KELINGQU = 2;
+ public final static int STATE_YILINGQU = 3;
+ public final static int STATE_SHIXIAO = 4;
+
+ // 娣樺疂璐墿绾㈠寘
+ public final static int TYPE_TAOBAO = 1;
+ // 浜笢璐墿绾㈠寘
+ public final static int TYPE_JINGDONG = 2;
+ // 娲诲姩绾㈠寘
+ public final static int TYPE_HUODONG = 3;
+ // 鏂颁汉绾㈠寘
+ public final static int TYPE_XINREN = 4;
+
+ public final static int TYPE_YAOQING = 5;
+ // 涓�绾у垎閿�绾㈠寘
+ public final static int TYPE_YIJI = 6;
+ // 浜岀骇鍒嗛攢绾㈠寘
+ public final static int TYPE_ERJI = 7;
+
+ // 涓�绾у垎浜禋鍒嗛攢绾㈠寘
+ public final static int TYPE_SHARE_YIJI = 21;
+ // 浜岀骇鍒嗕韩璧氬垎閿�绾㈠寘
+ public final static int TYPE_SHARE_ERJI = 22;
+
+ // 鍒嗕韩鍟嗗搧寰楁潵鐨勭孩鍖�
+ public final static int TYPE_SHARE_GOODS = 20;
+
+ @Expose
+ private Long id;
+
+ private UserInfo userInfo;
+
+ private String auctionId;
+
+ private BigDecimal payMoney;
+
+ /**
+ * 鍒嗛攢绾㈠寘瀵瑰簲鐨勬渶涓婄骇绾㈠寘
+ */
+
+ private HongBao parent;
+
+ private BigDecimal money;
+
+ private String param;// type瀵瑰簲鐨勫弬鏁�
+
+ @Expose
+ private Integer type;// 1-娣樺疂璁㈠崟 2-浜笢璁㈠崟 3-娲诲姩绾㈠寘 4-鏂颁汉绾㈠寘 5.閭�璇峰ソ鍙嬬孩鍖�(甯冨績琛楃殑) 6.涓�绾у垎閿�绾㈠寘
+ // 7.浜岀骇鍒嗛攢绾㈠寘 20-鍒嗕韩鍟嗗搧璁㈠崟
+
+ @Expose
+ private Integer state;// 鐘舵�佺紪鍙� 1-鏈埌鏃堕棿涓嶅彲棰嗗彇 2-鍙鍙� 3-宸茬粡棰嗗彇 4-绾㈠寘澶辨晥
+
+ @Expose
+ private Long createtime;// 绾㈠寘鍒涘缓鏃堕棿
+
+ @Expose
+
+ private Long preGettime;// 棰勮棰嗗彇鐨勬椂闂�
+
+ @Expose
+ private Long getTime;// 棰嗗彇鐨勬椂闂�
+
+ @Expose
+ private String getIp;// 棰嗗彇鐨刬p
+
+ @Expose
+ private String beizhu;
+
+ @Expose
+ private String orderId; // yes璁㈠崟ID
+
+ // 瀛愯鍗曠殑ID锛屽彧閽堝鐩存帴璐拱鍟嗗搧浜х敓鐨勭孩鍖呮湁鏁�
+ private Long orderItemId;
+
+ @Expose
+ private Order order;
+
+ /**
+ * 绾㈠寘鎷ユ湁鑰呯殑rank
+ */
+ private Integer urank;
+
+ public HongBao() {
+
+ }
+
+ public HongBao(Long id) {
+ this.id = id;
+ }
+
+ private Boolean hasChild;
+
+ private Integer version;
+
+ private Date balanceTime;
+
+ @Transient // 鍒嗕韩閭�璇烽噾棰濇�婚
+ private BigDecimal ShareAndInviteMoney;
+
+ public HongBao(UserInfo userInfo, BigDecimal money, String param, int type, int state, long createtime,
+ long preGettime, long getTime, String getIp, String beizhu) {
+ this.userInfo = userInfo;
+ this.money = money;
+ this.param = param;
+ this.type = type;
+ this.state = state;
+ this.createtime = createtime;
+ this.preGettime = preGettime;
+ this.getTime = getTime;
+ this.getIp = getIp;
+ this.beizhu = beizhu;
+ this.urank = 0;
+ this.hasChild = false;
+ this.version = 2;
+ }
+
+ public Boolean getHasChild() {
+ return hasChild;
+ }
+
+ public void setHasChild(Boolean hasChild) {
+ this.hasChild = hasChild;
+ }
+
+ public Long getOrderItemId() {
+ return orderItemId;
+ }
+
+ public void setOrderItemId(Long orderItemId) {
+ this.orderItemId = orderItemId;
+ }
+
+ public String getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(String orderId) {
+ this.orderId = orderId;
+ }
+
+ public HongBao getParent() {
+ return parent;
+ }
+
+ public void setParent(HongBao parent) {
+ this.parent = parent;
+ }
+
+ public Order getOrder() {
+ return order;
+ }
+
+ public void setOrder(Order order) {
+ this.order = order;
+ }
+
+ public Integer getUrank() {
+ return urank;
+ }
+
+ public String getAuctionId() {
+ return auctionId;
+ }
+
+ public void setAuctionId(String auctionId) {
+ this.auctionId = auctionId;
+ }
+
+ public BigDecimal getPayMoney() {
+ return payMoney;
+ }
+
+ public void setPayMoney(BigDecimal payMoney) {
+ this.payMoney = payMoney;
+ }
+
+ public void setUrank(Integer urank) {
+ this.urank = urank;
+ }
+
+ public String getParam() {
+ return param;
+ }
+
+ public void setParam(String param) {
+ this.param = param;
+ }
+
+ public Integer getType() {
+ return type;
+ }
+
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public UserInfo getUserInfo() {
+ return userInfo;
+ }
+
+ public void setUserInfo(UserInfo userInfo) {
+ this.userInfo = userInfo;
+ }
+
+ public BigDecimal getMoney() {
+ return money;
+ }
+
+ public void setMoney(BigDecimal money) {
+ this.money = money;
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+
+ public Long getCreatetime() {
+ return createtime;
+ }
+
+ public void setCreatetime(Long createtime) {
+ this.createtime = createtime;
+ }
+
+ public Long getPreGettime() {
+ return preGettime;
+ }
+
+ public void setPreGettime(Long preGettime) {
+ this.preGettime = preGettime;
+ }
+
+ public Long getGetTime() {
+ return getTime;
+ }
+
+ public void setGetTime(Long getTime) {
+ this.getTime = getTime;
+ }
+
+ public String getGetIp() {
+ return getIp;
+ }
+
+ public void setGetIp(String getIp) {
+ this.getIp = getIp;
+ }
+
+ public String getBeizhu() {
+ return beizhu;
+ }
+
+ public void setBeizhu(String beizhu) {
+ this.beizhu = beizhu;
+ }
+
+ public Integer getVersion() {
+ return version;
+ }
+
+ public void setVersion(Integer version) {
+ this.version = version;
+ }
+
+ public Date getBalanceTime() {
+ return balanceTime;
+ }
+
+ public void setBalanceTime(Date balanceTime) {
+ this.balanceTime = balanceTime;
+ }
+
+ public BigDecimal getShareAndInviteMoney() {
+ return ShareAndInviteMoney;
+ }
+
+ public void setShareAndInviteMoney(BigDecimal shareAndInviteMoney) {
+ ShareAndInviteMoney = shareAndInviteMoney;
+ }
+
+}
--
Gitblit v1.8.0