| | |
| | | * @return
|
| | | */
|
| | | List<UserMoneyDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id,
|
| | | @Param("count") int count);
|
| | | @Param("count") int count, @Param("type") Integer type);
|
| | |
|
| | | /**
|
| | | * 获取用户总共有多少记录数据
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUid(@Param("uid") Long uid);
|
| | | Long selectCountByUid(@Param("uid") Long uid, @Param("type") Integer type);
|
| | |
|
| | | /**
|
| | | * 按最大的创建时间和用户ID检索列表
|
| | |
| | | * @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检索数量
|
| | |
| | | * @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和最大时间检索月份的数量
|
| | |
| | | * @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);
|
| | |
|
| | | /**
|
| | | * 统计某个月份的收入与支出
|
| | |
| | | * @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,唯一标识查询
|
| | |
| | | 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);
|
| | | } |