传入多个查询参数时,某些情况下,只使用到其中一个或两个,这种情况下怎么动态的拼接出sql
and的拼接select * from table where 1=1每次拼接 and xxx=xxxor拼接(select * from table where xxx=xxx) union (select * from table where yyy=yyy) ...