admin
2019-07-30 573c491b4a1ba60e12a5678a01c1546c0077c1ee
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java
@@ -1,10 +1,13 @@
package com.yeshi.fanli.dao.mybatis;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.vo.order.HongBaoV2VO;
public interface HongBaoV2CountMapper {
@@ -25,6 +28,13 @@
    * @return
    */
   Integer countNumberByUidAndState(@Param("uid")Long uid, @Param("state") Integer state);
   /**
    * 统计用户总的红包数量
    * @param uid
    * @return
    */
   Long countNumberByUid(@Param("uid")Long uid);
   
   /**
    * 统计总金额
@@ -82,5 +92,46 @@
   List<Map<String, Object>> countHongBaoTotalNum(@Param("dateType")Integer dateType, @Param("year") String year,
         @Param("startTime")String startTime, @Param("endTime")String endTime);
   
   // 累计提成订单数量(包含无效订单)
   int getTotalTiChengCount(Long uid);
   /**
    * 统计未失效订单数量
    * @param uid
    * @param dateType
    * @return
    */
   long countValidNumberByUid(@Param("uid") Long uid, @Param("dateType")Integer dateType);
   /**
    * 统计未到账
    * @param uid
    * @return
    */
   BigDecimal countWillGetMoneyByUid(@Param("uid") Long uid);
   Date getLastHongBaoTime(@Param("uid") Long uid);
   /**
    * 根据渠道 统计新增用户24小时内产生的订单数量
    *
    * @param channel
    * @return
    */
   List<Map<String, Object>> count24HOderByChannel(@Param("channel") String channel, @Param("type") Integer type,
         @Param("years") String years, @Param("startTime") String startTime, @Param("endTime") String endTime);
   List<HongBaoV2VO> listShareAndInviteMoney(@Param("start") long start, @Param("count") int count,
         @Param("date") String date);
   /**
    * 统计奖励券总金额
    * @return
    */
   BigDecimal countRebateCouponMoney();
}