浏览代码

Merge branch 'fms_3.1' into debug

xiziwen 3 月之前
父节点
当前提交
f45ede5e9e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {
 	} else {
 		yearNum = latestTime.Year() - earliestTime.Year()
 		yearNum = latestTime.Year() - earliestTime.Year()
-		monthNum = int(latestTime.Month() - earliestTime.Month())
+		monthNum = int(latestTime.Month() - 1)
 	}
 	}
 
 
 	numMonth := yearNum*12 + monthNum //共存在多少个月
 	numMonth := yearNum*12 + monthNum //共存在多少个月