在下拉树中,选择多个值,传值类型为:字符串,如下图 ,当选择多个值时应应如何在数据集中拼接sql条件 完成传参?
已尝试过如何几种拼接方式 ,但都报数据集配置错误
${if(len(city_code)==0||city_code=="''","","and city_code in ('"+ city_code +"') ")} 此条件只能传一个值,多个值时报错
city_code in ('${city_code}') 报错
${if(len(city_code)==0||city_code=="''","","and city_code in ('"+ SUBSTITUTE(city_code,",","','") +"') ")}
这样,因下拉树没办法设置分隔符,需要sql处理
http://bbs.fanruan.com/wenda/question1/87788.html
if(len($city_code)==0||$city_code=="''","","and city_code in ('"+ $city_code +"') ") 在一个单元格里面写这个~预览你就知道是啥问题了~一般都是最终的SQL不规范~
in ('"+treelayer(city_code,true,"\',\'")+"')")试试呢