新版仿ok交易所-后端
1
zj
19 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-service/src/main/java/com/yami/trading/service/etf/KlineConfigService.java
@@ -86,7 +86,7 @@
            KlineConfig config = this.getBaseMapper().selectById(id);
            if (config != null) {
                if (config.getOpenTimeTs() <= currentTimeMillis && config.getCloseTimeTs() >= currentTimeMillis) {
                    throw new YamiShopBindException("当前为开市时间,不能删除");
                    throw new YamiShopBindException("Market is open, deletion is not allowed");
                }
                removeById(id);
@@ -106,7 +106,7 @@
        List<RobotModel> robotModels = new LambdaQueryChainWrapper<>(robotModelMapper).between(RobotModel::getPercent, divide.subtract(new BigDecimal(0.5)), divide.add(new BigDecimal(0.5))).list();
        if (CollectionUtil.isEmpty(robotModels)) {
            throw new YamiShopBindException("没有满足条件的趋势图");
            throw new YamiShopBindException("No trend chart matching the criteria");
        }
@@ -574,11 +574,11 @@
//        List<KlineConfig> klineConfigs = this.baseMapper.selectList(queryWrapper);
//
//        if (CollectionUtils.isEmpty(klineConfigs)) {
//            throw new YamiShopBindException("未查询到当天配置的秒级K线图");
//            throw new YamiShopBindException("No second-level K-line configured for today");
//        }
//
//        if (klineConfigs.size() > 1) {
//            throw new YamiShopBindException("查询到多个当天配置的秒级K线图");
//            throw new YamiShopBindException("Multiple second-level K-lines configured for today");
//        }
//
//        KlineConfig klineConfig = klineConfigs.get(0);