package com.yeshi.fanli.service.inter.order.dividents;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrderUserMap;
|
import com.yeshi.fanli.exception.ParamsException;
|
|
/**
|
* 分红源订单与参与分红用户的对应关系
|
* @author Administrator
|
*
|
*/
|
public interface TeamDividentsSourceOrderUserMapService {
|
|
public TeamDividentsSourceOrderUserMap selectByPrimaryKeyForUpdate(Long id);
|
|
/**
|
* 发送到用户分红表
|
* @Title: send
|
* @Description:
|
* @param id
|
* void 返回类型
|
* @throws
|
*/
|
public void send(Long id);
|
|
/**
|
* 添加映射
|
* @Title: addDividentsSourceOrderUserMap
|
* @Description:
|
* @param map
|
* @throws ParamsException
|
* void 返回类型
|
* @throws
|
*/
|
public void addDividentsSourceOrderUserMap(TeamDividentsSourceOrderUserMap map) throws ParamsException;
|
|
/**
|
* 获取可以发送的列表
|
* @Title: listCanSend
|
* @Description:
|
* @param sourceUid
|
* @param maxPreSendTime
|
* @param page
|
* @param pageSize
|
* @return
|
* List<TeamDividentsSourceOrderUserMap> 返回类型
|
* @throws
|
*/
|
public List<TeamDividentsSourceOrderUserMap> listCanSend(Long sourceUid, Date maxPreSendTime, int page,
|
int pageSize);
|
|
/**
|
* 获取可以发送的列表数量
|
* @Title: countCanSend
|
* @Description:
|
* @param sourceUid
|
* @param maxPreSendTime
|
* @return
|
* long 返回类型
|
* @throws
|
*/
|
public long countCanSend(Long sourceUid, Date maxPreSendTime);
|
|
/**
|
* 根据源订单主键查询
|
* @Title: countBySourceOrderId
|
* @Description:
|
* @param sourceOrderId
|
* @return
|
* long 返回类型
|
* @throws
|
*/
|
public long countBySourceOrderId(Long sourceOrderId);
|
|
/**
|
* 根据源订单主键查询
|
* @Title: listBySourceOrderId
|
* @Description:
|
* @param sourceOrderId
|
* @return
|
* List<TeamDividentsSourceOrderUserMap> 返回类型
|
* @throws
|
*/
|
public List<TeamDividentsSourceOrderUserMap> listBySourceOrderId(Long sourceOrderId);
|
|
/**
|
* 获取能够分红的订单源用户列表
|
* @Title: listCanSendSourceUidByPreSendTime
|
* @Description:
|
* @param preSendTime
|
* @param page
|
* @param count
|
* @return
|
* List<Long> 返回类型
|
* @throws
|
*/
|
public List<Long> listCanSendSourceUidByPreSendTime(Date preSendTime, int page, int count);
|
|
/**
|
* 获取能够分红的订单源用户ID数量
|
* @Title: countCanSendUidByPreSendTime
|
* @Description:
|
* @param preSendTime
|
* @return
|
* Long 返回类型
|
* @throws
|
*/
|
public Long countCanSendSourceUidByPreSendTime(Date preSendTime);
|
|
/**
|
* 订单失效
|
* @Title: invalidBySourceOrderId
|
* @Description:
|
* @param sourceOrderId
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidBySourceOrderId(Long sourceOrderId);
|
|
/**
|
* 用户对应的订单失效
|
* @Title: invalidOrderBySourceUid
|
* @Description:
|
* @param sourceUid
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidOrderBySourceUid(Long sourceUid,String beiZhu);
|
|
/**
|
* 订单结算
|
* @Title: orderSettle
|
* @Description:
|
* @param sourceOrderId
|
* @param income
|
* void 返回类型
|
* @throws
|
*/
|
public void orderSettle(Long sourceOrderId, Date preSendTime, BigDecimal income);
|
|
/**
|
* 订单变化更新资金
|
* @Title: updateMoney
|
* @Description:
|
* @param sourceOrderId
|
* @param income
|
* void 返回类型
|
* @throws
|
*/
|
public void updateMoney(Long sourceOrderId, BigDecimal income);
|
|
}
|