在界面做筛选条件。
where 1 = 1 and t1.cardtype = '${cardtype}' --${cardtype}中cardtype为参数名称,在参数输入框中输入C就可以过滤出来了
where 1=1
${if(len(AA)==0,""," and A.A in ('"+AA+"')")}
这个可变的,
${if(len(AA)==0,""," and A.A in ('C')")}
固定为C
${if(len(账号)==0,"","and accountNumber like '%"+张浩+"%'")}