zwxi 1 год назад
Родитель
Сommit
58f03b6b6d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controller/census/invoice_payment.go

+ 2 - 2
controller/census/invoice_payment.go

@@ -1051,8 +1051,8 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 		cond += ` AND b.contract_type IN (2,3,4) `
 		historyCond += ` AND new_company = 0 `
 	} else if req.CompanyType == 3 {
-		cond += ` AND b.contract_type = 1 `
-		historyCond += ` AND new_company = 1 `
+		cond += ` AND b.contract_type IN (2,3,4) `
+		historyCond += ` AND new_company = 0 `
 	}
 
 	var latestTime time.Time