| | |
| | | package com.yeshi.makemoney.app.service.inter.money; |
| | | |
| | | import java.lang.Exception; |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | import com.ks.lib.common.exception.ParamsException; |
| | | import com.yeshi.makemoney.app.dto.money.ExtractConfig; |
| | | import com.yeshi.makemoney.app.dto.mq.ExtractTransferResultMQMsg; |
| | | import com.yeshi.makemoney.app.entity.SystemEnum; |
| | | import com.yeshi.makemoney.app.entity.money.Extract; |
| | | import com.yeshi.makemoney.app.exception.money.ExtractException; |
| | | import com.yeshi.makemoney.app.exception.money.UserMoneyBalanceException; |
| | | import org.yeshi.utils.bean.BeanUtil; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.makemoney.app.entity.money.Extract; |
| | | import com.yeshi.makemoney.app.service.inter.money.ExtractService; |
| | | import com.yeshi.makemoney.app.service.query.money.ExtractQuery; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | |
| | | public interface ExtractService { |
| | |
| | | * @param: id |
| | | * @param: adminId |
| | | **/ |
| | | public void passExtract(Long id, Long adminId) throws ExtractException; |
| | | public void passExtract(Long id, String adminId) throws ExtractException; |
| | | |
| | | |
| | | /** |
| | |
| | | * @param: adminId |
| | | * @param: reason |
| | | **/ |
| | | public void rejectExtract(Long id, Long adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException; |
| | | public void rejectExtract(Long id, String adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException; |
| | | |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @return void |
| | | * @author hxh |
| | | * @description 处理提现结果 |
| | | * @date 18:27 2022/4/1 |
| | | * @param: msg |
| | | * @return void |
| | | **/ |
| | | public void processExtractResult(ExtractTransferResultMQMsg msg) throws ParamsException; |
| | | |
| | | |
| | | /** |
| | | * @return int |
| | | * @author hxh |
| | | * @description 小于某个金额的提现次数 |
| | | * @date 14:23 2022/4/8 |
| | | * @param: uid |
| | | * @param: money |
| | | * @param: stateList |
| | | **/ |
| | | public long countByMaxMoney(Long uid, BigDecimal money, List<Integer> stateList, Date minCreateTime); |
| | | |
| | | /** |
| | | * @return boolean |
| | | * @author hxh |
| | | * @description 用户是否可以提现小金额 |
| | | * @date 15:02 2022/4/8 |
| | | * @param: uid |
| | | * @param: maxNewerCount |
| | | * @param: date |
| | | **/ |
| | | public boolean canExtractLittleMoney(Long uid, int maxNewerCount, Date date); |
| | | |
| | | |
| | | /** |
| | | * @return java.math.BigDecimal |
| | | * @author hxh |
| | | * @description 正在提现中的金额 |
| | | * @date 17:51 2022/4/20 |
| | | * @param: uid |
| | | **/ |
| | | public BigDecimal getExtractingMoney(Long uid); |
| | | |
| | | /** |
| | | * @return com.yeshi.makemoney.app.dto.money.ExtractConfig |
| | | * @author hxh |
| | | * @description 获取提现配置 |
| | | * @date 17:57 2022/4/20 |
| | | * @param: system |
| | | **/ |
| | | public ExtractConfig getExtractConfig(SystemEnum system); |
| | | |
| | | |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 列举需要通过的记录 |
| | | * @date 14:24 2022/6/20 |
| | | * @param: maxMoney |
| | | * @return java.util.List<com.yeshi.makemoney.app.entity.money.Extract> |
| | | **/ |
| | | public List<Extract> listNeedPassRecord(BigDecimal maxMoney,Date minCreateTime,int page,int pageSize); |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 需要通过的记录列表 |
| | | * @date 14:25 2022/6/20 |
| | | * @param: maxMoney |
| | | * @return long |
| | | **/ |
| | | public long countNeedPassRecord(BigDecimal maxMoney,Date minCreateTime); |
| | | |
| | | |
| | | |
| | | } |