SELECT * FROM 订单 where 1=1 ${if(len(area) == 0,"","and 货主地区 = '" + area + "'")} 如果我想获取多个货主地区的数据,这个sql该怎么改,条件我设置的数据字典,并且设置了分隔符‘,’,返回的字符串。SELECT * FROM 订单 where 1=1 ${if(len(area) == 0,"","and 货主地区 in '" + (area) + "'")}我改成这样只在全部选以及选一个的时候才生效,只要勾选项超出一个,就会提示我QL command not properly ended |