@ -1,57 +1,52 @@
package com.palnet.biz.api.main.dash.controller ;
import java.util.ArrayList ;
import java.util.List ;
import java.util.Map ;
import com.palnet.biz.api.main.dash.model.* ;
import org.springframework.beans.factory.annotation.Autowired ;
import org.springframework.http.HttpStatus ;
import org.springframework.http.MediaType ;
import org.springframework.http.ResponseEntity ;
import org.springframework.web.bind.annotation.GetMapping ;
import org.springframework.web.bind.annotation.PathVariable ;
import org.springframework.web.bind.annotation.RequestMapping ;
import org.springframework.web.bind.annotation.RequestParam ;
import org.springframework.web.bind.annotation.RestController ;
import com.palnet.biz.api.comn.response.BasicResponse ;
import com.palnet.biz.api.comn.response.ErrorResponse ;
import com.palnet.biz.api.comn.response.SuccessResponse ;
import com.palnet.biz.api.main.dash.model.* ;
import com.palnet.biz.api.main.dash.service.MainDashService ;
import com.palnet.comn.code.RSErrorCode ;
import io.swagger.annotations.ApiImplicitParam ;
import io.swagger.annotations.ApiImplicitParams ;
import io.swagger.annotations.ApiOperation ;
import com.palnet.comn.exception.CustomException ;
import io.swagger.v3.oas.annotations.Operation ;
import io.swagger.v3.oas.annotations.Parameter ;
import io.swagger.v3.oas.annotations.Parameters ;
import io.swagger.v3.oas.annotations.enums.ParameterIn ;
import io.swagger.v3.oas.annotations.responses.ApiResponse ;
import io.swagger.v3.oas.annotations.tags.Tag ;
import lombok.RequiredArgsConstructor ;
import lombok.extern.log4j.Log4j2 ;
import lombok.extern.slf4j.Slf4j ;
import org.springframework.http.HttpStatus ;
import org.springframework.http.MediaType ;
import org.springframework.http.ResponseEntity ;
import org.springframework.web.bind.annotation.* ;
import java.util.ArrayList ;
import java.util.HashMap ;
import java.util.List ;
import java.util.Map ;
@Log4j2
@Slf4j
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@RestController
@RequiredArgsConstructor
@RequestMapping ( value = "/api/main/dash" , produces = { MediaType . APPLICATION_JSON_VALUE } )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
public class MainDashController {
@Autowired
private final MainDashService service ;
/ * *
* 일 별 비행횟수 통계를 조회하는 기능 .
*
* @param yyyymm
* @return
* /
@Operation ( summary = "일 별 비행횟수 통계" , description = "일 별 비행횟수 통계" )
@Parameter ( name = "yyyymm" , description = "날짜" , in = ParameterIn . QUERY , example = "2023-12" )
@ApiResponse ( responseCode = "200" , description = "OK" )
@GetMapping ( value = "/stcs/day" )
@ApiOperation ( value = "일 별 비행횟수 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParam ( name = "yyyymm" , value = "날짜" , dataTypeClass = String . class )
public ResponseEntity < ? extends BasicResponse > stcsDay ( String yyyymm ) {
List < MainDashStcsModel > result = null ;
// log.debug(yyyymm);
// yyyymm 값이 있는지, 글자 갯수가 7개인지 입력값 검증
if ( yyyymm = = null | | ! ( yyyymm . length ( ) = = 7 ) ) {
// 검증통과하지 못할 시 서버에서 "의도적인" 에러 반환
@ -62,7 +57,13 @@ public class MainDashController {
try {
result = service . mainDashStcsDay ( yyyymm ) ; // 일별 비행건수 통계하는 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -83,14 +84,14 @@ public class MainDashController {
/ * *
* TOP5 지역 별 비행횟수 통계를 조회하는 기능
* 일자 [ yyyymm ] 별 검색
*
* @param yyyymm
* @return
* /
@Operation ( summary = "TOP5 지역 별 비행횟수 통계" , description = "TOP5 지역 별 비행횟수 통계" )
@Parameter ( name = "yyyymm" , description = "날짜" , in = ParameterIn . QUERY , example = "2023-12" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( value = "/stcs/area" )
@ApiOperation ( value = "TOP5 지역 별 비행횟수 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParam ( name = "yyyymm" , value = "날짜" , dataTypeClass = String . class )
public ResponseEntity < ? extends BasicResponse > stcsArea ( String yyyymm ) {
List < MainDashStcsModel > result = null ;
@ -104,7 +105,13 @@ public class MainDashController {
try {
result = service . mainDashStcsArea ( yyyymm ) ; // Top5 지역별 비행횟수 통계기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -124,13 +131,14 @@ public class MainDashController {
/ * *
* 본인이 생성한 그룹 정보죄하는 기능 .
*
* @param cstmrSno
* @return
* /
@Operation ( summary = "본인이 생성한 그룹 정보" , description = "본인이 생성한 그룹 정보" )
@Parameter ( name = "cstmrSno" , description = "고객일련번호" , in = ParameterIn . QUERY , example = "1" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( value = "/group/list" )
@ApiOperation ( value = "본인이 생성한 그룹 정보" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParam ( name = "cstmrSno" , value = "고객일련번호" , dataTypeClass = Integer . class )
public ResponseEntity < ? extends BasicResponse > groupList ( Integer cstmrSno ) {
List < Map > result = null ;
@ -143,7 +151,13 @@ public class MainDashController {
try {
result = service . mainDashGroupList ( cstmrSno ) ; // TOP3 가입 그룹 리스트 조회하는 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -161,16 +175,18 @@ public class MainDashController {
}
/ * *
* 기체 정보 리스트 조회하는 기능 ,
* 회원 고유번호 [ cstmrSno ] 로 조회함 .
*
* @param cstmrSno
* @return
* /
@Operation ( summary = "기체 정보 리스트" , description = "기체 정보 리스트" )
@Parameter ( name = "cstmrSno" , description = "고객일련번호" , in = ParameterIn . QUERY , example = "1" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( value = "/arcrft/list" )
@ApiOperation ( value = "기체 정보 리스트" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParam ( name = "cstmrSno" , value = "고객일련번호" , dataTypeClass = Integer . class )
public ResponseEntity < ? extends BasicResponse > arcrftList ( Integer cstmrSno ) {
List < MainDashListModel > result = null ;
@ -183,7 +199,13 @@ public class MainDashController {
try {
result = service . mainDashDronList ( cstmrSno ) ; // Top3 기체 정보 리스트 조회하는 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -201,21 +223,21 @@ public class MainDashController {
}
/ * *
* 비행실적 통계하는 기능 .
*
* @param date
* @param type
* @Deprecated 현재 사용하지 않음
* @return
* /
@GetMapping ( value = "/stcs/flight/date/{type}" )
@ApiOperation ( value = "김포공항, 비행실적 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "date" , value = "날짜" , dataTypeClass = String . class ) ,
@ApiImplicitParam ( name = "type" , value = "날짜형식" , dataTypeClass = String . class )
} )
@Deprecated
@Operation ( summary = "김포공항, 비행실적 통계" , description = "김포공항, 비행실적 통계" )
@Parameters ( {
@Parameter ( name = "type" , description = "날짜형식" , in = ParameterIn . PATH , example = "month" ) ,
@Parameter ( name = "date" , description = "날짜" , in = ParameterIn . QUERY , example = "2023" )
} )
@GetMapping ( value = "/stcs/flight/date/{type}" )
public ResponseEntity < ? extends BasicResponse > flightStatistics ( String date , @PathVariable String type ) {
String [ ] formatParam = null ;
@ -233,6 +255,13 @@ public class MainDashController {
try {
result = service . mainKacDashStcsDay ( date , formatParam ) ; // 날짜별 비행실적 통계기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -251,19 +280,19 @@ public class MainDashController {
/ * *
* 김포공항 , 비행승인 통계
*
* @param date
* @param type
* @Deprecated 현재 사용하지 않음
* @return
* /
@GetMapping ( "/stcs/plan-allow/date/{type}" )
@ApiOperation ( value = "김포공항, 비행승인 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "date" , value = "날짜" , dataTypeClass = String . class ) ,
@ApiImplicitParam ( name = "type" , value = "날짜형식" , dataTypeClass = String . class )
} )
@Deprecated
@Operation ( summary = "김포공항, 비행승인 통계" , description = "김포공항, 비행승인 통계" )
@Parameters ( {
@Parameter ( name = "type" , description = "날짜형식" , in = ParameterIn . PATH , example = "month" ) ,
@Parameter ( name = "date" , description = "날짜" , in = ParameterIn . QUERY , example = "2023" )
} )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/stcs/plan-allow/date/{type}" )
public ResponseEntity < ? extends BasicResponse > planAllowStatistics ( String date , @PathVariable String type ) {
String [ ] formatParam = null ;
@ -281,6 +310,13 @@ public class MainDashController {
try {
result = service . mainStcsPlanAllow ( date , formatParam ) ; // 김포공항, 비행승인 통계 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -299,22 +335,23 @@ public class MainDashController {
/ * *
* 드론별 비행 통계조회하는 기능 .
*
* @param date
* @param idntfNum
* @param type
* @Deprecated 현재 사용하지 않음
* @return
* /
@GetMapping ( "/stcs/drone-flight/date/{type}" )
@ApiOperation ( value = "김포공항, 드론별 비행 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "date" , value = "날짜" , dataTypeClass = String . class ) ,
@ApiImplicitParam ( name = "type" , value = "날짜형식" , dataTypeClass = String . class ) ,
@ApiImplicitParam ( name = "idntfNum" , value = "드론식별번호" , dataTypeClass = String . class ) ,
} )
@Deprecated
@Operation ( summary = "김포공항, 드론별 비행 통계" , description = "김포공항, 드론별 비행 통계" )
@Parameters ( {
@Parameter ( name = "type" , description = "날짜형식" , in = ParameterIn . PATH , example = "month" ) ,
@Parameter ( name = "date" , description = "날짜" , in = ParameterIn . QUERY , example = "2023" ) ,
@Parameter ( name = "idntfNum" , description = "드론식별번호" , in = ParameterIn . QUERY , example = "PA001" )
} )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/stcs/drone-flight/date/{type}" )
public ResponseEntity < ? extends BasicResponse > droneFlightStatistics ( String date , @RequestParam ( required = true ) String idntfNum , @PathVariable String type ) {
log . info ( "idntfNum -> {}" , idntfNum ) ;
String [ ] formatParam = null ;
@ -331,6 +368,13 @@ public class MainDashController {
try {
result = service . mainStcsDroneFlight ( date , idntfNum , formatParam ) ; // 드론별 비행실적 통계 기능.
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -349,19 +393,19 @@ public class MainDashController {
/ * *
* 비정상상황 비행 통계조회하는 기능 .
*
* @param date
* @param type
* @Deprecated 현재 사용하지 않음
* @return
* /
@GetMapping ( "/stcs/warning-flight/date/{type}" )
@ApiOperation ( value = "김포공항, 비정상상황 비행 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "date" , value = "날짜" , dataTypeClass = String . class ) ,
@ApiImplicitParam ( name = "type" , value = "날짜형식" , dataTypeClass = String . class )
} )
@Deprecated
@Operation ( summary = "김포공항, 비정상상황 비행 통계" , description = "김포공항, 비정상상황 비행 통계" )
@Parameters ( {
@Parameter ( name = "type" , description = "날짜형식" , in = ParameterIn . PATH , example = "month" ) ,
@Parameter ( name = "date" , description = "날짜" , in = ParameterIn . QUERY , example = "2023" )
} )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/stcs/warning-flight/date/{type}" )
public ResponseEntity < ? extends BasicResponse > warningFlightStatistics ( String date , @PathVariable String type ) {
String [ ] formatParam = null ;
@ -379,6 +423,13 @@ public class MainDashController {
try {
result = service . mainStcsWarningFlight ( date , formatParam ) ; // 비정상상황 통계구하는 기능.
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -397,17 +448,25 @@ public class MainDashController {
/ * *
* 드론 비행 현황 통계 기능 .
*
* @return
* /
@Operation ( summary = "드론 비행 현황" , description = "드론 비행 현황" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( value = "/stcs/dron-flight" )
@ApiOperation ( value = "드론 비행 현황" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
public ResponseEntity < ? extends BasicResponse > dronFlightStcs ( ) {
Map < String , String > result = null ;
try {
result = service . mainDashDronFlightStcs ( ) ; // 드론 비행 현황기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -426,18 +485,27 @@ public class MainDashController {
/ * *
* 드론 별 비행운항 목록 조회하는 기능 .
*
* @param serviceType
* @return
* /
@Operation ( summary = "드론 별 비행운항 목록" , description = "드론 별 비행운항 목록" )
@Parameter ( name = "serviceType" , description = "서비스 타입(관할기관코드)" , in = ParameterIn . QUERY , example = "F0002" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( value = "/dron-flight/list" )
@ApiOperation ( value = "드론 별 비행운항 목록" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
public ResponseEntity < ? extends BasicResponse > dronFlightList ( @RequestParam String serviceType ) {
List < MainDashFlightListModel > result = null ;
try {
result = service . mainDashDronFlightList ( serviceType ) ; // 드론 별 비행운항 목록 조회하는 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -456,21 +524,27 @@ public class MainDashController {
/ * *
* 일일 비정상상황에 대한 통계 기능 .
*
* @param serviceType
* @return
* /
@Operation ( summary = "일일 비정상상황 통계" , description = "일일 비정상상황 통계" )
@Parameter ( name = "serviceType" , description = "서비스 타입(관할기관코드)" , in = ParameterIn . QUERY , example = "F0002" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/current/flight-warn" )
@ApiOperation ( value = "일일 비정상상황 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "serviceType" , value = "관할기관코드(cptAuthCode)" , dataTypeClass = String . class )
} )
public ResponseEntity < ? extends BasicResponse > currentFlightWarn ( @RequestParam ( required = false ) String serviceType ) {
List < MainDashWarnNumStcsModel > result = new ArrayList < > ( ) ;
try {
result = service . currentFlightWarn ( serviceType ) ; // 일일비정상상황에 대한 통계 기능을 조회하는 기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -489,20 +563,26 @@ public class MainDashController {
/ * *
* 일일 비행계획에 대한 통계 기능 .
*
* @param serviceType
* @return
* /
@Operation ( summary = "일일 비행계획 통계" , description = "일일 비행계획 통계" )
@Parameter ( name = "serviceType" , description = "서비스 타입(관할기관코드)" , in = ParameterIn . QUERY , example = "F0002" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/current/flight-plan" )
@ApiOperation ( value = "일일 비행계획 통계" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "serviceType" , value = "관할기관코드(cptAuthCode)" , dataTypeClass = String . class )
} )
public ResponseEntity < ? extends BasicResponse > currentFlightPlan ( @RequestParam ( required = false ) String serviceType ) {
List < MainDashPlanNumStcsModel > result = new ArrayList < > ( ) ;
try {
result = service . currentFlightPlan ( serviceType ) ;
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {
@ -517,21 +597,29 @@ public class MainDashController {
}
return ResponseEntity . ok ( ) . body ( new SuccessResponse < List < MainDashPlanNumStcsModel > > ( result ) ) ;
}
/ * *
* 일일 비행건수 현황 통계기능 .
*
* @return
* /
@Operation ( summary = "일일 비행건수 현황" , description = "일일 비행건수 현황" )
@ApiResponse ( responseCode = "200" , description = "성공" )
@GetMapping ( "/stcs/dailyflight" )
@ApiOperation ( value = "일일 비행건수 현황" )
@Tag ( name = "메인화면 컨트롤러" , description = "메인화면 관련 API" )
public ResponseEntity < ? extends BasicResponse > getDailyFlightNumOfStcs ( ) {
List < MainDashFlightNumStcsModel > result = null ;
try {
result = service . dailyFlightNumOfStcs ( ) ; // 일일 비행건수 현황 통계기능
} catch ( CustomException e ) {
Map < String , Object > resultMap = new HashMap < > ( ) ;
log . error ( "IGNORE : " , e ) ;
resultMap . put ( "result" , false ) ;
resultMap . put ( "errorCode" , e . getErrorCode ( ) ) ;
resultMap . put ( "errorMessage" , e . getMessage ( ) ) ;
return ResponseEntity . ok ( ) . body ( new SuccessResponse < > ( resultMap ) ) ;
} catch ( Exception e ) {
/ * *
* try {