图1
图2
图3
图4
做一个「参数空值判断」即可!
——
${if(len(projectIds)=0,""," and p.org_id in ("+projectIds+")")}
——————
${if(len(projectIds)=0," and p.org_id =0 "," and p.org_id in ("+projectIds+")")}
————————————————