xiziwen hace 3 meses
padre
commit
efa894bd91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 //共存在多少个月