오류수정

This commit is contained in:
nhj 2025-08-20 11:54:29 +09:00
parent cc730f6e6b
commit b2861faa24
2 changed files with 10 additions and 2 deletions

View File

@ -70,8 +70,12 @@ public class ResourceManagerController
String strGrpId = tokenInfo.getStrGRP_ID();
String strRole = tokenInfo.getAuthorities();
log.info("strGrpId [{}]", strGrpId);
log.info("strRole [{}]" , strRole);
log.info("순서 [{}]" , strRole.indexOf("ROLE_ADMIN"));
// 본사그룹 혹은 관리자 아닌경우 해당그룹자산만 조회 가능
if(strGrpId != "GROUP_00000000000000" && strRole != "ROLE_ADMIN")
if(!strGrpId.equals("GROUP_00000000000000") && strRole.indexOf("ROLE_ADMIN")<0)
{
requestMap.put("strGrpId", strGrpId);
}

View File

@ -77,8 +77,12 @@ public class ReportCheckController
String strGrpId = tokenInfo.getStrGRP_ID();
String strRole = tokenInfo.getAuthorities();
log.info("strGrpId [{}]", strGrpId);
log.info("strRole [{}]" , strRole);
log.info("순서 [{}]" , strRole.indexOf("ROLE_ADMIN"));
// 본사그룹 혹은 관리자 아닌경우 해당그룹자산만 조회 가능
if(strGrpId != "GROUP_00000000000000" && strRole != "ROLE_ADMIN")
if(!strGrpId.equals("GROUP_00000000000000") && strRole.indexOf("ROLE_ADMIN")<0)
{
requestMap.put("strGrpId", strGrpId);
}