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