|
@@ -194,13 +194,13 @@ func refreshAllCalculateResidualAnalysis(edbInfoId, source, subSource, formulaIn
|
|
|
//for _, mapping := range configMapping {
|
|
|
mapping := configMap[int64(edbInfoId)]
|
|
|
var edbDataResidualAnalysisList []edbDataResidualAnalysis
|
|
|
- if mapping.ResidualType == 1 {
|
|
|
+ if mapping.IndexType == 1 {
|
|
|
edbInfo, err := GetEdbInfoById(int(mapping.EdbInfoId))
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- for _, edbData := range mappingEdbList[0].DataList {
|
|
|
+ for _, edbData := range mappingEdbList[1].DataList {
|
|
|
value, _ := strconv.ParseFloat(edbData.Value, 64)
|
|
|
edbDataResidualAnalysisList = append(edbDataResidualAnalysisList, edbDataResidualAnalysis{
|
|
|
EdbInfoId: int(mapping.EdbInfoId),
|
|
@@ -217,7 +217,7 @@ func refreshAllCalculateResidualAnalysis(edbInfoId, source, subSource, formulaIn
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- } else if mapping.ResidualType == 2 {
|
|
|
+ } else if mapping.IndexType == 2 {
|
|
|
edbInfo, err := GetEdbInfoById(int(mapping.EdbInfoId))
|
|
|
if err != nil {
|
|
|
return err
|