|
@@ -100,10 +100,14 @@ public class RoleRptController {
|
|
|
@Permission(value = "role_auth")
|
|
|
@GetMapping(value = "/getRoleQuotasInfo/{appId}")
|
|
|
public Result<AppRoleCalculateVo> getRoleTjInfo(@PathVariable("appId") String appId) {
|
|
|
+ AppRoleCalculateVo vo = new AppRoleCalculateVo();
|
|
|
ApplyInfo applyInfo = applyInfoFacade.applyDetail(appId);
|
|
|
String orgId = applyInfo.getOrgId();
|
|
|
+ //主客体授权版本,应用所属机构id可为空
|
|
|
+ if(StringUtils.isBlank(orgId)) {
|
|
|
+ return Result.success(vo);
|
|
|
+ }
|
|
|
Map<String, Object> resultMap = roleAuthInfoFacade.getRoleTjInfo(appId, orgId);
|
|
|
- AppRoleCalculateVo vo = new AppRoleCalculateVo();
|
|
|
Object roleNumsObj = resultMap.get("ROLENUMS");
|
|
|
Object initNumsObj = resultMap.get("INITNUMS");
|
|
|
Integer roleNums = roleNumsObj == null ? 0 : (Integer) roleNumsObj;
|