2018-01-19 16:50
@JFinal9527 参考下这个:
http://www.jfinal.com/share/324
http://www.jfinal.com/share/492
2018-01-19 12:10
@怎懂落寞 不需要手动去除,用个 #if 指令搞定,像下面这样:
#sql(...)
select * from t where 1 = 1
#for( x : cond)
#if (x.value) and #(x.key) #para(value) #end
#end
#end