Explorar o código

fix:预测指标支持年度

Roc %!s(int64=2) %!d(string=hai) anos
pai
achega
1954442560
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/edb_info.go

+ 1 - 1
models/edb_info.go

@@ -676,7 +676,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()+1, 12, 31, 0, 0, 0, 0, time.Now().Location())
-			if !currDate.After(endDate) && !currDate.Equal(endDate) {
+			if !currDate.After(endDate) && !currDate.Equal(startDate) {
 				dayList = append(dayList, currDate)
 			}
 		}