Pārlūkot izejas kodu

Merge branch 'fms_3.1' into debug

xiziwen 3 mēneši atpakaļ
vecāks
revīzija
f45ede5e9e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      controller/census/income_list.go

+ 1 - 1
controller/census/income_list.go

@@ -743,7 +743,7 @@ func getPaymentIncomeChartList(ch chan models.CensusIncomeChartResp, req fms.Inc
 		}
 	} else {
 		yearNum = latestTime.Year() - earliestTime.Year()
-		monthNum = int(latestTime.Month() - earliestTime.Month())
+		monthNum = int(latestTime.Month() - 1)
 	}
 
 	numMonth := yearNum*12 + monthNum //共存在多少个月