|
@@ -3323,6 +3323,17 @@ func dealData(indexInfoList []*models.IndexInfo) ([]models.BaseFromRzdData, erro
|
|
|
Value: math.Round(indexInfo.Value*10000) / 10000,
|
|
|
}
|
|
|
dataList = append(dataList, dataOne)
|
|
|
+ } else {
|
|
|
+ // 编辑
|
|
|
+ if requestResponse.Data.Value != math.Round(indexInfo.Value*10000)/10000 {
|
|
|
+ rzdData := requestResponse.Data
|
|
|
+ rzdData.Value = math.Round(indexInfo.Value*10000) / 10000
|
|
|
+
|
|
|
+ _, err = httpRequestFill(rzdData, utils.UPDATE_RZD_EDB_DATA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|