From eda5d0e998204c7a49ab84d8528569b765bec2f9 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期五, 20 十二月 2019 10:05:10 +0800
Subject: [PATCH] 品牌日志

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
index 59fa6f8..937b6a8 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
@@ -109,7 +109,7 @@
 		
 		// 鍚屼竴闃熷憳鍙褰曚竴娆�
 		int totalReward = redPackWinInviteMapper.countByUidAndTeamUidAndType(bossId, teamUid,
-				RedPackWinInviteTypeEnum.oneStageReward.name());
+				RedPackWinInviteTypeEnum.zeroStageReward.name());
 		if (totalReward > 0)
 			return;
 				
@@ -119,7 +119,7 @@
 		winInvite.setTeamUid(teamUid);
 		winInvite.setMoney(new BigDecimal(0));
 		winInvite.setType(RedPackWinInviteTypeEnum.zeroStageReward);
-		winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.oneStageReward.name() + ":" + teamUid));
+		winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.zeroStageReward.name() + ":" + teamUid));
 		winInvite.setCreateTime(new Date());
 		winInvite.setUpdateTime(new Date());
 		redPackWinInviteMapper.insertSelective(winInvite);
@@ -252,7 +252,7 @@
 	 * @param orderNo
 	 * @param bossId
 	 */
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	private void twoStageRewardToBoss(Long bossId, Long teamUid, Date oneStageTime, Integer source, String orderNo)
 			throws Exception {
 		// 绗竴闃舵瀹屾垚涔嬪悗鐨�90澶╁唴 ; 闃熷弸浜х敓鐨勮鍗曚腑锛堣嚜璐�+鍒嗕韩锛夛紝閭�璇蜂汉绱浜х敓鈮�1 鍏冨閲�
@@ -305,7 +305,7 @@
 	 * @param orderNo
 	 * @param bossId
 	 */
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	private void threeStageRewardToBoss(Long bossId, Long teamUid, Date twoStageTime, Integer source, String orderNo)
 			throws Exception {
 		// 浜屻�佷笁闃舵涓嶅彲鍚屾湀

--
Gitblit v1.8.0