--${if(GETUSERDEPARTMENTS() = "2-连锁门店"," and to_char(t.busno)= '" + GETUSERJOBTITLES() + "'","")}
可以,但是你圈住的这个是获取部门的,下面那个才是角色
支持!