From 68a07578afa980a4babe9e0c7a3566fc26fa42c5 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期日, 06 十月 2024 21:55:00 +0800
Subject: [PATCH] 指标值查询

---
 iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java |   10 ++++++++--
 iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/constant/CommonConstant.java  |    6 ++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/constant/CommonConstant.java b/iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/constant/CommonConstant.java
index 5d54a3c..5fb8fca 100644
--- a/iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/constant/CommonConstant.java
+++ b/iailab-framework/iailab-common/src/main/java/com/iailab/framework/common/constant/CommonConstant.java
@@ -1,10 +1,16 @@
 package com.iailab.framework.common.constant;
 
+import java.math.BigDecimal;
+
 /**
  * @Description: 通用常量
  */
 public interface CommonConstant {
 
+    BigDecimal BAD_VALUE = new BigDecimal("-2");
+
+    BigDecimal ZERO_VALUE = new BigDecimal("0");
+
 	/**
 	 * 正常状态
 	 */
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 141c018..71c88d7 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
@@ -6,8 +6,10 @@
 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 java.util.List;
 
@@ -22,7 +24,11 @@
 
     String PREFIX = ApiConstants.PREFIX + "/ind-item";
 
-    @PostMapping(PREFIX + "/vlues")
+    @GetMapping(PREFIX + "/query-ind/default-value")
     @Operation(summary = "查询指标项")
-    List<ApiIndItemValueDTO> queryIndItemValues(@RequestBody ApiIndItemQueryDTO dto);
+    List<ApiIndItemValueDTO> queryIndItemDefaultValue(@RequestParam String itemNo);
+
+    @PostMapping(PREFIX + "/query-ind/history-value")
+    @Operation(summary = "查询指标项")
+    List<ApiIndItemValueDTO> queryIndItemHistoryValue(@RequestBody ApiIndItemQueryDTO dto);
 }
\ No newline at end of file

--
Gitblit v1.9.3