zwxi 1 year ago
parent
commit
f12b2929e0
1 changed files with 0 additions and 4 deletions
  1. 0 4
      controller/census/invoice_payment.go

+ 0 - 4
controller/census/invoice_payment.go

@@ -1168,10 +1168,6 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 		if req.StartDate != "" && req.EndDate != "" {
 			startDate = reqStartDate.AddDate(0, i, 0).Format("2006-01")
 			prevStartDate = reqStartDate.AddDate(-1, i, 0).Format("2006-01")
-			if reqEndDate.After(latestTime) {
-				endDateTime = latestTime.AddDate(0, i-numMonth+1, -1)
-				prevEndDateTime = latestTime.AddDate(-1, i-numMonth+1, -1)
-			}
 		} else {
 			startDate = latestTime.AddDate(0, i-numMonth, 0).Format("2006-01")
 			prevStartDate = latestTime.AddDate(-1, i-numMonth, 0).Format("2006-01")