xiziwen 3 luni în urmă
părinte
comite
57232a7daf
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      controller/census/income_list.go

+ 3 - 3
controller/census/income_list.go

@@ -1378,7 +1378,7 @@ func getCensusIncomeList(ch chan base.BaseData, req fms.IncomeListReq) (baseData
 				}
 
 				if req.Keyword != "" {
-					histrtyCond += ` AND company_name LIKE ?`
+					histrtyCond += ` AND company_name LIKE ? `
 					historyPars = append(historyPars, "%"+req.Keyword+"%")
 				}
 
@@ -1504,7 +1504,7 @@ func getCensusIncomeList(ch chan base.BaseData, req fms.IncomeListReq) (baseData
 
 				if req.Keyword != "" {
 					histrtyCond += ` AND company_name LIKE ?`
-					historyPars = append(pars, "%"+req.Keyword+"%")
+					historyPars = append(historyPars, "%"+req.Keyword+"%")
 				}
 
 				results, e := fms.GetIncomeHistory(histrtyCond, historyPars)
@@ -1632,7 +1632,7 @@ func getCensusIncomeList(ch chan base.BaseData, req fms.IncomeListReq) (baseData
 
 				if req.Keyword != "" {
 					amountCond += ` AND c.company_name LIKE ?`
-					amountPars = append(pars, "%"+req.Keyword+"%")
+					amountPars = append(amountPars, "%"+req.Keyword+"%")
 				}
 
 				results, e := fms.GetContractSummaryIncomeAmount(amountCond, amountPars)