From b47fb09eaffa4a13c0d63e823cb9319bcb775249 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 02 四月 2020 15:22:11 +0800
Subject: [PATCH] 发圈修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java
index cad3ae3..7d5bf5a 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java
@@ -52,7 +52,7 @@
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
 			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
-					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "鑷冲皯鎴愬姛閭�璇�1涓槦鍛樺悗鍙縺娲�"));
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "鑷冲皯鎴愬姛閭�璇�1涓矇涓濆悗鍙縺娲�"));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -63,7 +63,7 @@
 		if (coupon == null || coupon.getUid() == null)
 			return;
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponActive(getLeftDay(coupon),
-				"鎴愬姛閭�璇烽槦鍛�:" + worker.getNickName(), coupon.getStartTime(), coupon.getEndTime());
+				"鎴愬姛閭�璇风矇涓�:" + worker.getNickName(), coupon.getStartTime(), coupon.getEndTime());
 		try {
 			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
 					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "鍙湪棣栭〉-鍏嶅崟鍟嗗搧-閫夋嫨鍟嗗搧-浣跨敤"));
@@ -108,7 +108,7 @@
 				.createWelfareCouponWillOutOfDate(getLeftDay(coupon), coupon.getStartTime(), coupon.getEndTime());
 		try {
 			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
-					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "鑷冲皯鎴愬姛閭�璇�1涓槦鍛樺悗鍙縺娲�"));
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, "鑷冲皯鎴愬姛閭�璇�1涓矇涓濆悗鍙縺娲�"));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -194,7 +194,7 @@
 				.createWelfareCouponWillOutOfDate(getLeftDay(coupon), coupon.getStartTime(), coupon.getEndTime());
 		try {
 			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
-					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "鑷冲皯鎴愬姛閭�璇�1涓槦鍛樺悗鍙縺娲�"));
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, "鑷冲皯鎴愬姛閭�璇�1涓矇涓濆悗鍙縺娲�"));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -535,4 +535,21 @@
 			e.printStackTrace();
 		}
 	}
+	
+	
+	@Override
+	public void vipUpgradeReward(Long uid, String beiZhu, MsgOtherSystemGiveDTO dto) {
+		try {
+			MsgOtherDetail detail = new MsgOtherDetail();
+			detail.setBeiZhu(beiZhu);
+			detail.setCreateTime(new Date());
+			detail.setRead(false);
+			detail.setUser(new UserInfo(uid));
+			detail.setContent(new Gson().toJson(dto));
+			detail.setType(MsgTypeOtherTypeEnum.vipUpgradeReward);
+			msgOtherDetailService.addMsgOtherDetail(detail);
+		} catch (MsgOtherDetailException e) {
+			e.printStackTrace();
+		}
+	}
 }

--
Gitblit v1.8.0