From c6b718c3cadf5e5fff4c2a47fd1247842439f8c7 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期三, 15 四月 2020 10:45:18 +0800
Subject: [PATCH] 团队消息

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java |   39 +++++++++++++++++++++++++++++++++++----
 1 files changed, 35 insertions(+), 4 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 a344766..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
@@ -8,7 +8,6 @@
 
 import javax.annotation.Resource;
 
-import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
 import org.yeshi.utils.DateUtil;
 
@@ -172,7 +171,7 @@
 	
 	
 	@Override
-	public Integer countOrderByTypeAndDate(Integer orderType, String preDay) {
+	public Long countOrderByTypeAndDate(Integer orderType, String preDay) {
 		return hongBaoV2CountMapper.countOrderByTypeAndDate(orderType, preDay);
 	}
 	
@@ -349,15 +348,47 @@
 	}
 	
 	@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 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,

--
Gitblit v1.8.0