1
zj
4 days ago effab9619e17b97ac98b035eaa64ba99b27f5dc6
trading-order-service/src/main/java/com/yami/trading/service/impl/WithdrawServiceImpl.java
@@ -25,6 +25,7 @@
import com.yami.trading.common.util.StringUtils;
import com.yami.trading.dao.user.WithdrawMapper;
import com.yami.trading.service.*;
import com.yami.trading.service.notify.WalletTransactionMailNotificationService;
import com.yami.trading.service.syspara.SysparaService;
import com.yami.trading.service.system.LogService;
import com.yami.trading.service.system.TipService;
@@ -72,6 +73,8 @@
    WalletLogService walletLogService;
    @Autowired
    LogService logService;
    @Autowired
    private WalletTransactionMailNotificationService walletTransactionMailNotificationService;
    @Override
    public Page listRecord(Page page, String status, String roleName,
@@ -117,6 +120,13 @@
            log.setLog("通过提现申请。订单号[" + withdraw.getOrderNo() + "]。");
            logService.save(log);
            tipService.deleteTip(withdraw.getUuid().toString());
            String asset = symbol.toUpperCase();
            walletTransactionMailNotificationService.sendWithdrawSuccess(
                    user,
                    withdraw.getOrderNo(),
                    withdraw.getAmount(),
                    withdraw.getAmountFee(),
                    asset);
        }
    }
@@ -828,6 +838,9 @@
    @Override
    public void applyWithdraw(Withdraw withdraw, User user) {
        if (user.getAccountType() != null && user.getAccountType() == 1) {
            throw new YamiShopBindException("模拟账户不支持提现");
        }
        String channel = withdraw.getMethod();
        BigDecimal amount = withdraw.getAmount();
        String symbol = "btc";