Эх сурвалжийг харах

残差分析-对比指标

gmy 5 сар өмнө
parent
commit
8fdb88dc26

+ 2 - 0
models/data_manage/edb_info.go

@@ -456,6 +456,8 @@ type EdbInfoList struct {
 	HaveOperaAuth    bool                    `description:"是否有数据权限,默认:false"`
 	IsStaticData     int                     `description:"是否是静态指标,0否,1是"`
 	IsSupplierStop   int                     `description:"是否供应商停更:1:停更,0:未停更"`
+	MinValue         float64                 `description:"最小值"`
+	MaxValue         float64                 `description:"最大值"`
 }
 
 type EdbDataInsertConfigItem struct {

+ 2 - 0
services/residual_analysis_service/residual_analysis_service.go

@@ -380,6 +380,8 @@ func ContrastPreview(indexCode string) (residual_analysis_model.ResidualAnalysis
 	resp.EdbName = edbInfo.EdbName
 	resp.Unit = edbInfo.Unit
 	resp.Frequency = edbInfo.Frequency
+	resp.MinValue = edbInfo.MinValue
+	resp.MaxValue = edbInfo.MaxValue
 	resp.DataList = dataList
 	return resp, nil
 }