SELECT ${IF(OR(len(a)==0,len(b)==0),"*",a+"_"+b) } from
参数为空查询全部
$(if(and(isnull(a),isnull(b),*,a+"_"+b))) 试试