提现debug

This commit is contained in:
磷叶 2024-11-15 16:37:59 +08:00
parent 8760f7a39e
commit 4cfc1d49f2
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public enum TransactionBillStatus {
* 限额统计的提现状态
*/
public static List<String> countOfLimit() {
return asList(WITHDRAW_SUCCESS, WITHDRAW_APPROVING, WITHDRAW_FAIL, WITHDRAW_PASSED, WITHDRAW_PAYING);
return asList(WITHDRAW_SUCCESS, WITHDRAW_APPROVING, WITHDRAW_PASSED, WITHDRAW_PAYING);
}
/**

View File

@ -15,6 +15,7 @@ import com.ruoyi.ss.user.service.ISmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@ -71,7 +72,8 @@ public class TransferConverterImpl implements TransferConverter {
detail.setAmount(bill.getArrivalAmount());
detail.setAccountNo(bill.getAccountNo());
detail.setRemark(String.format("提现申请%s转账", bill.getBillNo()));
if (user != null) {
// 当转账达到2000时需要实名
if (user != null && bill.getArrivalAmount().compareTo(new BigDecimal(2000)) >= 0) {
detail.setUserName(user.getRealName());
}
detailList.add(detail);