获取当前人的角色
BIZ层的java中平台提供的API可以获取到当前人的角色ID,如下: Map<String,String> sysParams = (Map<String, String>) ContextHelper.getSysParams(); System.out.println(sysParams.get("allRoles")); UI2层的js中平台提供的API可以获取到当前人的角色code、name、ID,如下: //当前人的角色code this.getContext().getAllRoleCodes(); //当前人的角色name this.getContext().getAllRoleNames(); //当前人的角色ID this.getContext().getAllRoles();