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