From 33bfa1b3d03236922cc95b9435d7d10c91e8c4e5 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 22 八月 2019 09:22:59 +0800 Subject: [PATCH] 明细 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRecordMapper.java | 188 ++++++++++++++++++++++++---------------------- 1 files changed, 99 insertions(+), 89 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRecordMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRecordMapper.java index 6e509e3..180ea70 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRecordMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRecordMapper.java @@ -1,89 +1,99 @@ -package com.yeshi.fanli.dao.mybatis.integral; - -import java.util.Date; -import java.util.List; -import java.util.Set; - -import org.apache.ibatis.annotations.Param; - -import com.yeshi.fanli.dao.BaseMapper; -import com.yeshi.fanli.entity.integral.IntegralTaskRecord; - -public interface IntegralTaskRecordMapper extends BaseMapper<IntegralTaskRecord> { - - /** - * 鏈鍙栭噾甯� - * - * @param count - * @param uid - * @return - */ - List<IntegralTaskRecord> listNotReceived(@Param("count") int count, @Param("uid") Long uid); - - /** - * 鏈鍙栭噾甯�- 鎺掗櫎id - * - * @param count - * @param uid - * @return - */ - List<IntegralTaskRecord> listNotReceivedExcludeId(@Param("count") int count, @Param("uid") Long uid, - @Param("list") Set<Long> idList); - - /** - * 鎬诲畬鎴� - * - * @param uid - * @param dateType - * @return - */ - Integer getTotalGoldCoin(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType); - - /** - * 缁熻瀹屾垚鏁伴噺 - * - * @param uid - * @param cid - * @param dateType - * @return - */ - Integer countFinished(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType); - - /** - * 杩�7澶╃鍒版儏鍐� - * - * @param uid - * @param cid - * @param sortState - * 1鍊掑簭-鍒涘缓鏃堕棿 - * @return - */ - List<IntegralTaskRecord> listDaySignRecord(@Param("uid") Long uid, @Param("cid") Long cid); - - /** - * 鏈鍙栭噾甯� - * - * @param count - * @param uid - * @return - */ - int countTotalGoldCoin(@Param("uid") Long uid); - - /** - * 鏇存柊棰嗗彇鐘舵�� - * - * @param uid - */ - void updateReceived(@Param("uid") Long uid); - - /** - * 鏍规嵁浠诲姟ID涓庢椂闂存鏌ヨ浠诲姟瀹屾垚鏁伴噺 - * - * @param taskId - * @param uid - * @param minTime - * @param maxTime - */ - int countGetCountByTaskIdAndDay(@Param("taskId") Long taskId,@Param("uid")Long uid, @Param("minTime") Date minTime, - @Param("maxTime") Date maxTime); -} +package com.yeshi.fanli.dao.mybatis.integral; + +import java.util.Date; +import java.util.List; +import java.util.Set; + +import org.apache.ibatis.annotations.Param; + +import com.yeshi.fanli.dao.BaseMapper; +import com.yeshi.fanli.entity.integral.IntegralTaskRecord; + +public interface IntegralTaskRecordMapper extends BaseMapper<IntegralTaskRecord> { + + /** + * 鏈鍙栭噾甯� + * + * @param count + * @param uid + * @return + */ + List<IntegralTaskRecord> listNotReceived(@Param("count") int count, @Param("uid") Long uid); + + /** + * 鏈鍙栭噾甯�- 鎺掗櫎id + * + * @param count + * @param uid + * @return + */ + List<IntegralTaskRecord> listNotReceivedExcludeId(@Param("count") int count, @Param("uid") Long uid, + @Param("list") Set<Long> idList); + + /** + * 鎬诲畬鎴� + * + * @param uid + * @param dateType + * @return + */ + Integer getTotalGoldCoin(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType); + + /** + * 缁熻瀹屾垚鏁伴噺 + * + * @param uid + * @param cid + * @param dateType + * @return + */ + Integer countFinished(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType); + + /** + * 杩�7澶╃鍒版儏鍐� + * + * @param uid + * @param cid + * @param sortState + * 1鍊掑簭-鍒涘缓鏃堕棿 + * @return + */ + List<IntegralTaskRecord> listDaySignRecord(@Param("uid") Long uid, @Param("cid") Long cid); + + /** + * 鏈鍙栭噾甯� + * + * @param count + * @param uid + * @return + */ + int countTotalGoldCoin(@Param("uid") Long uid); + + /** + * 鏇存柊棰嗗彇鐘舵�� + * + * @param uid + */ + void updateReceived(@Param("uid") Long uid); + + /** + * 鏍规嵁浠诲姟ID涓庢椂闂存鏌ヨ浠诲姟瀹屾垚鏁伴噺 + * + * @param taskId + * @param uid + * @param minTime + * @param maxTime + */ + int countGetCountByTaskIdAndDay(@Param("taskId") Long taskId,@Param("uid")Long uid, @Param("minTime") Date minTime, + @Param("maxTime") Date maxTime); + + + /** + * 缁熻浠婃棩绗嚑娆″畬鎴愮殑浠诲姟 + * + * @param count + * @param uid + * @return + */ + int countByTaskIdTodayNum(@Param("uid") Long uid, @Param("tid") Long tid, @Param("date") Date date); +} -- Gitblit v1.8.0