试试这个。
where 1=1 ${if(len(manager)==0,""," and (A.jinbanren = '" +manager+"' or B.tijiaoren = '"+manager +"')")}
and (a.aaa=参数 or b.aaa=参数)
最后改成 ${if(len(manager)=0,"","and (a.jinbanren= '"+manager+"' or b.tijiaoren= '"+manager+"')")}