|
|
@ -2030,6 +2030,10 @@ public class CtrCntrlQueryRepository{ |
|
|
|
Integer cstmrSno = jwtTokenUtil.getCstmrSnoByToken(); |
|
|
|
Integer cstmrSno = jwtTokenUtil.getCstmrSnoByToken(); |
|
|
|
List<JwtGroupModel> groupAuth = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
List<JwtGroupModel> groupAuth = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("User CstmrSno => {}", cstmrSno); |
|
|
|
|
|
|
|
log.info("User Auth => {}", authId); |
|
|
|
|
|
|
|
log.info("User GroupAuth => {}", groupAuth); |
|
|
|
|
|
|
|
|
|
|
|
BooleanBuilder builder = new BooleanBuilder(); |
|
|
|
BooleanBuilder builder = new BooleanBuilder(); |
|
|
|
builder.and(pgb.useYn.eq("Y")); |
|
|
|
builder.and(pgb.useYn.eq("Y")); |
|
|
|
if("ADMIN".equals(authId) || "SUPER".equals(authId)) { |
|
|
|
if("ADMIN".equals(authId) || "SUPER".equals(authId)) { |
|
|
@ -2067,6 +2071,11 @@ public class CtrCntrlQueryRepository{ |
|
|
|
.where(builder) |
|
|
|
.where(builder) |
|
|
|
.fetch(); |
|
|
|
.fetch(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Control Query Result=> {}", model); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("===================================================================================="); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(CtrCntrlGroupModel list : model) { |
|
|
|
for(CtrCntrlGroupModel list : model) { |
|
|
|
if(groupAuth != null) { |
|
|
|
if(groupAuth != null) { |
|
|
@ -2115,8 +2124,14 @@ public class CtrCntrlQueryRepository{ |
|
|
|
int cstmrSno = jwtTokenUtil.getCstmrSnoByToken(); |
|
|
|
int cstmrSno = jwtTokenUtil.getCstmrSnoByToken(); |
|
|
|
String groupAuth = null; |
|
|
|
String groupAuth = null; |
|
|
|
List<JwtGroupModel> groupAuthList = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
List<JwtGroupModel> groupAuthList = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
|
|
|
|
|
|
|
|
BooleanBuilder builder = new BooleanBuilder(); |
|
|
|
BooleanBuilder builder = new BooleanBuilder(); |
|
|
|
builder.and(arcrftBas.groupId.eq(groupId)); |
|
|
|
builder.and(arcrftBas.groupId.eq(groupId)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("groupId => {}", groupId); |
|
|
|
|
|
|
|
log.info("User CstmrSno => {}", cstmrSno); |
|
|
|
|
|
|
|
log.info("User Auth => {}", appAuth); |
|
|
|
|
|
|
|
|
|
|
|
if("USER".equals(appAuth) || "ROLE_USER".equals(appAuth)) { |
|
|
|
if("USER".equals(appAuth) || "ROLE_USER".equals(appAuth)) { |
|
|
|
for(JwtGroupModel list : groupAuthList) { |
|
|
|
for(JwtGroupModel list : groupAuthList) { |
|
|
|
if(list.getGroupId().equals(groupId)) { |
|
|
|
if(list.getGroupId().equals(groupId)) { |
|
|
@ -2150,6 +2165,9 @@ public class CtrCntrlQueryRepository{ |
|
|
|
.where(builder) |
|
|
|
.where(builder) |
|
|
|
.fetch(); |
|
|
|
.fetch(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Arcrft Query Result => {}", arcrftList); |
|
|
|
|
|
|
|
|
|
|
|
return arcrftList; |
|
|
|
return arcrftList; |
|
|
|
//-------------------------------------------
|
|
|
|
//-------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|