Roc 2 سال پیش
والد
کامیت
ce0c9cc1fb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      models/edb_info.go

+ 1 - 1
models/edb_info.go

@@ -668,7 +668,7 @@ func getPredictEdbDayList(startDate, endDate time.Time, frequency string) (dayLi
 	case "月度":
 		for currDate := startDate; currDate.Before(endDate) || currDate.Equal(endDate); {
 			currDate = time.Date(currDate.Year(), currDate.Month(), 1, 0, 0, 0, 0, time.Now().Location()).AddDate(0, 1, -1)
-			if !currDate.After(endDate) {
+			if !currDate.After(endDate) && !currDate.Equal(startDate) {
 				dayList = append(dayList, currDate)
 			}
 			currDate = currDate.AddDate(0, 0, 1)