From 88b54772dbcf5ecab1e2316e4e4626ac901b8908 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期二, 22 一月 2019 15:58:24 +0800 Subject: [PATCH] 邀请码添加返回状态 --- fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java | 79 ++++++++++++++++++++++----------------- 1 files changed, 44 insertions(+), 35 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 7191a35..d453571 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 @@ -1,5 +1,6 @@ package com.yeshi.fanli.service.impl.count; +import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; @@ -173,47 +174,20 @@ @Override public List<Map<String, Object>> countHongBaoMoney(String channel, Integer dateType, Integer state, String year, String startTime, String endTime) throws Exception { - - List<Map<String, Object>> list = hongBaoV2CountMapper.countHongBaoMoney(channel, dateType, state, year, startTime, endTime); - - if (list == null || list.size() == 0) { - return null; - } - - switch (dateType){ - case 1: // 鎸夊ぉ澶勭悊 - return dayFactory(startTime, endTime, list); - case 2: // 鎸夋湀澶勭悊 - return monthFactory(list); - case 3: - return yearFactory(list); - default: - return null; - } + return hongBaoV2CountMapper.countHongBaoMoney(channel, dateType, state, year, startTime, endTime); } @Override public List<Map<String, Object>> countHongBaoNum(String channel, Integer dateType, Integer state, String year, String startTime, String endTime) throws Exception { - - List<Map<String, Object>> list = hongBaoV2CountMapper.countHongBaoNum(channel, dateType, state, year, startTime, endTime); - - if (list == null || list.size() == 0) { - return null; - } - - switch (dateType){ - case 1: // 鎸夊ぉ澶勭悊 - return dayFactory(startTime, endTime, list); - case 2: // 鎸夋湀澶勭悊 - return monthFactory(list); - case 3: - return yearFactory(list); - default: - return null; - } + return hongBaoV2CountMapper.countHongBaoNum(channel, dateType, state, year, startTime, endTime); } - + + @Override + public List<Map<String, Object>> countHongBaoType(Integer dateType, Integer type, String year, + String startTime, String endTime) throws Exception { + return hongBaoV2CountMapper.countHongBaoType(dateType, type, year, startTime, endTime); + } @Override public List<Map<String, Object>> getProportionByType(Integer dateType, Integer type, String year, @@ -279,5 +253,40 @@ return result_list; } + @Override + public BigDecimal countMoneyByUidAndState(Long uid, Integer state) { + return hongBaoV2CountMapper.countMoneyByUidAndState(uid, state); + } + @Override + public Integer countNumberByUidAndState(Long uid, Integer state) { + return hongBaoV2CountMapper.countNumberByUidAndState(uid, state); + } + + @Override + public int getTotalTiChengCount(Long uid) { + return hongBaoV2CountMapper.getTotalTiChengCount(uid); + } + + @Override + public long countValidNumberByUid(Long uid, Integer dateType) { + return hongBaoV2CountMapper.countValidNumberByUid(uid, dateType); + } + + @Override + public BigDecimal countWillGetMoneyByUid(Long uid) { + return hongBaoV2CountMapper.countWillGetMoneyByUid(uid); + } + + @Override + public Date getLastHongBaoTime(Long uid) { + return hongBaoV2CountMapper.getLastHongBaoTime(uid); + } + + + @Override + public List<Map<String, Object>> count24HOderByChannel(String channel, Integer type, String years, + String startTime, String endTime) throws Exception{ + return hongBaoV2CountMapper.count24HOderByChannel(channel, type, years, startTime, endTime); + } } -- Gitblit v1.8.0