yujian
2019-03-27 cdcbed9af813b2a02cdc01eefa24db8bec6b51a9
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java
@@ -7,6 +7,8 @@
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.vo.order.HongBaoV2VO;
public interface HongBaoV2CountMapper {
   
@@ -26,6 +28,13 @@
    * @return
    */
   Integer countNumberByUidAndState(@Param("uid")Long uid, @Param("state") Integer state);
   /**
    * 统计用户总的红包数量
    * @param uid
    * @return
    */
   Long countNumberByUid(@Param("uid")Long uid);
   
   /**
    * 统计总金额
@@ -104,4 +113,17 @@
   
   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);
}