|
@@ -3921,8 +3921,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
|
|
|
} else {
|
|
|
// 如果跨年且大于等于一年
|
|
|
// double后截取
|
|
|
- newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year()-1, 0, 0)
|
|
|
- startDate = startDate.AddDate(-1, 0, 0)
|
|
|
+ newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year(), 0, 0)
|
|
|
if newDate.After(startDate) {
|
|
|
// 处理上下限列表
|
|
|
if value, ok := maxValueMap[newDate]; ok {
|
|
@@ -3944,7 +3943,8 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
|
|
|
dataTimeMap[newDate] = newDate
|
|
|
}
|
|
|
|
|
|
- newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year(), 0, 0)
|
|
|
+ newDate = dateTime.AddDate(time.Now().Year()-dateTime.Year()+1, 0, 0)
|
|
|
+ endDate = endDate.AddDate(1, 0, 0)
|
|
|
if newDate.Before(endDate) {
|
|
|
// 处理上下限列表
|
|
|
if value, ok := maxValueMap[newDate]; ok {
|