|
@@ -69,12 +69,12 @@ public class RoleRptController {
|
|
Page<TreeInfoVO> page = new PageImpl<TreeInfoVO>();
|
|
Page<TreeInfoVO> page = new PageImpl<TreeInfoVO>();
|
|
if (StringUtils.isNotEmpty(appId)) {
|
|
if (StringUtils.isNotEmpty(appId)) {
|
|
ApplyInfo applyInfo = applyInfoFacade.applyDetail(appId);
|
|
ApplyInfo applyInfo = applyInfoFacade.applyDetail(appId);
|
|
- String appOrgId = applyInfo.getOrgId();
|
|
|
|
|
|
+ String appOrgCode = applyInfo.getOrgCode();
|
|
//机构下的分配情况,经过权限中心导入的应用机构id不是不填项
|
|
//机构下的分配情况,经过权限中心导入的应用机构id不是不填项
|
|
- if(StringUtils.isBlank(appOrgId)) {
|
|
|
|
|
|
+ if(StringUtils.isBlank(appOrgCode)) {
|
|
return Result.success(page.getTotalElements(),page.getContent());
|
|
return Result.success(page.getTotalElements(),page.getContent());
|
|
}
|
|
}
|
|
- searchable.addSearchFilter("appOrgId", SearchOperator.eq, appOrgId);
|
|
|
|
|
|
+ searchable.addSearchFilter("appOrgCode", SearchOperator.eq, appOrgCode);
|
|
page = roleAuthInfoFacade.getRptList(searchable.toSearchDTO());
|
|
page = roleAuthInfoFacade.getRptList(searchable.toSearchDTO());
|
|
for (TreeInfoVO treeInfoVO : page.getContent()) {
|
|
for (TreeInfoVO treeInfoVO : page.getContent()) {
|
|
String orgId = treeInfoVO.getId();
|
|
String orgId = treeInfoVO.getId();
|
|
@@ -101,12 +101,12 @@ public class RoleRptController {
|
|
public Result<AppRoleCalculateVo> getRoleTjInfo(@PathVariable("appId") String appId) {
|
|
public Result<AppRoleCalculateVo> getRoleTjInfo(@PathVariable("appId") String appId) {
|
|
AppRoleCalculateVo vo = new AppRoleCalculateVo();
|
|
AppRoleCalculateVo vo = new AppRoleCalculateVo();
|
|
ApplyInfo applyInfo = applyInfoFacade.applyDetail(appId);
|
|
ApplyInfo applyInfo = applyInfoFacade.applyDetail(appId);
|
|
- String orgId = applyInfo.getOrgId();
|
|
|
|
|
|
+ String orgCode = applyInfo.getOrgCode();
|
|
//主客体授权版本,应用所属机构id可为空
|
|
//主客体授权版本,应用所属机构id可为空
|
|
- if(StringUtils.isBlank(orgId)) {
|
|
|
|
|
|
+ if(StringUtils.isBlank(orgCode)) {
|
|
return Result.success(vo);
|
|
return Result.success(vo);
|
|
}
|
|
}
|
|
- Map<String, Object> resultMap = roleAuthInfoFacade.getRoleTjInfo(appId, orgId);
|
|
|
|
|
|
+ Map<String, Object> resultMap = roleAuthInfoFacade.getRoleTjInfo(appId, orgCode);
|
|
Object roleNumsObj = resultMap.get("ROLENUMS");
|
|
Object roleNumsObj = resultMap.get("ROLENUMS");
|
|
Object initNumsObj = resultMap.get("INITNUMS");
|
|
Object initNumsObj = resultMap.get("INITNUMS");
|
|
Integer roleNums = roleNumsObj == null ? 0 : (Integer) roleNumsObj;
|
|
Integer roleNums = roleNumsObj == null ? 0 : (Integer) roleNumsObj;
|
|
@@ -114,7 +114,7 @@ public class RoleRptController {
|
|
vo.setRoleNums(roleNums);
|
|
vo.setRoleNums(roleNums);
|
|
vo.setInitNums(initNums);
|
|
vo.setInitNums(initNums);
|
|
vo.setAppId(appId);
|
|
vo.setAppId(appId);
|
|
- vo.setOrgId(orgId);
|
|
|
|
|
|
+ vo.setOrgId(orgCode);
|
|
return Result.success(vo);
|
|
return Result.success(vo);
|
|
}
|
|
}
|
|
|
|
|