${if(user = 'admin','select * from (select DISTINCT a.projectid,a.projectname from dim_fr_yy_compro a) aa','select * from (select DISTINCT a.projectid,a.projectname from dim_fr_yy_compro a
right join . b on b.ProjectID = a.projectid
where b.userid = 'user') bb')}