فهرست منبع

图例名称变更

xyxie 1 سال پیش
والد
کامیت
139a3bd4e0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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
 		}