소스 검색

Merge branch 'feature/eta2.6.5_kpler' into debug

xyxie 1 주 전
부모
커밋
030d565141
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/base_from_kpler.go

+ 2 - 2
services/base_from_kpler.go

@@ -54,14 +54,14 @@ func getKplerDataByApi(params models.KplerSearchEdbReq, serverUrl string) (list
 	fromZoneNamesStr := params.FromZoneNames
 	toZoneNamesStr := params.ToZoneNames
 	
-	//granularity := GetKplerGranularity(params.Granularity)
+	granularity := GetKplerGranularity(params.Granularity)
 	libreq := new(models.KplerFlowDataLibReq)
 	libreq.Products = productNamesStr
 	libreq.FromZones = fromZoneNamesStr
 	libreq.ToZones = toZoneNamesStr
 	libreq.Split = params.Split
 	libreq.FlowDirection = params.FlowDirection
-	libreq.Granularity = params.Granularity
+	libreq.Granularity = granularity
 	libreq.Unit = params.Unit
 	libreq.WithIntraRegion = "true"
 	libreq.WithForecast = "true"