From e260d06750811a6be0ad1abb85634ced13cc7d94 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 27 二月 2019 10:28:34 +0800
Subject: [PATCH] 其他消息表结构修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/msg/UserOtherMsgNotificationServiceImpl.java |   68 +++++++++++++++++-----------------
 1 files changed, 34 insertions(+), 34 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 ddece43..59c8034 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
@@ -40,8 +40,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponGet(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -54,8 +54,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponActive(getLeftDay(coupon),
 				coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -68,8 +68,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsing(coupon.getStartTime(),
 				coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -82,8 +82,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createWelfareCouponUsed(getLeftDay(coupon),
 				coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -96,8 +96,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
 				.createWelfareCouponWillOutOfDate(getLeftDay(coupon), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -110,8 +110,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
 				.createWelfareCouponAlreadyOutOfDate(coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponWelfareMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -124,8 +124,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponGet(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -138,8 +138,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponActive(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -152,8 +152,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponUsing(coupon.getSource(),
 				coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -166,8 +166,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponUsed(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -180,8 +180,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponWillOutOfDate(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -194,8 +194,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createCouponAlreadyOutOfDate(coupon.getSource(),
 				coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponMianDan, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponMianDan, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -208,8 +208,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponGet(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponReward, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -222,8 +222,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponActive(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponReward, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -236,8 +236,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponUsed(getLeftDay(coupon),
 				coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponReward, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -250,8 +250,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory.createRewardCouponWillOutOfDate(
 				getLeftDay(coupon), coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponReward, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}
@@ -264,8 +264,8 @@
 		MsgOtherCouponContentDTO dto = MsgOtherCouponContentDTOFactory
 				.createRewardCouponAlreadyOutOfDate(coupon.getSource(), coupon.getStartTime(), coupon.getEndTime());
 		try {
-			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(), dto,
-					MsgTypeOtherTypeEnum.couponReward, null));
+			msgOtherDetailService.addMsgOtherDetail(MsgOtherDetailFactory.createCouponMsg(coupon.getUid(),
+					coupon.getId(), dto, MsgTypeOtherTypeEnum.couponReward, null));
 		} catch (MsgOtherDetailException e) {
 			e.printStackTrace();
 		}

--
Gitblit v1.8.0