where 1=1
${if(len(员工编号参数) == 0,"","and 员工编号字段 like '%" +员工编号参数+ "%'")}
${if(len(电话号参数) == 0,"","and 电话号字段 like '%" +电话号参数+ "%'")}
参考:https://help.fanruan.com/finereport/doc-view-2394.html#5