Parcourir la source

Merge branch 'fix/2023-3-6'

Roc il y a 2 ans
Parent
commit
710bc13af9
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      models/base_from_lt.go

+ 1 - 3
models/base_from_lt.go

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