Ver código fonte

Merge branch 'service_types' into debug

zwxi 1 ano atrás
pai
commit
1ba825eab6
1 arquivos alterados com 8 adições e 1 exclusões
  1. 8 1
      controller/census/invoice_payment.go

+ 8 - 1
controller/census/invoice_payment.go

@@ -1069,6 +1069,13 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 		} else {
 			cond += ` AND 1 = 2`
 		}
+		// 勾选套餐筛选时忽略导入的历史数据
+		if req.StartDate == "" {
+			req.StartDate = "2023-04"
+			req.EndDate = "3023-04"
+		} else {
+			req.StartDate = "2023-04"
+		}
 	}
 
 
@@ -1303,7 +1310,7 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 						partAccumulate = 0.0
 					}
 				}
-			} else if endDateTime.Before(historyTime) || endDateTime.Equal(historyTime) {
+			} else if endDateTime.Before(historyTime) || endDateTime.Equal(historyTime)  {
 				//全部走旧查询
 				//fmt.Println("旧查询")
 				//fmt.Println("st:",st)