From ad9fbd2c18f280ef9bba47f28353d367cf2d94e8 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期二, 14 五月 2019 11:28:03 +0800 Subject: [PATCH] Merge branch 'div_12' --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java index ebcacb7..9102c9d 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java +++ b/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); /** * 缁熻鎬婚噾棰� @@ -84,4 +94,44 @@ // 绱鎻愭垚璁㈠崟鏁伴噺锛堝寘鍚棤鏁堣鍗曪級 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(); + + } \ No newline at end of file -- Gitblit v1.8.0