From b651cbfd94d8d636c01b61e483ed1cff98e1bcb9 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 23 十二月 2024 16:13:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java index 28e6b4b..98ab9d3 100644 --- a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java +++ b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java @@ -9,6 +9,7 @@ import java.util.List; import java.util.Map; +import java.util.Set; /** * @author PanZhibao @@ -29,6 +30,10 @@ @Operation(summary = "根据测点ID查询测点信息") ApiPointDTO getInfoById(@PathVariable("pointId") String pointId); + @PostMapping(PREFIX + "/info/ids") + @Operation(summary = "根据多个测点ID查询测点信息") + List<ApiPointDTO> getInfoByIds(@RequestParam("pointNos") Set<String> pointIds); + @PostMapping(PREFIX + "/query-points/real-value") @Operation(summary = "查询多个测点当前值") Map<String, Object> queryPointsRealValue(@RequestParam("pointNos") List<String> pointNos); @@ -37,9 +42,9 @@ @Operation(summary = "查询多个测点历史值") Map<String, List<Map<String, Object>>> queryPointsHistoryValue(@RequestBody ApiPointsValueQueryDTO queryDto); - @GetMapping(PREFIX + "/query-point/history-value") + @PostMapping(PREFIX + "/query-point/history-value") @Operation(summary = "查询单个测点历史值") - List<ApiPointValueDTO> queryPointHistoryValue(@RequestParam ApiPointValueQueryDTO queryDto); + List<ApiPointValueDTO> queryPointHistoryValue(@RequestBody ApiPointValueQueryDTO queryDto); @PutMapping(PREFIX + "/write-point/real-value") @Operation(summary = "写入单个测点值") -- Gitblit v1.9.3