zwxi 1 жил өмнө
parent
commit
58f03b6b6d

+ 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