zwxi 1 年之前
父節點
當前提交
c1f76ada67
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      controller/census/invoice_payment.go

+ 3 - 2
controller/census/invoice_payment.go

@@ -1105,12 +1105,13 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 		}
 		// 勾选套餐筛选时忽略导入的历史数据
 		if req.StartDate == "" {
+			req.StartDate = "2023-04"
+			req.EndDate = "3023-04"
+		} else {
 			startDateTime,_ := time.Parse(utils.FormatDate, req.StartDate)
 			if startDateTime.Before(historyTime) {
 				req.StartDate = "2023-04"
 			}
-			req.EndDate = "3023-04"
-		} else {
 			req.StartDate = "2023-04"
 		}
 	}