From 263afa106aecf5e7cf844e91b60b7df2a43db26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=9E=AC=EC=9A=B0?= <박재우@host.docker.internal> Date: Thu, 16 Nov 2023 17:08:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EC=9A=A9=20KAC=20=EA=B6=8C=ED=95=9C=20=ED=95=98?= =?UTF-8?q?=EB=93=9C=EC=BD=94=EB=94=A9,=20=EB=A1=9C=EC=A7=81=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/main/dash/service/MainDashService.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java b/pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java index 05e319ab..d62f8b0d 100644 --- a/pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java +++ b/pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java @@ -13,6 +13,8 @@ import com.palnet.biz.api.main.statistics.service.MainStatisticsService; import com.palnet.biz.jpa.entity.FltPlanBas; import com.palnet.biz.jpa.repository.flt.FltPlanBasRepository; import com.palnet.biz.jpa.repository.pty.*; +import com.palnet.comn.code.ErrorCode; +import com.palnet.comn.exception.CustomException; import com.querydsl.core.Tuple; import com.querydsl.core.BooleanBuilder; @@ -139,20 +141,16 @@ public class MainDashService { List resultList = new ArrayList(); -// cptAuth = "KAC"; + cptAuth = "KAC"; // 임시 테스트용으로 KAC 권한 부여 - if(cptAuth.length() != 0) { - - if(cptAuth.equals("KAC")) { + if(cptAuth != null) { resultList = fltPlanQueryRepository.getFlightDronList(cptAuth, serviceType); - - } }else { - resultList = fltPlanQueryRepository.getFlightDronList(cptAuth, serviceType); - } + throw new CustomException(ErrorCode.DATA_NO, "cptAuth가 부여되지 않은 계정입니다"); + } return resultList; } @@ -161,7 +159,9 @@ public class MainDashService { String cptAuth = token.getCptAuthCodeByToken(); - cptAuth = "KAC"; + cptAuth = "KAC"; // 임시 테스트용으로 KAC 권한 부여 + + if(cptAuth == null) throw new CustomException(ErrorCode.DATA_NO, "cptAuth가 부여되지 않은 계정입니다"); Map resultList = new HashMap<>();