| | |
| | | package com.yeshi.fanli.service.inter.order;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.order.InviteOrderSubsidy;
|
| | | import com.yeshi.fanli.entity.order.OrderTeamReward;
|
| | | import com.yeshi.fanli.exception.order.OrderTeamRewardException;
|
| | |
|
| | |
| | | */
|
| | | public OrderTeamReward getByOrderNoAndTypeForUpdate(Long uid, String orderNo, Integer type);
|
| | |
|
| | | |
| | |
|
| | | /**
|
| | | * 添加或修改(按照订单号与来源)
|
| | | *
|
| | | * @param orderId
|
| | | * @param sourceType
|
| | | */
|
| | | public void addOrUpdateByOrder(String orderId, int sourceType) throws OrderTeamRewardException;
|
| | | public void addOrUpdate(InviteOrderSubsidy subsidy, BigDecimal money, Long uid,int level)
|
| | | throws OrderTeamRewardException;
|
| | |
|
| | | /**
|
| | | * 根据订单号与来源查询
|
| | |
| | | * @param orderId
|
| | | * @param sourceType
|
| | | */
|
| | | public void invalidByOrderIdAndSourceType(String orderId, int sourceType);
|
| | |
|
| | | public void invalidByOrderIdAndSourceType(Long subsidyId);
|
| | |
|
| | | /**
|
| | | * 使订单号对应的数据有效
|
| | | * @param orderId
|
| | | * @param sourceType
|
| | | */
|
| | | public void validByOrderIdAndSourceType(String orderId, int sourceType);
|
| | | |
| | | public void validByOrderIdAndSourceType(Long subsidyId,Date preGetTime);
|
| | |
|
| | | /**
|
| | | * 结算金额
|
| | |
| | | * @param money
|
| | | */
|
| | | public void settleById(Long id,BigDecimal money);
|
| | | |
| | | /**
|
| | | * 根据补贴ID获取团队奖励
|
| | | * @Title: listBySubsidyId
|
| | | * @Description: |
| | | * @param subsidyId
|
| | | * @return |
| | | * List<OrderTeamReward> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<OrderTeamReward> listBySubsidyId(Long subsidyId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询可以结算的
|
| | | * @Title: listCanSettle
|
| | | * @Description: |
| | | * @param uid
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return |
| | | * List<OrderTeamReward> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<OrderTeamReward> listCanSettle(Long uid,int page,int pageSize);
|
| | | |
| | | /**
|
| | | * 统计可以结算的数量
|
| | | * @Title: countCanSettle
|
| | | * @Description: |
| | | * @param uid
|
| | | * @return |
| | | * long 返回类型
|
| | | * @throws
|
| | | */
|
| | | public long countCanSettle(Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 能够结算的用户ID列表
|
| | | * @Title: listCanSettleUid
|
| | | * @Description: |
| | | * @param page
|
| | | * @param count
|
| | | * @return |
| | | * List<Long> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<Long> listCanSettleUid(Date time, int page,int count);
|
| | | |
| | | |
| | | /**
|
| | | * 能够结算的用户ID数量
|
| | | * @Title: countCanSettleUid
|
| | | * @Description: |
| | | * @return |
| | | * long 返回类型
|
| | | * @throws
|
| | | */
|
| | | public long countCanSettleUid(Date time);
|
| | | |
| | | |
| | | }
|