From 52a5a39966f303be57876d817561597b8c0dc6c7 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 11 四月 2020 18:17:30 +0800
Subject: [PATCH] 团队收益相关规则修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/TeamUserLevelStatisticServiceImpl.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/TeamUserLevelStatisticServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/TeamUserLevelStatisticServiceImpl.java
index 62a721d..758f70e 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/TeamUserLevelStatisticServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/TeamUserLevelStatisticServiceImpl.java
@@ -37,13 +37,16 @@
 		int state = ThreeSale.STATE_SUCCESS;
 		long count = threeSaleSerivce.countFirstTeam(uid, state);
 		List<ThreeSale> list = threeSaleSerivce.listFirstTeam(0L, (int) count, uid, state);
+		int daRenFirstCount = 0;
 		int normalFirstCount = 0;
 		int highFirstCount = 0;
 		int superFirstCount = 0;
 		int tearcherFirstCount = 0;
 		for (ThreeSale ts : list) {
 			UserLevelEnum level = userLevelManager.getUserLevel(ts.getWorker().getId());
-			if (level == UserLevelEnum.normalVIP) {
+			if (level == UserLevelEnum.daRen) {
+				daRenFirstCount++;
+			} else if (level == UserLevelEnum.normalVIP) {
 				normalFirstCount++;
 			} else if (level == UserLevelEnum.highVIP) {
 				highFirstCount++;
@@ -54,6 +57,7 @@
 			}
 		}
 
+		int daRenSecondCount = 0;
 		int normalSecondCount = 0;
 		int highSecondCount = 0;
 		int superSecondCount = 0;
@@ -67,7 +71,9 @@
 			if (list != null)
 				for (ThreeSale ts : list) {
 					UserLevelEnum level = userLevelManager.getUserLevel(ts.getWorker().getId());
-					if (level == UserLevelEnum.normalVIP) {
+					if (level == UserLevelEnum.daRen) {
+						daRenSecondCount++;
+					} else if (level == UserLevelEnum.normalVIP) {
 						normalSecondCount++;
 					} else if (level == UserLevelEnum.highVIP) {
 						highSecondCount++;
@@ -81,6 +87,8 @@
 
 		UserLevelEnum level = userLevelManager.getUserLevel(uid);
 		TeamUserLevelStatistic statistic = new TeamUserLevelStatistic();
+		statistic.setDaRenFirstCount(daRenFirstCount);
+		statistic.setDaRenSecondCount(daRenSecondCount);
 		statistic.setNormalFirstCount(normalFirstCount);
 		statistic.setNormalSecondCount(normalSecondCount);
 		statistic.setHighFirstCount(highFirstCount);

--
Gitblit v1.8.0