| | |
| | | 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 { |
| | |
| | | |
| | | |
| | | /** |
| | | * @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); |
| | | |
| | | |
| | | } |