finereport with multi-parameter query

1, sql statement

SELECT * FROM 订单 as dt where 1=1
${if(len(comboBox0)==0,""," and dt.货主地区='"+comboBox0+"'")}
${if(len(comboBox1)==0,""," and dt.货主省份='"+comboBox1+"'")}
${if(len(comboBox2)==0,""," and dt.City owner ='"+comboBox2+"'")}

2, the model is trying to

 

Guess you like

Origin www.cnblogs.com/wuzaipei/p/11244961.html