From 088934adbd020911cb8dbfcd6d9c4c16fd711d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 3 Dec 2020 11:15:35 +0800 Subject: [PATCH] a --- business/model/dao/dao_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index 6227c7914..4320954c6 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -452,7 +452,7 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl sqlParams = append(sqlParams, cityCode) } if oilCode != "" { - sql += " AND POSITION(oilCode IN prices) > 0" + sql += " AND POSITION(? IN prices) > 0" sqlParams = append(sqlParams, oilCode) } if sortType != 0 {