|
@@ -9,6 +9,7 @@ import (
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
|
+ "github.com/shopspring/decimal"
|
|
|
"sort"
|
|
|
"strconv"
|
|
|
"strings"
|
|
@@ -177,9 +178,10 @@ func (this *BaseFromThsHfController) Search() {
|
|
|
break
|
|
|
}
|
|
|
limit += 1
|
|
|
+ strVal := decimal.NewFromFloat(d.Value).Round(4).String()
|
|
|
item.IndexData = append(item.IndexData, data_manage.ThsHfSearchEdbData{
|
|
|
DataTime: d.DataTime.Format(utils.FormatDateTime),
|
|
|
- Value: fmt.Sprintf("%.f", d.Value),
|
|
|
+ Value: strVal,
|
|
|
})
|
|
|
}
|
|
|
resp = append(resp, item)
|