zwxi 1 жил өмнө
parent
commit
ea8d429657

+ 3 - 0
controller/census/invoice_payment.go

@@ -1230,9 +1230,12 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 			}
 			if len(registerIds) > 0 {
 				cond += ` AND a.register_id IN ?`
+				prevCond += ` AND a.register_id IN ?`
 				pars = append(pars, registerIds)
+				prevPars = append(pars, registerIds)
 			} else {
 				cond += ` AND 1 = 2`
+				prevCond += ` AND 1 = 2`
 			}
 		}