admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/service/inter/money/TeamDividentsDebtService.java
@@ -1,68 +1,69 @@
package com.yeshi.fanli.service.inter.money;
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.order.dividents.TeamDividentsDebt;
import com.yeshi.fanli.exception.money.TeamDividentsDebtException;
/**
 * 团队奖金欠款处理
 * @author Administrator
 *
 */
public interface TeamDividentsDebtService {
   /**
    * 添加债务
    *
    * @param debt
    * @throws TeamDividentsDebtException
    */
   public void addDebt(TeamDividentsDebt debt) throws TeamDividentsDebtException;
   /**
    * 偿还债务
    *
    * @param debtId
    * @param money
    */
   public void repayDebt(Long debtId, BigDecimal money) throws TeamDividentsDebtException;
   /**
    * 还款
    *
    * @param uid
    * @param money
    * @return 还剩下的资金
    * @throws TeamDividentsDebtException
    */
   public BigDecimal repayDebtByUid(Long uid, BigDecimal money) throws TeamDividentsDebtException;
   /**
    * 检索需要偿还的债务
    *
    * @param uid
    * @param page
    * @param count
    * @return
    */
   public List<TeamDividentsDebt> listNeedRepayDebt(Long uid, int page, int count);
   /**
    * 检索需要偿还的债务
    *
    * @param uid
    * @return
    */
   public long countNeedRepayDebt(Long uid);
   /**
    * 获取总共欠钱金额
    *
    * @param uid
    * @return
    */
   public BigDecimal getTotalDebtMoney(Long uid);
}
package com.yeshi.fanli.service.inter.money;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.yeshi.fanli.entity.order.dividents.TeamDividentsDebt;
import com.yeshi.fanli.exception.money.TeamDividentsDebtException;
/**
 * 团队奖金欠款处理
 * @author Administrator
 *
 */
public interface TeamDividentsDebtService {
   /**
    * 添加债务
    *
    * @param debt
    * @throws TeamDividentsDebtException
    */
   public void addDebt(TeamDividentsDebt debt) throws TeamDividentsDebtException;
   /**
    * 偿还债务
    *
    * @param debtId
    * @param money
    */
   public void repayDebt(Long debtId, BigDecimal money) throws TeamDividentsDebtException;
   /**
    * 还款
    *
    * @param uid
    * @param money
    * @return 还剩下的资金
    * @throws TeamDividentsDebtException
    */
   public BigDecimal repayDebtByUid(Long uid,Date maxEstimatePayTime, BigDecimal money) throws TeamDividentsDebtException;
   /**
    * 检索需要偿还的债务
    *
    * @param uid
    * @param page
    * @param count
    * @return
    */
   public List<TeamDividentsDebt> 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);
}