|
@@ -472,7 +472,7 @@ func SaveResidualAnalysis(req residual_analysis_model.ResidualAnalysisIndexSaveR
|
|
|
edbInfoId = int64(edbInfo.EdbInfoId)
|
|
|
edbCode = edbInfo.EdbCode
|
|
|
|
|
|
- if edbInfoByCondition.EdbInfoId != edbInfo.EdbInfoId {
|
|
|
+ if edbInfoByCondition != nil && edbInfoByCondition.EdbInfoId != edbInfo.EdbInfoId {
|
|
|
return fmt.Errorf("指标名称重复")
|
|
|
}
|
|
|
|
|
@@ -525,6 +525,8 @@ func SaveResidualAnalysis(req residual_analysis_model.ResidualAnalysisIndexSaveR
|
|
|
SysUserId: sysUser.AdminId,
|
|
|
LatestDate: indexLatestDate,
|
|
|
LatestValue: indexLatestValue,
|
|
|
+ MinValue: indexMin,
|
|
|
+ MaxValue: indexMax,
|
|
|
CreateTime: time.Now(),
|
|
|
ModifyTime: time.Now(),
|
|
|
})
|