Browse Source

비행계획서 권한에 따른 리스트 출력

Test
이학준 2 years ago
parent
commit
30929f210d
  1. 1
      src/main/java/com/palnet/biz/api/anls/hstry/service/AnlsHstryService.java
  2. 7
      src/main/java/com/palnet/biz/api/bas/flight/service/BasFlightService.java

1
src/main/java/com/palnet/biz/api/anls/hstry/service/AnlsHstryService.java

@ -76,7 +76,6 @@ public class AnlsHstryService {
} }
ComnPagingRs<AnlsHstryRsModel> response = new ComnPagingRs<>(); ComnPagingRs<AnlsHstryRsModel> response = new ComnPagingRs<>();
List<AnlsHstryRsModel> returnList = new ArrayList<>();
Pageable pageable = PageRequest.of(rq.getPage()-1, rq.getRecord()); Pageable pageable = PageRequest.of(rq.getPage()-1, rq.getRecord());

7
src/main/java/com/palnet/biz/api/bas/flight/service/BasFlightService.java

@ -90,18 +90,21 @@ public class BasFlightService {
List<BasGroupJoinModel> groupList = ptyPlanQueryRepository.joinList(rq.getCstmrSno()); List<BasGroupJoinModel> groupList = ptyPlanQueryRepository.joinList(rq.getCstmrSno());
String userAccount = null; String userAccount = null;
String masterAccount = null; String masterAccount = null;
String appAuth = jwtTokenUtil.getUserAuthByToken();
for(BasGroupJoinModel list : groupList) { for(BasGroupJoinModel list : groupList) {
if(list.getGroupId().equals(rq.getGroupId())) { if(list.getGroupId().equals(rq.getGroupId())) {
userAccount = list.getGroupAuthCd(); userAccount = list.getGroupAuthCd();
// if(userAccount.equals("CREATER")||userAccount.equals("ADMIN")) { // if(userAccount.equals("CREATER")||userAccount.equals("ADMIN")) {
if(userAccount.equals("MASTER")||userAccount.equals("LEADER")) { if(userAccount.equals("MASTER")||userAccount.equals("LEADER") || appAuth.equals("USER") || appAuth.equals("ROLE_USER")) {
masterAccount = userAccount; masterAccount = "ADMIN";
}else { }else {
// masterAccount = "USER"; // masterAccount = "USER";
masterAccount = "NORMAL"; masterAccount = "NORMAL";
} }
} }
} }
log.info("masterAccount : >>>>> {}" , appAuth);
return fltPlanQueryRepository.listPlan(rq, masterAccount); return fltPlanQueryRepository.listPlan(rq, masterAccount);
} }

Loading…
Cancel
Save