From 7e37f77192fa701e309fa04f821aa5fd5259ca33 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期三, 01 四月 2020 09:28:31 +0800
Subject: [PATCH] 队员列表

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java
index 1e9dfc3..a08e1f9 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/money/msg/MsgMoneyDetailServiceImpl.java
@@ -127,12 +127,18 @@
 				msgMoneyDetailMapper.updateByPrimaryKeySelective(update);
 			}
 		} else if (detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackGiveOff
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackReceiveOff
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackGiveBack
 				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackExchangePass
 				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackExchangeReject
-				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackNewUserReward
-				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackInviteSucceed
-				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackFirstSharedOrder
-				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackMonthSharedOrder) {
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackOneStageReward
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackTwoStageReward
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackThreeStageReward
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackUseFail
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackUseSuccess
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackDeduct
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackForbidRemove
+				|| detail.getMsgType() == MsgTypeMoneyTypeEnum.redPackForbid) {
 			if (detail.getUser() == null)
 				throw new MsgMoneyDetailException(2, "娑堟伅淇℃伅涓嶅叏");
 			detail.setCreateTime(new Date());
@@ -146,8 +152,14 @@
 			detail.setUpdateTime(new Date());
 			detail.setRead(false);
 			msgMoneyDetailMapper.insertSelective(detail);
+		} else if (detail.getMsgType() == MsgTypeMoneyTypeEnum.orderTeamReward) {
+			if (detail.getMoney() == null || detail.getUser() == null)
+				throw new MsgMoneyDetailException(2, "娑堟伅淇℃伅涓嶅叏");
+			detail.setCreateTime(new Date());
+			detail.setUpdateTime(new Date());
+			detail.setRead(false);
+			msgMoneyDetailMapper.insertSelective(detail);
 		}
-
 		userMsgReadStateService.addMoneyMsgUnReadCount(detail.getUser().getId(), 1);
 	}
 

--
Gitblit v1.8.0