package com.yeshi.fanli.service.inter.order.dividents;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrder;
|
import com.yeshi.fanli.exception.ParamsException;
|
import com.yeshi.fanli.exception.order.dividents.TeamDividentsSourceOrderException;
|
|
public interface TeamDividentsSourceOrderService {
|
|
/**
|
* 添加团队分红来源订单
|
* @Title: addTeamDividentsSourceOrder
|
* @Description:
|
* @param order
|
* void 返回类型
|
* @throws
|
*/
|
public void addTeamDividentsSourceOrder(TeamDividentsSourceOrder order) throws TeamDividentsSourceOrderException,ParamsException;
|
|
/**
|
*
|
* @Title: listCanSendByUidAndPreSendTime
|
* @Description:
|
* @param uid
|
* @param preSendTime
|
* @return
|
* List<TeamDividentsSourceOrder> 返回类型
|
* @throws
|
*/
|
public List<TeamDividentsSourceOrder> listCanSendByUidAndPreSendTime(Long uid, Date preSendTime, int page,
|
int pageSize);
|
|
/**
|
*
|
* @Title: countCanSendByUidAndPreSendTime
|
* @Description:
|
* @param uid
|
* @param preSendTime
|
* @return
|
* long 返回类型
|
* @throws
|
*/
|
public long countCanSendByUidAndPreSendTime(Long uid, Date preSendTime);
|
|
/**
|
* 获取能够分红的订单源用户ID列表
|
* @Title: listCanSendUidByPreSendTime
|
* @Description:
|
* @param preSendTime
|
* @param page
|
* @param count
|
* @return
|
* List<Long> 返回类型
|
* @throws
|
*/
|
public List<Long> listCanSendUidByPreSendTime(Date preSendTime, int page, int count);
|
|
/**
|
* 获取能够分红的订单源用户ID数量
|
* @Title: countCanSendUidByPreSendTime
|
* @Description:
|
* @param preSendTime
|
* @return
|
* Long 返回类型
|
* @throws
|
*/
|
public Long countCanSendUidByPreSendTime(Date preSendTime);
|
|
/**
|
* 根据主键查询
|
* @Title: selectByPrimaryKeyForUpdate
|
* @Description:
|
* @param id
|
* @return
|
* TeamDividentsSourceOrder 返回类型
|
* @throws
|
*/
|
public TeamDividentsSourceOrder selectByPrimaryKeyForUpdate(Long id);
|
|
/**
|
* 使订单失效
|
* @Title: invalidOrder
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @param beiZhu
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidOrder(String orderNo, int sourceType, String beiZhu);
|
|
/**
|
* 根据uid失效
|
* @Title: invalidOrderByUid
|
* @Description:
|
* @param uid
|
* @param beiZhu
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidOrderByUid(Long uid, String beiZhu);
|
|
/**
|
* 发送
|
* @Title: send
|
* @Description:
|
* @param id
|
* void 返回类型
|
* @throws
|
*/
|
public void send(Long id);
|
|
|
/**
|
* 根据订单查询
|
* @Title: selectByOrderNoSourceType
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @return
|
* TeamDividentsSourceOrder 返回类型
|
* @throws
|
*/
|
public TeamDividentsSourceOrder selectByOrderNoSourceType(String orderNo,int sourceType);
|
|
}
|