|
@@ -3,6 +3,7 @@ package models
|
|
|
import (
|
|
|
"fmt"
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
+ "github.com/shopspring/decimal"
|
|
|
"hongze/hongze_edb_lib/utils"
|
|
|
"reflect"
|
|
|
"strconv"
|
|
@@ -99,8 +100,8 @@ func RefreshEdbDataFromLt(edbInfoId int, edbCode, startDate string, ltDataList m
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- //saveValue := decimal.NewFromFloat(sValue).Round(4).String()
|
|
|
- saveValue := utils.SubFloatToString(sValue, 30)
|
|
|
+ saveValue := decimal.NewFromFloat(sValue).Round(4).String()
|
|
|
+ //saveValue := utils.SubFloatToString(sValue, 30)
|
|
|
if findItem, ok := existMap[eDate]; !ok {
|
|
|
timestamp := dataTime.UnixNano() / 1e6
|
|
|
timeStr := fmt.Sprintf("%d", timestamp)
|