trading-order-admin/src/main/java/com/yami/trading/admin/controller/etf/KlineConfigController.java
@@ -91,8 +91,20 @@ @ApiOperation(value = "添加交易对") @PostMapping("addItem") public Result<String> addItem(@Valid @RequestBody Item item) throws Exception { if (item.getUuid() != null) { Item model = itemService.getById(item.getUuid()); if (model == null) { return Result.failed("数据不存在"); } //币类型不允许修改 if (model.getCurrencyType() != null) { item.setCurrencyType(model.getCurrencyType()); } } //新增或编辑表单保存 itemService.saveOrUpdate(item); //修改后重新缓存 itemService.reloadListAndCache(); return Result.ok("添加交易对成功"); }