Browse Source

期货数据不存在时不报错

xyxie 8 months ago
parent
commit
0c00477d47
1 changed files with 3 additions and 2 deletions
  1. 3 2
      services/data/future_good/chart_info.go

+ 3 - 2
services/data/future_good/chart_info.go

@@ -298,8 +298,9 @@ func GetChartEdbData(chartInfoId int, startDate, endDate string, baseEdbInfoMapp
 		dataList := make([]*data_manage.EdbDataList, 0)
 		tmpDataList, ok := tmpDataListMap[v.EdbInfoId]
 		if !ok {
-			err = fmt.Errorf("期货数据不存在 FutureGoodEdbInfoId: %d", v.EdbInfoId)
-			return
+			/*err = fmt.Errorf("期货数据不存在 FutureGoodEdbInfoId: %d", v.EdbInfoId)
+			return*/
+			continue
 		}
 		for _, tmpData := range tmpDataList {
 			dataList = append(dataList, &data_manage.EdbDataList{