| | |
| | | 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); |
| | | |
| | |
| | | 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"); |
| | | } |
| | | |
| | | |
| | |
| | | // 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); |