zwxi 1 年之前
父節點
當前提交
ea8d429657
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controller/census/invoice_payment.go

+ 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`
 			}
 		}