需求:
下拉复选框、日期控件和文本框的「同时」过滤查询
————
SELECT * FROM 订单 where 1=1
${if(len(复选框控件名) == 0,""," and 货主地区 in ('" + area + "')")} -- 注意控件分割符
${if(len(日期控件名) == 0,""," and 日期字段 = '" + 日期控件名 + "'")}
${if(len(文本控件名) == 0,""," and 文本字段 = '" + 文本控件名 + "'")}
——————————————————