Selaa lähdekoodia

fix:图表类型

Roc 2 vuotta sitten
vanhempi
commit
55b6a00da2
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      controller/chart/chart_info.go

+ 3 - 3
controller/chart/chart_info.go

@@ -210,7 +210,9 @@ func GetChartInfoDetail(c *gin.Context) {
 
 		var startDateReal string
 		var diffSeconds int64
-		if chartType == 1 {
+		if chartType == 2 { //季节性图表
+			startDateReal = startDate
+		} else {
 			if v.EdbInfoType == 0 && v.LeadUnit != "" && v.LeadValue > 0 {
 				// 领先指标
 				var startTimeRealTemp time.Time
@@ -237,8 +239,6 @@ func GetChartInfoDetail(c *gin.Context) {
 			} else {
 				startDateReal = startDate
 			}
-		} else {
-			startDateReal = startDate
 		}
 		//fmt.Println("line 1011 chart:", v.Source, v.EdbInfoId, startDateReal, endDate)
 		calendarPreYear := 0