二个字段,and过滤还是or过滤,参考下面方式,自行调整!
--------------------
-- 单元格过滤:
————————数据集过滤:
-- and过滤
SELECT * FROM 订单
WHERE 1=1
${if(len(a) == 0,"","and 字段a = '" + a + "' and 字段b = '"+ a +"'")}
-- or过滤
SELECT * FROM 订单
WHERE 1=1
${if(len(a) == 0,"","and (字段a = '" + a + "' or 字段b = '"+ a +"')")}