From d826e53a08fd69e364e2bce899b3213548a08b79 Mon Sep 17 00:00:00 2001 From: xins Date: Wed, 30 Aug 2023 11:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E4=BE=9D=E5=BE=AE=E6=9C=8D=E5=8A=A11.?= =?UTF-8?q?05=E7=89=88=E6=9C=AC=EF=BC=8Ctdengine=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=AE=8C=E5=96=84=201=E3=80=81=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E4=BF=AE=E6=94=B9tag=E5=80=BC=E7=9A=84=E6=96=B9=E6=B3=95=202?= =?UTF-8?q?=E3=80=81=E5=9C=A8=E8=8E=B7=E5=8F=96=E5=8E=86=E5=8F=B2=E6=97=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86order=20by=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E9=98=B2=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/tdengine/api/RemoteTdEngineService.java | 8 ++++---- .../api/factory/RemoteTdEngineFallbackFactory.java | 10 ++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/RemoteTdEngineService.java b/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/RemoteTdEngineService.java index b7172c3..ca71a67 100644 --- a/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/RemoteTdEngineService.java +++ b/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/RemoteTdEngineService.java @@ -5,10 +5,7 @@ import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.core.hw.validated.tdengine.AddTdSTableColumn; import com.ruoyi.common.core.hw.validated.tdengine.InsertTdTable; -import com.ruoyi.tdengine.api.domain.TdHistorySelectDto; -import com.ruoyi.tdengine.api.domain.TdSelectDto; -import com.ruoyi.tdengine.api.domain.TdSuperTableVo; -import com.ruoyi.tdengine.api.domain.TdTableVo; +import com.ruoyi.tdengine.api.domain.*; import com.ruoyi.tdengine.api.factory.RemoteTdEngineFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.validation.annotation.Validated; @@ -36,6 +33,9 @@ public interface RemoteTdEngineService { @PostMapping("/tdengine/dropSuperTableColumn") R dropColumnForSuperTable(@Validated(AddTdSTableColumn.class) @RequestBody TdSuperTableVo tdSuperTableVo); + @PostMapping("/tdengine/alterTableTag") + public R alterTableTag(@Validated @RequestBody AlterTagVo alterTagVo); + @PostMapping("/tdengine/insertTable") R insertTable(@Validated(InsertTdTable.class) @RequestBody TdTableVo tdTableVo); diff --git a/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/factory/RemoteTdEngineFallbackFactory.java b/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/factory/RemoteTdEngineFallbackFactory.java index 5d9e794..4a82b59 100644 --- a/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/factory/RemoteTdEngineFallbackFactory.java +++ b/ruoyi-api/hw-api-tdengine/src/main/java/com/ruoyi/tdengine/api/factory/RemoteTdEngineFallbackFactory.java @@ -2,10 +2,7 @@ package com.ruoyi.tdengine.api.factory; import com.ruoyi.common.core.domain.R; import com.ruoyi.tdengine.api.RemoteTdEngineService; -import com.ruoyi.tdengine.api.domain.TdHistorySelectDto; -import com.ruoyi.tdengine.api.domain.TdSelectDto; -import com.ruoyi.tdengine.api.domain.TdSuperTableVo; -import com.ruoyi.tdengine.api.domain.TdTableVo; +import com.ruoyi.tdengine.api.domain.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cloud.openfeign.FallbackFactory; @@ -46,6 +43,11 @@ public class RemoteTdEngineFallbackFactory implements FallbackFactory alterTableTag(AlterTagVo alterTagVo) { + return R.fail("修改子表tag值失败:" + throwable.getMessage()); + } + @Override public R insertTable(TdTableVo tdTableVo) { return R.fail("插入数据失败:" + throwable.getMessage());