Explorar o código

图例名称变更

xyxie hai 1 ano
pai
achega
139a3bd4e0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      services/data/chart_info.go

+ 2 - 2
services/data/chart_info.go

@@ -857,7 +857,7 @@ func GetSeasonEdbInfoDataListByXDate(dataList []*data_manage.EdbDataList, latest
 			return
 		}
 
-		if lastDateT.Before(startT) {
+		if lastDateT.Before(startT) || lastDateT.Before(endT) {
 			//如果最新的日期在起始日之前,则跳出循环
 			break
 		}
@@ -1038,7 +1038,7 @@ func GetSeasonEdbInfoDataListByXDateNong(result *data_manage.EdbDataResult, late
 			return
 		}
 
-		if lastDateT.Before(startT) {
+		if lastDateT.Before(startT) || lastDateT.Before(endT) {
 			//如果最新的日期在起始日之前,则跳出循环
 			break
 		}