ziwen 1 年之前
父节点
当前提交
1dc11f8ba7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controller/census/invoice_payment.go

+ 3 - 3
controller/census/invoice_payment.go

@@ -1021,7 +1021,7 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 		cond += ` AND b.contract_type = 1 `
 		historyCond += ` AND new_company = 1`
 	} else if req.CompanyType == 2 {
-		cond += ` AND b.contract_type = 2 `
+		cond += ` AND b.contract_type IN (2,3,4) `
 		historyCond += ` AND new_company = 0`
 	}
 
@@ -1145,8 +1145,8 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 			histrtyCond += ` AND new_company = 1 `
 			prevHistoryCond += ` AND new_company = 1 `
 		} else if req.CompanyType == 2 {
-			cond += ` AND b.contract_type = 2 `
-			prevCond += ` AND b.contract_type = 2 `
+			cond += ` AND b.contract_type IN (2,3,4) `
+			prevCond += ` AND b.contract_type IN (2,3,4) `
 			histrtyCond += ` AND new_company = 0 `
 			prevHistoryCond += ` AND new_company = 0 `
 		}