1、sql
SELECT * FROM [銷量]
where
1=1 ${if(len(銷售員1) == 2,"","and 銷售員 in (" + 銷售員1 + ")")}
2、配置
注:https://bbs.fanruan.com/wenda/question1/69268.html
https://bbs.fanruan.com/wenda/question/15290.html
https://bbs.fanruan.com/wenda/question/19372.html
3、在sql中添加查詢條件
${if(len(qy)==0,""," and qy ='"+qy+"'")}