From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/inter/money/UserMoneyDebtService.java | 100 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 65 insertions(+), 35 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/money/UserMoneyDebtService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/money/UserMoneyDebtService.java index e0f87a3..22ec958 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/money/UserMoneyDebtService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/money/UserMoneyDebtService.java @@ -1,35 +1,65 @@ -package com.yeshi.fanli.service.inter.money; - -import java.math.BigDecimal; - -import com.yeshi.fanli.entity.money.UserMoneyDebt; -import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum; -import com.yeshi.fanli.exception.money.UserMoneyDebtException; - -public interface UserMoneyDebtService { - /** - * 娣诲姞鐢ㄦ埛鍊熼挶璁板綍 - * - * @param debt - * @throws UserMoneyDebtException - */ - public void addUserMoneyDebt(UserMoneyDebt debt) throws UserMoneyDebtException; - - /** - * 鏍规嵁绫诲瀷涓庢簮ID鑾峰彇 - * - * @param type - * @param sourceId - * @return - */ - public UserMoneyDebt selectByTypeAndSourceId(UserMoneyDebtTypeEnum type, Long sourceId); - - /** - * 鍋胯繕 - * - * @param debt - * @throws UserMoneyDebtException - */ - public void repayDebt(UserMoneyDebt debt,BigDecimal money) throws UserMoneyDebtException; - -} +package com.yeshi.fanli.service.inter.money; + +import java.math.BigDecimal; +import java.util.List; + +import com.yeshi.fanli.entity.money.UserMoneyDebt; +import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum; +import com.yeshi.fanli.exception.money.UserMoneyDebtException; + +public interface UserMoneyDebtService { + /** + * 娣诲姞鐢ㄦ埛鍊熼挶璁板綍 + * + * @param debt + * @throws UserMoneyDebtException + */ + public void addUserMoneyDebt(UserMoneyDebt debt) throws UserMoneyDebtException; + + /** + * 鏍规嵁绫诲瀷涓庢簮ID鑾峰彇 + * + * @param type + * @param sourceId + * @return + */ + public UserMoneyDebt selectByTypeAndSourceId(UserMoneyDebtTypeEnum type, Long sourceId); + + /** + * 鍋胯繕 + * + * @param debt + * @throws UserMoneyDebtException + */ + public void repayDebt(UserMoneyDebt debt, BigDecimal money) throws UserMoneyDebtException; + + /** + * 鍋胯繕 + * + * @param uid + */ + public void repayDebt(Long uid); + + /** + * 鏄惁鏈夎处鍔″緟杩� + * + * @param uid + * @return + */ + public boolean isHaveDebtToRepay(Long uid); + + + /** + * 鏌ヨ闇�瑕佸伩杩樼殑鐢ㄦ埛鍒楄〃 + * + * @param page + * @param pageSize + * @return + */ + public List<Long> listNeedRepayDebtUser(int page, int pageSize); + + /** + * @return + */ + public long countNeedRepayDebtUser(); +} -- Gitblit v1.8.0