From 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 11 七月 2019 16:34:13 +0800
Subject: [PATCH] 订单bug,分享爆款自购修改
---
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java
index 4920446..e82da86 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherDetailFactory.java
@@ -18,8 +18,8 @@
* @param beiZhu
* @return
*/
- public static MsgOtherDetail createCouponMsg(Long uid, MsgOtherCouponContentDTO content, MsgTypeOtherTypeEnum type,
- String beiZhu) {
+ public static MsgOtherDetail createCouponMsg(Long uid, Long userCouponId, MsgOtherCouponContentDTO content,
+ MsgTypeOtherTypeEnum type, String beiZhu) {
if (uid == null)
return null;
MsgOtherDetail detail = new MsgOtherDetail();
@@ -29,6 +29,31 @@
detail.setUser(new UserInfo(uid));
detail.setCoupnContent(content);
detail.setType(type);
+ detail.setSourceId(userCouponId);
+ return detail;
+ }
+
+ /**
+ * 鍒哥浉鍏充俊鎭殑閫氱煡
+ *
+ * @param uid
+ * @param content
+ * @param type
+ * @param beiZhu
+ * @return
+ */
+ public static MsgOtherDetail createTaoLiJinMsg(Long uid, Long userCouponId, MsgOtherCouponContentDTO content,
+ MsgTypeOtherTypeEnum type, String beiZhu) {
+ if (uid == null)
+ return null;
+ MsgOtherDetail detail = new MsgOtherDetail();
+ detail.setBeiZhu(beiZhu);
+ detail.setCreateTime(new Date());
+ detail.setRead(false);
+ detail.setUser(new UserInfo(uid));
+ detail.setCoupnContent(content);
+ detail.setType(type);
+ detail.setSourceId(userCouponId);
return detail;
}
--
Gitblit v1.8.0