This commit is contained in:
苏尹岚
2020-12-03 11:15:35 +08:00
parent 3405090597
commit 088934adbd

View File

@@ -452,7 +452,7 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl
sqlParams = append(sqlParams, cityCode) sqlParams = append(sqlParams, cityCode)
} }
if oilCode != "" { if oilCode != "" {
sql += " AND POSITION(oilCode IN prices) > 0" sql += " AND POSITION(? IN prices) > 0"
sqlParams = append(sqlParams, oilCode) sqlParams = append(sqlParams, oilCode)
} }
if sortType != 0 { if sortType != 0 {