From 80818916e742aa568f719d54c2ca170bc5b55d6c Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 18 十一月 2024 17:51:37 +0800 Subject: [PATCH] 预测项,计划项信息查询 --- iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java index f4120fe..e0cc621 100644 --- a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java +++ b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java @@ -1,15 +1,13 @@ package com.iailab.module.data.api.ind; +import com.iailab.module.data.api.ind.dto.ApiIndItemDTO; import com.iailab.module.data.api.ind.dto.ApiIndItemQueryDTO; import com.iailab.module.data.api.ind.dto.ApiIndItemValueDTO; import com.iailab.module.data.enums.ApiConstants; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -31,4 +29,8 @@ @PostMapping(PREFIX + "/query-ind/history-value") @Operation(summary = "查询指标历史值") List<ApiIndItemValueDTO> queryIndItemHistoryValue(@RequestBody ApiIndItemQueryDTO dto); + + @GetMapping(PREFIX + "/info/id/{id}") + @Operation(summary = "根据测点编号查询测点信息") + ApiIndItemDTO getInfoById(@PathVariable("id") String id); } \ No newline at end of file -- Gitblit v1.9.3