From 880238957a973ecd9676237672276b0e99d31115 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期一, 29 六月 2020 13:55:28 +0800
Subject: [PATCH] 免单
---
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackWinInviteMapper.java | 123 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 123 insertions(+), 0 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackWinInviteMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackWinInviteMapper.java
index a592f0c..cb4adb1 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackWinInviteMapper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackWinInviteMapper.java
@@ -1,5 +1,8 @@
package com.yeshi.fanli.dao.mybatis.redpack;
+import java.math.BigDecimal;
+import java.util.List;
+
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
@@ -14,4 +17,124 @@
* @return
*/
long countByUidAndType(@Param("uid")Long uid, @Param("type")String type);
+
+
+ /**
+ * 缁熻鐢ㄦ埛銆佷笅绾с�佺被鍨嬬殑鏁伴噺
+ * @param uid
+ * @param type
+ * @return
+ */
+ int countByUidAndTeamUidAndType(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type);
+
+ /**
+ * 缁熻鐢ㄦ埛銆佷笅绾с�佺被鍨嬬殑鏁伴噺
+ * @param uid
+ * @param type
+ * @return
+ */
+ RedPackWinInvite getByUidAndTeamUidAndType(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type);
+
+ /**
+ * 缁熻鐢ㄦ埛銆佷笅绾с�佺被鍨嬬殑鏁伴噺
+ * @param uid
+ * @param type
+ * @return
+ */
+ RedPackWinInvite getByUidAndTeamUid(@Param("uid")Long uid,@Param("teamUid")Long teamUid);
+
+
+
+
+ /**
+ * 缁熻鐢ㄦ埛銆佷笅绾с�佺被鍨嬬殑鏁伴噺
+ * @param uid
+ * @param type
+ * @return
+ */
+ RedPackWinInvite getByUidAndTeamUidAndTypeMonth(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type);
+
+ /**
+ * 鏌ヨ鐢ㄦ埛璁板綍
+ * @param start
+ * @param count
+ * @return
+ */
+ List<RedPackWinInvite> getRewardList(@Param("start")int start, @Param("count")int count, @Param("uid")Long uid);
+
+
+ Long countRewardRecord(@Param("uid")Long uid);
+
+
+ /**
+ * 缁熻棰嗗彇鎬婚噾棰�
+ * @param uid
+ * @return
+ */
+ BigDecimal getRewardMoney(@Param("uid")Long uid);
+
+
+ /**
+ * 鑾峰彇濂栧姳璁板綍
+ * @param uid
+ * @param type
+ * @return
+ */
+ List<RedPackWinInvite> getWinListByBossIdAndTeamUid(@Param("uid")Long uid, @Param("teamUid")Long teamUid);
+
+ /**
+ * 閭�璇峰閲戞帓琛屾 闃熷憳
+ * @param uid
+ * @return
+ */
+ List<RedPackWinInvite> getWinTopListByBossId(@Param("start")int start, @Param("count")int count,@Param("uid")Long uid);
+
+ long countWinTopListByBossId(@Param("uid")Long uid);
+
+ /**
+ * 缁熻褰撳墠闃熷憳鍦ㄦ椿鍔ㄤ腑绗嚑涓ソ鍙�
+ * @param uid
+ * @param teamUid
+ * @return
+ */
+ long countTeamNumByTid(@Param("uid")Long uid, @Param("teamUid")Long teamUid);
+
+
+ /**
+ * 鑾峰彇濂栧姳璁板綍
+ * @param uid
+ * @param type
+ * @return
+ */
+ List<RedPackWinInvite> query(@Param("start")long start, @Param("count")int count, @Param("key")String key, @Param("type")String type);
+
+ Long count(@Param("key")String key, @Param("type")String type);
+
+
+
+ /**
+ * 鏌ヨ涓婁釜鏈�
+ * @param uid
+ * @param type
+ * @return
+ */
+ List<RedPackWinInvite> listLastMonthByUid(@Param("start")long start, @Param("count")int count, @Param("uid")Long uid);
+
+ /**
+ * 缁熻涓婃湀鏉℃暟
+ * @param uid
+ * @return
+ */
+ Long countLastMonthByUid(@Param("uid")Long uid);
+
+
+ /**
+ * 鏌ヨ涓婁釜鏈堟湁閭�璇风殑鐢ㄦ埛
+ * @param uid
+ * @param type
+ * @return
+ */
+ List<Long> listWinUid(@Param("start")long start, @Param("count")int count);
+
+
}
\ No newline at end of file
--
Gitblit v1.8.0