ipo
zyy
2026-01-10 3edc0674d8a3206b1528f50c8443cff1a6bb6da8
trading-order-service/src/main/java/com/yami/trading/service/ipo/impl/UserPromiseRecordServiceImpl.java
@@ -85,7 +85,7 @@
        if (newSharesConfig==null){
            throw new YamiShopBindException("现股已被删除");
        }
         applyNewSharesOrderService.updateById(applyNewSharesOrder);
         //applyNewSharesOrderService.updateById(applyNewSharesOrder);
         List<UserPromiseRecord> userPromiseRecords= findByOrderNo(orderNo);
         for (UserPromiseRecord u:userPromiseRecords){
            if ( u.getStatus()==1){
@@ -122,17 +122,20 @@
                     throw new YamiShopBindException("现股已卖出");
                 }
                 Realtime realtime= realtimes.get(0);
                 applyNewSharesOrder.setSellPrice(BigDecimal.valueOf(realtime.getClose()));
                 usdt = userPromiseRecord.getDeductNumber().multiply(BigDecimal.valueOf(realtime.getClose()));
                 userPromiseRecord.setShowFlag(1);
             }
         }
        else {
             throw new YamiShopBindException("认缴记录不存在!");
             throw new YamiShopBindException("认缴记录不存在");
         }
        applyNewSharesOrder.setSell(1);
        applyNewSharesOrderService.updateById(applyNewSharesOrder);
        updateBatchById(userPromiseRecords);
        walletService.updateMoney("USDT",userId, usdt, BigDecimal.ZERO,
                Constants.MONEYLOG_CATEGORY_IPO_SEll, Constants.WALLET, Constants.MONEYLOG_CATEGORY_IPO_SEll, applyNewSharesOrder.getSymbolName()+
                        "新股卖出新增USDT"+usdt.doubleValue());
                        "新股卖出"+applyNewSharesOrder.getOrderNo() + ":新增USDT" + usdt.doubleValue());
//        BigDecimal initMarketValue = order.getWinningNumber().multiply(order.getSubPrice());
//        if (CollectionUtil.isNotEmpty(realtimes)) {