zwxi 1 yıl önce
ebeveyn
işleme
629d44a9a7
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      controller/census/invoice_payment.go

+ 2 - 2
controller/census/invoice_payment.go

@@ -1303,7 +1303,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)) && req.ServiceTypes == "" {
 				//全部走旧查询
 				//fmt.Println("旧查询")
 				//fmt.Println("st:",st)
@@ -1407,7 +1407,7 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 						partHistoryAccumulate = 0.0 // 清零部分历史金额
 					}
 				}
-			} else if prevEndDateTime.Before(historyTime) || prevEndDateTime.Equal(historyTime) {
+			} else if (prevEndDateTime.Before(historyTime) || prevEndDateTime.Equal(historyTime)) && req.ServiceTypes == "" {
 				// 全部走旧查询
 				fmt.Println("prevSt:", prevSt)
 				fmt.Println("prevEd:", prevEd)