sql="select id, fnumber, fname, ftype from junc_org_map where (ftype = 0 or (ftype = 1 and fobjid in("+companyIds+")) or (ftype = 2 and fobjid in("+departmentIds+"))) ";
if(StringUtils.isNotBlank(companyIds)){
sql="select id, fnumber, fname, ftype from junc_org_map where (ftype = 0 or (ftype = 1 and fobjid in("+companyIds+"))) ";
}else{
sql="select id, fnumber, fname, ftype from junc_org_map where ftype = 0 ";