package com.yeshi.fanli.service.inter.money;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.money.TeamRewardDebt;
|
import com.yeshi.fanli.exception.money.TeamRewardDebtException;
|
|
public interface TeamRewardDebtService {
|
|
/**
|
* 添加债务
|
*
|
* @param debt
|
* @throws TeamRewardDebtException
|
*/
|
public void addDebt(TeamRewardDebt debt) throws TeamRewardDebtException;
|
|
/**
|
* 偿还债务
|
*
|
* @param debtId
|
* @param money
|
*/
|
public void repayDebt(Long debtId, BigDecimal money) throws TeamRewardDebtException;
|
|
/**
|
* 还款
|
*
|
* @param uid
|
* @param money
|
* @return 还剩下的资金
|
* @throws TeamRewardDebtException
|
*/
|
public BigDecimal repayDebtByUid(Long uid,Date maxEstimatePayTime, BigDecimal money) throws TeamRewardDebtException;
|
|
/**
|
* 检索需要偿还的债务
|
*
|
* @param uid
|
* @param page
|
* @param count
|
* @return
|
*/
|
public List<TeamRewardDebt> listNeedRepayDebt(Long uid,Date maxEstimatePayTime, int page, int count);
|
|
/**
|
* 检索需要偿还的债务
|
*
|
* @param uid
|
* @return
|
*/
|
public long countNeedRepayDebt(Long uid,Date maxEstimatePayTime);
|
|
/**
|
* 获取总共欠钱金额
|
*
|
* @param uid
|
* @return
|
*/
|
public BigDecimal getTotalDebtMoney(Long uid,Date maxEstimatePayTime);
|
|
/**
|
* 通过唯一标识查询
|
* @Title: selectBySourceId
|
* @Description:
|
* @param sourceId
|
* @return
|
* TeamRewardDebt 返回类型
|
* @throws
|
*/
|
public TeamRewardDebt selectBySourceId(Long sourceId);
|
|
}
|