|
@@ -439,7 +439,6 @@ func GetChartEdbData(chartInfoId int, startDate, endDate string, baseEdbInfoMapp
|
|
|
|
|
|
func BarChartData(baseEdbInfoMapping *data_manage.ChartEdbInfoMapping, edbInfoMappingList []*data_manage.ChartEdbInfoMapping, futureGoodMappingList []*future_good2.FutureGoodEdbInfo, edbDataListMap map[int][]*data_manage.EdbDataList, barChartInfoDateList []data_manage.BarChartInfoDateReq, regionType, latestDate string) (edbIdList []int, yDataList []data_manage.YData, err error) {
|
|
|
|
|
|
- edbDataMap := make(map[int]map[string]float64)
|
|
|
|
|
|
baseEdbDataMap := make(map[int]map[string]float64)
|
|
|
edbInfoMappingMap := make(map[int]struct{})
|
|
@@ -456,12 +455,8 @@ func BarChartData(baseEdbInfoMapping *data_manage.ChartEdbInfoMapping, edbInfoMa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ edbDataMap := make(map[int]map[string]float64)
|
|
|
for edbInfoId, edbDataList := range edbDataListMap {
|
|
|
- if _, ok := edbInfoMappingMap[edbInfoId]; ok {
|
|
|
- continue
|
|
|
- }
|
|
|
edbDateData := make(map[string]float64)
|
|
|
for _, edbData := range edbDataList {
|
|
|
edbDateData[edbData.DataTime] = edbData.Value
|
|
@@ -552,7 +547,9 @@ func BarChartData(baseEdbInfoMapping *data_manage.ChartEdbInfoMapping, edbInfoMa
|
|
|
|
|
|
currMonth := realDateTime.Month()
|
|
|
currYear := realDateTime.Year()
|
|
|
- mList := make([]int, 0)
|
|
|
+
|
|
|
+ mList := make([]int, 0)
|
|
|
+
|
|
|
indexList := make([]int, 0)
|
|
|
if regionType == `国内` {
|
|
|
for i := currMonth + 1; i <= 12; i++ {
|