select* from ads_gsms.salestation_poi_holo where city in '${city}'
and brand = '${brand}',这是我的sql,为啥会报错误呢
估计你的分隔符不对,还有,in的话是 in('XXXX')
参考
select* from ads_gsms.salestation_poi_holo where city in ('${replace(city,",","','")}')
and brand = '${brand}'
参数值不要带引号
分隔符那里设置得有问题吧?
多了一对引号
city这个参数 返回值你要这样子设置下同时写in的这个 你要考虑空的情况,建议改成
select* from ads_gsms.salestation_poi_holo where
brand = '${brand}'
${if(city='',"and 1=1","and city in ('" + ciity + "')")}