admin
2019-11-20 8b2191df2f7d94aa299bd43dcbe97c94e5a61bbd
fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java
@@ -3,8 +3,8 @@
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.dto.ChartTDO;
import com.yeshi.fanli.vo.order.HongBaoV2VO;
public interface HongBaoV2CountService {
@@ -29,6 +29,7 @@
   /**
    * 统计用户红包数量
    *
    * @param uid
    * @return
    */
@@ -51,7 +52,7 @@
    *            结束时间
    * @return
    */
   public List<Map<String, Object>> countHongBaoMoney(String channel, Integer dateType, Integer state, String year,
   public List<ChartTDO> countHongBaoMoney(String channel, Integer dateType, Integer state, String year,
         String startTime, String endTime) throws Exception;
   /**
@@ -71,7 +72,7 @@
    *            结束时间
    * @return
    */
   public List<Map<String, Object>> countHongBaoNum(String channel, Integer dateType, Integer state, String year,
   public List<ChartTDO> countHongBaoNum(String channel, Integer dateType, Integer state, String year,
         String startTime, String endTime) throws Exception;
   /**
@@ -85,7 +86,7 @@
    * @return
    * @throws Exception
    */
   public List<Map<String, Object>> getProportionByType(Integer dateType, Integer type, String year, String startTime,
   public List<ChartTDO> getProportionByType(Integer dateType, Integer type, String year, String startTime,
         String endTime) throws Exception;
   /**
@@ -122,7 +123,7 @@
    */
   public Date getLastHongBaoTime(Long uid);
   public List<Map<String, Object>> count24HOderByChannel(String channel, Integer type, String years, String startTime,
   public List<ChartTDO> count24HOderByChannel(String channel, Integer type, String years, String startTime,
         String endTime) throws Exception;
   /**
@@ -136,7 +137,7 @@
    * @return
    * @throws Exception
    */
   public List<Map<String, Object>> countHongBaoType(Integer dateType, Integer type, String year, String startTime,
   public List<ChartTDO> countHongBaoType(Integer dateType, Integer type, String year, String startTime,
         String endTime) throws Exception;
   /**
@@ -149,4 +150,55 @@
    */
   public List<HongBaoV2VO> listShareAndInviteMoney(long start, int count, String date);
   /**
    * 奖励券金额
    *
    * @return
    */
   public BigDecimal countRebateCouponMoney();
   /**
    * 统计返利订单
    * @param uid
    * @return
    */
   public long countRebateOrder(Long uid);
   /**
    * 统计分享+ 邀请订单
    * @param uid
    * @return
    */
   public long countShareOrInviteOrder(Long uid);
   /**
    * 统计已到账
    *
    * @param uid
    * @param typeList
    * @param minGetTime
    * @param maxGetTime
    * @return
    */
   public BigDecimal sumAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime);
   public long countAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime);
   /**
    * 查询来源该下级成功分享奖金活动
    * @param uid
    * @param teamUid
    * @param endTime
    * @return
    */
   public BigDecimal getShareRewardByTeamUid(Long uid, Long teamUid, Date endTime);
   /**
    * 统计下级上个有效订单
    * @param uid
    * @param teamUid 下级id
    * @return
    */
   public BigDecimal getShareRewardByTeamUidLastMonth(Long uid, Long teamUid);
}