admin
2021-04-28 a7454d8a6325566753358b37ffabfae2faa0ca7f
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDetailMapper.java
@@ -8,6 +8,7 @@
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.money.UserMoneyDetail;
import com.yeshi.fanli.entity.money.UserMoneyDetail.UserMoneyDetailTypeEnum;
import com.yeshi.fanli.vo.money.UserMonthMoneyVO;
public interface UserMoneyDetailMapper extends BaseMapper<UserMoneyDetail> {
@@ -20,7 +21,7 @@
    * @return
    */
   List<UserMoneyDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id,
         @Param("count") int count);
         @Param("count") int count, @Param("type") Integer type);
   /**
    * 获取用户总共有多少记录数据
@@ -28,7 +29,7 @@
    * @param uid
    * @return
    */
   Long selectCountByUid(@Param("uid") Long uid);
   Long selectCountByUid(@Param("uid") Long uid, @Param("type") Integer type);
   /**
    * 按最大的创建时间和用户ID检索列表
@@ -38,7 +39,7 @@
    * @return
    */
   List<UserMoneyDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date,
         @Param("count") int count);
         @Param("count") int count, @Param("type") Integer type);
   /**
    * 按最大的创建时间和用户ID检索数量
@@ -47,7 +48,7 @@
    * @param date
    * @return
    */
   Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date);
   Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("type") Integer type);
   /**
    * 按用户ID和最大时间检索月份的数量
@@ -56,7 +57,7 @@
    * @param maxDate
    * @return
    */
   int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate);
   int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate, @Param("type") Integer type);
   /**
    * 统计某个月份的收入与支出
@@ -91,6 +92,29 @@
    * @return
    */
   BigDecimal getTotalMoneyByTypeAndUidWithDate(@Param("uid") Long uid, @Param("typeList") List<String> typeList,
         @Param("minDate") Date minDate, @Param("maxDate") Date maxDate);
         @Param("minDate") Date minDate, @Param("maxDate") Date maxDate, @Param("show")Integer show);
   /**
    * 根据类型,用户ID,唯一标识查询
    * @param type
    * @param uid
    * @param sourceIdentifyId
    * @return
    */
   UserMoneyDetail selectByTypeAndUidAndIdentifyCode(@Param("type") UserMoneyDetailTypeEnum type,
         @Param("uid") Long uid, @Param("sourceIdentifyId") Long sourceIdentifyId);
   /**
    * 查询明细
    * @param start
    * @param count
    * @param key
    * @return
    */
   List<UserMoneyDetail> listQuery(@Param("start") long start,   @Param("count") int count,
         @Param("key") String key,@Param("keyType") Integer keyType);
   Long countQuery(@Param("key") String key, @Param("keyType")Integer keyType);
}