| | |
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dto.HongBaoDTO;
|
| | | import com.yeshi.fanli.entity.bus.user.HongBao;
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.exception.HongBaoException;
|
| | |
| | | * @throws HongBaoException
|
| | | */
|
| | | public void addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 奖金列表(1.4.9之前的版本)
|
| | |
| | | */
|
| | | BigDecimal getUnRecievedMoneyWithPreGetTime(Long uid, Date minDate, Date maxDate);
|
| | |
|
| | | /**
|
| | | * 计算资金
|
| | | * |
| | | * @param uid
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | BigDecimal computeMoneyByUidAndState(Long uid, int state);
|
| | |
|
| | | /**
|
| | | * 查询子红包
|
| | | * |
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoV2> listChildrenById(Long id);
|
| | |
|
| | | /**
|
| | | * 最近30天内产生过分享订单的用户
|
| | | * |
| | | * @return
|
| | | */
|
| | | public List<Long> getUidByNear30DayShareSucceed();
|
| | |
|
| | | /**
|
| | | * 让邀请赚失效(根据下级用户ID)
|
| | | * |
| | | * @param parentUid
|
| | | * @param beiZhu
|
| | | */
|
| | | public void invalidInviteHongBaoByParentUid(Long parentUid, String beiZhu);
|
| | |
|
| | | /**
|
| | | * 根据用户ID,交易ID查询红包信息
|
| | | * |
| | | * @param sourceType
|
| | | * @param uid
|
| | | * @param tradeIdList
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoV2> listBySourceTypeAndTradeIdListAndUid(int sourceType, long uid, List<String> tradeIdList);
|
| | |
|
| | | }
|