|
@@ -12,6 +12,7 @@ import (
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
"math"
|
|
|
+ "sort"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
@@ -884,6 +885,10 @@ func GetBalanceExcelEdbDataMapList(chartInfoId, chartType int, calendar, startDa
|
|
|
dataListTmp, ok := dataListMap[v.EdbInfoId]
|
|
|
if ok {
|
|
|
dataList = dataListTmp
|
|
|
+ // 对dataList 根据dataTimestamp 进行排序
|
|
|
+ sort.Slice(dataList, func(i, j int) bool {
|
|
|
+ return dataList[i].DataTimestamp < dataList[j].DataTimestamp
|
|
|
+ })
|
|
|
} else {
|
|
|
//err = errors.New(fmt.Sprint("获取失败,指标类型异常", v.EdbInfoId))
|
|
|
utils.FileLog.Info(fmt.Sprintf("获取失败,指标数据异常 %d", v.EdbInfoId))
|