From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 23 十一月 2019 18:30:01 +0800
Subject: [PATCH] 配置文件修改

---
 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