zyy
2025-12-29 645f40f5f61f8fa217ef01b5b2aaaf687b173577
trading-order-service/src/main/java/com/yami/trading/service/ipo/impl/UserPromiseRecordServiceImpl.java
@@ -96,12 +96,15 @@
             throw new YamiShopBindException("未提交认缴记录");
         }
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(userPromiseRecords.get(0).getCreateTime());
        calendar.add(Calendar.DAY_OF_YEAR,newSharesConfig.getLockDay());
        if (System.currentTimeMillis() < calendar.getTimeInMillis()){
               throw new YamiShopBindException("新股锁定中无法卖出");
        }
         if (newSharesConfig.getLockDay() > 0) {
             Calendar calendar = Calendar.getInstance();
             calendar.setTime(userPromiseRecords.get(0).getCreateTime());
             calendar.add(Calendar.DAY_OF_YEAR,newSharesConfig.getLockDay());
             if (System.currentTimeMillis() < calendar.getTimeInMillis()){
                 throw new YamiShopBindException("新股锁定中无法卖出");
             }
         }
         BigDecimal usdt=new BigDecimal("0");
         if (CollectionUtil.isNotEmpty(userPromiseRecords)){
             List<Realtime> realtimes = dataService.realtime(userPromiseRecords.get(0).getProductCode());