From 916f8851ccddff8ff764d950667b5fa86f77d7b2 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期五, 24 四月 2020 18:16:50 +0800 Subject: [PATCH] 后台状态切换 --- fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java | 95 +++++++++++------------------------------------ 1 files changed, 23 insertions(+), 72 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java index aed93af..977d1e5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java @@ -4,7 +4,6 @@ import java.util.Date; import java.util.List; -import com.yeshi.fanli.dto.ChartTDO; import com.yeshi.fanli.vo.order.HongBaoV2VO; public interface HongBaoV2CountService { @@ -35,59 +34,6 @@ */ public Integer countNumberByUid(Long uid); - /** - * 缁熻鎬婚噾棰� - * - * @param channel - * 娓犻亾 - * @param dateType - * 鏃ユ湡鏍煎紡 鏃�-1 鏈�-2 骞�-3 - * @param state - * 鐘舵�� - * @param years - * 骞翠唤 - * @param startTime - * 寮�濮嬫椂闂� - * @param endTime - * 缁撴潫鏃堕棿 - * @return - */ - public List<ChartTDO> countHongBaoMoney(String channel, Integer dateType, Integer state, String year, - String startTime, String endTime) throws Exception; - - /** - * 缁熻鎬婚噾棰� - * - * @param channel - * 娓犻亾 - * @param dateType - * 鏃ユ湡鏍煎紡 鏃�-1 鏈�-2 骞�-3 - * @param state - * 鐘舵�� - * @param years - * 骞翠唤 - * @param startTime - * 寮�濮嬫椂闂� - * @param endTime - * 缁撴潫鏃堕棿 - * @return - */ - public List<ChartTDO> countHongBaoNum(String channel, Integer dateType, Integer state, String year, - String startTime, String endTime) throws Exception; - - /** - * 鍒嗙被鍨嬭鍗曟暟涓庢瘮渚� - * - * @param dateType - * @param type - * @param year - * @param startTime - * @param endTime - * @return - * @throws Exception - */ - public List<ChartTDO> getProportionByType(Integer dateType, Integer type, String year, String startTime, - String endTime) throws Exception; /** * 缁熻鎻愭垚璁㈠崟鏁伴噺 @@ -123,22 +69,6 @@ */ public Date getLastHongBaoTime(Long uid); - public List<ChartTDO> count24HOderByChannel(String channel, Integer type, String years, String startTime, - String endTime) throws Exception; - - /** - * 缁熻鎵�鏈夌被鍨嬭鍗曟暟閲� - * - * @param dateType - * @param type - * @param year - * @param startTime - * @param endTime - * @return - * @throws Exception - */ - public List<ChartTDO> countHongBaoType(Integer dateType, Integer type, String year, String startTime, - String endTime) throws Exception; /** * 鏌ヨ閭�璇�=鍒嗕韩濂栭噾 @@ -229,7 +159,7 @@ * @param payment * @return */ - public long countValidOrderTeamUserByUid(Long uid, Long time, BigDecimal payment); + public long countValidOrderByUidAndTime(Long uid, Long time, BigDecimal payment); /** * 缁熻涓嶅悓鏃堕棿锛氬鍔� @@ -264,6 +194,27 @@ Integer moneyState, String startTime, String endTime, List<Integer> listSource); - public Integer countOrderByTypeAndDate(Integer orderType, String preDay); + public Long countOrderByTypeAndDate(Integer orderType, String preDay); + + /** + * 缁熻璁㈠崟鏁伴噺 + * @param uid + * @param time 涓嬪崟寮�濮嬫椂闂� + * @param payment 浠樻閲戦 + * @param type 璁㈠崟绫诲瀷 + * @return + */ + public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment); + + /** + * 缁熻宸茬粨绠� + * @param uid + * @param time + * @param payment + * @return + */ + public long countOrderByUidAndSettled(Long uid, Long time, BigDecimal payment); + + public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState); } -- Gitblit v1.8.0