|
@@ -83,6 +83,13 @@ func getPredictEdbDayList(startDate, endDate time.Time, frequency string) (dayLi
|
|
|
}
|
|
|
currDate = currDate.AddDate(0, 0, 1)
|
|
|
}
|
|
|
+ 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(startDate) {
|
|
|
+ dayList = append(dayList, currDate)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return
|
|
|
}
|