diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/enums/TransactionBillStatus.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/enums/TransactionBillStatus.java index c98de7b2..d248ae79 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/enums/TransactionBillStatus.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/domain/enums/TransactionBillStatus.java @@ -63,7 +63,7 @@ public enum TransactionBillStatus { * 限额统计的提现状态 */ public static List countOfLimit() { - return asList(WITHDRAW_SUCCESS, WITHDRAW_APPROVING, WITHDRAW_FAIL, WITHDRAW_PASSED, WITHDRAW_PAYING); + return asList(WITHDRAW_SUCCESS, WITHDRAW_APPROVING, WITHDRAW_PASSED, WITHDRAW_PAYING); } /** diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transfer/service/impl/TransferConverterImpl.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transfer/service/impl/TransferConverterImpl.java index 8a3675e0..1c2135b2 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transfer/service/impl/TransferConverterImpl.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transfer/service/impl/TransferConverterImpl.java @@ -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);