|
发表于 2024-11-18 10:31:10
|
显示全部楼层
首先,this.org.getPerson(this.workContext.getWork().creatorPersonDn).superior,获取到的是一个人person,
其次,this.org.listDutyNameWithIdentity,这个方法是根据身份Identity去获取职务名称,您这里传参传入的是person个人,就已经不对了,您要在这里根据个人person先获取到身份Identity,使用方法var identityList = this.org.listIdentityWithPerson( person );获取
最后,this.org.listDutyNameWithIdentity返回的是一个数组,您直接arr=="总裁";这样判断肯定是不对的,您得到数组后,是一个对象,要进行循环判断 |
|