| | |
| | | List<HongBaoV2> listChildrenById(Long id); |
| | | |
| | | /** |
| | | * 获取子红包列表 |
| | | * @param idList |
| | | * @return |
| | | */ |
| | | List<HongBaoV2> listChildrenByIds(@Param("idList") List<Long> idList); |
| | | |
| | | /** |
| | | * 获取奖金列表(1.4.9之前) |
| | | * |
| | | * @param uid |
| | |
| | | List<HongBaoV2> listCanBalanceHongBaoByType(@Param("type") int type, @Param("count") int count); |
| | | |
| | | /** |
| | | * 获取能够结算的分享赚和邀请赚的用户列表 |
| | | * 获取能够结算的红包的用户列表 |
| | | * |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<Long> listUidCanBanlanceShareAndInvite(int count); |
| | | List<Long> listUidCanBanlanceByTypeAndMaxTime(@Param("typeList") List<Integer> typeList, |
| | | @Param("maxTime") Date maxTime, @Param("start") long start, @Param("count") int count); |
| | | |
| | | long countUidCanBanlanceByTypeAndMaxTime(@Param("typeList") List<Integer> typeList, |
| | | @Param("maxTime") Date maxTime); |
| | | |
| | | /** |
| | | * 根据用户ID,类型获取能够结算的红包 |
| | |
| | | * @return |
| | | */ |
| | | List<HongBaoV2> listCanBalanceHongBaoByTypeAndUid(@Param("types") List<Integer> type, @Param("uid") Long uid, |
| | | @Param("start") long start, @Param("count") int count); |
| | | @Param("orderType") Integer orderType, @Param("maxDate") Date maxPreGetTime, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 计算可以结算红包的数量 |
| | |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countCanBalanceHongBaoByTypeAndUid(@Param("types") List<Integer> type, @Param("uid") Long uid); |
| | | long countCanBalanceHongBaoByTypeAndUid(@Param("types") List<Integer> type, @Param("uid") Long uid, |
| | | @Param("orderType") Integer orderType, @Param("maxDate") Date maxPreGetTime); |
| | | |
| | | /** |
| | | * 根据用户ID,订单状态和结算时间统计邀请赚的订单数量 |
| | |
| | | * @return |
| | | */ |
| | | Long countInviteOrderCountByUidAndSettleTime(@Param("uid") Long uid, @Param("state") int state, |
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate); |
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate, @Param("orderType") int orderType); |
| | | |
| | | /** |
| | | * 根据用户ID,订单状态和结算时间统计分享赚的订单数量 |
| | |
| | | * @return |
| | | */ |
| | | Long countShareOrderCountByUidAndSettleTime(@Param("uid") Long uid, @Param("state") int state, |
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate); |
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate, @Param("orderType") Integer orderType); |
| | | |
| | | /** |
| | | * 通过用户ID和状态查询数量 |
| | |
| | | * @return |
| | | */ |
| | | List<HongBaoV2> listByStateAndTypeAndUid(@Param("stateList") List<Integer> stateList, |
| | | @Param("typeList") List<Integer> typeList, @Param("uid") Long uid,@Param("start") long start,@Param("count")int count); |
| | | @Param("typeList") List<Integer> typeList, @Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据ID批量查询 |
| | | * @param idList |
| | | * @return |
| | | */ |
| | | List<HongBaoV2> listByIds(@Param("idList") List<Long> idList); |
| | | |
| | | /** |
| | | * 根据订单交易id查询红包 |
| | | * @param idList |
| | | * @return |
| | | */ |
| | | List<HongBaoDTO> listByOrderTradeId(@Param("tradeId") String tradeId); |
| | | |
| | | |
| | | /** |
| | | * 查询直接上级当时获得红包等级 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | Integer getDirectBossUrankByPid(@Param("pid")Long pid); |
| | | |
| | | } |