From ee5c8055b1c0dd7c67a9025a76b10bd287c93d9a Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 15 四月 2020 09:52:27 +0800
Subject: [PATCH] 资金明细增加团队分红

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java |   55 ++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 48 insertions(+), 7 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java
index 0867212..8b8e642 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java
@@ -168,6 +168,15 @@
 		return hongBaoV2CountMapper.countHongBaoType(dateType, type, year, startTime, endTime);
 	}
 
+	
+	
+	@Override
+	public Long countOrderByTypeAndDate(Integer orderType, String preDay) {
+		return hongBaoV2CountMapper.countOrderByTypeAndDate(orderType, preDay);
+	}
+	
+	
+	
 	@Override
 	public List<ChartTDO> getProportionByType(Integer dateType, Integer type, String year, String startTime,
 			String endTime) throws Exception {
@@ -339,21 +348,53 @@
 	}
 	
 	@Override
-	public long countValidOrderTeamUserByUid(Long uid, Long time, BigDecimal payment) {
-		return hongBaoV2CountMapper.countValidOrderTeamUserByUid(uid, time, payment);
+	public long countValidOrderByUidAndTime(Long uid, Long time, BigDecimal payment) {
+		Long count = hongBaoV2CountMapper.countValidOrderByUidAndTime(uid, time, payment);
+		if (count == null) {
+			count = 0L;
+		}
+		return count;
 	}
 	
 	@Override
-	public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType) {
-		return hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, null, null, null, null);
+	public long countOrderByUidAndSettled(Long uid, Long time, BigDecimal payment) {
+		Long count = hongBaoV2CountMapper.countOrderByUidAndSettled(uid, time, payment);
+		if (count == null) {
+			count = 0L;
+		}
+		return count;
 	}
 	
+	
+	@Override
+	public long counOrderByUidAndOrderType(Long uid, BigDecimal payment,int type) {
+		Long count = hongBaoV2CountMapper.counOrderByUidAndOrderType(uid, payment, type);
+		if (count == null) {
+			count = 0L;
+		}
+		return count;
+	}
+	
+	
+	@Override
+	public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource) {
+		return hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, null, null, null, listSource);
+	}
+	
+	@Override
+	public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState) {
+		 BigDecimal money = hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, moneyState, null, null, null);
+		 if (money == null) {
+			 money = new BigDecimal(0);
+		 }
+		 return money;
+	}
 	
 	@Override
 	public BigDecimal getRewardMoneyByToSearch(Long uid, Integer dateType, Integer orderType, Integer orderState,
-			String orderNo,  Integer moneyState, Integer source, String startTime,  String endTime) {
-		return hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, orderType, orderState, orderNo, moneyState, source,
-				startTime, endTime);
+			String orderNo,  Integer moneyState, String startTime,  String endTime, List<Integer> listSource) {
+		return hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, orderType, orderState, orderNo, moneyState, 
+				startTime, endTime, listSource);
 	}
 	
 }

--
Gitblit v1.8.0