${if(fine_role == '合伙人管委会',"select *from ads.dim_hr_employeewhere region_name='总部'limit 100","select *from ads.dim_hr_employeewhere region_name='西安分所'limit 100")}
如果又是管委会的人,又是分所的人,那么fine_role取出来就是“管委会,分所”但我只要他的角色里面有“管委会”,就展示同一段sql
${if(find("管委会",fine_role )>0,"select *from ads.dim_hr_employeewhere region_name='总部'limit 100","select *from ads.dim_hr_employeewhere region_name='西安分所'limit 100")}
${if( FIND("管委会",fine_role) > 0 ,"select *from ads.dim_hr_employeewhere region_name='总部'limit 100","select *from ads.dim_hr_employeewhere region_name='西安分所'limit 100")}