spotlessApply 적용
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
package com.kamco.cd.kamcoback.Innopam.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
public class ChngDetectMastDto {
|
||||
|
||||
@@ -18,32 +15,32 @@ public class ChngDetectMastDto {
|
||||
@AllArgsConstructor
|
||||
public static class Basic {
|
||||
|
||||
private String chnDtctMstId; // 탐지마스터아이디
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctCnt; // 탐지객체개수
|
||||
private String pnuMpngCnt; // PNU매핑개수
|
||||
private String lrmYmd; // 지적도일자
|
||||
private String pathNm; // 탐지결과 절대경로명 /kamco_nas/export/{chnDtctId}
|
||||
private String chnDtctMstId; // 탐지마스터아이디
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctCnt; // 탐지객체개수
|
||||
private String pnuMpngCnt; // PNU매핑개수
|
||||
private String lrmYmd; // 지적도일자
|
||||
private String pathNm; // 탐지결과 절대경로명 /kamco_nas/export/{chnDtctId}
|
||||
private List<ChnDetectMastExcnStepDto> excnList; // 등록진행상태히스토리 (최근것부터 DESC)
|
||||
private String excnStepCd; // 실행단계코드
|
||||
private String excnStep; // 실행단계코드에 해당하는 영문명
|
||||
private String excnPgrt; // 실행단계진행율
|
||||
private String excnBngnDt; // 실행단계시작시간
|
||||
private String excnEndDt; // 실행단계종료시간
|
||||
private String rmk; // 비고
|
||||
private String crtDt; // 생성일시
|
||||
private String crtEpno; // 생성사원번호
|
||||
private String crtIp; // 생성사원아이피
|
||||
private String chgDt; // 변경일시
|
||||
private String chgEpno; // 변경사원번호
|
||||
private String chgIp; // 변경사원아이피
|
||||
private String delYn; // 삭제여부
|
||||
private String excnStepCd; // 실행단계코드
|
||||
private String excnStep; // 실행단계코드에 해당하는 영문명
|
||||
private String excnPgrt; // 실행단계진행율
|
||||
private String excnBngnDt; // 실행단계시작시간
|
||||
private String excnEndDt; // 실행단계종료시간
|
||||
private String rmk; // 비고
|
||||
private String crtDt; // 생성일시
|
||||
private String crtEpno; // 생성사원번호
|
||||
private String crtIp; // 생성사원아이피
|
||||
private String chgDt; // 변경일시
|
||||
private String chgEpno; // 변경사원번호
|
||||
private String chgIp; // 변경사원아이피
|
||||
private String delYn; // 삭제여부
|
||||
//
|
||||
private String reqEpno; // 요청사원번호
|
||||
private String reqIp; // 요청사원어이피
|
||||
private String reqEpno; // 요청사원번호
|
||||
private String reqIp; // 요청사원어이피
|
||||
}
|
||||
|
||||
@Getter
|
||||
@@ -52,15 +49,15 @@ public class ChngDetectMastDto {
|
||||
@AllArgsConstructor
|
||||
public static class ChnDetectMastExcnStepDto {
|
||||
|
||||
private String srno; // 일련번호
|
||||
private String chnDtctMstId; // 탐지마스터아이디
|
||||
private String excnStepCd; // 실행단계코드
|
||||
private String excnStep; // 실행단계코드에 해당하는 영문명
|
||||
private String excnPgrt; // 실행단계진행율
|
||||
private String excnEndDt; // 실행단계종료시간
|
||||
private String errCd; // 오류코드
|
||||
private String errMsg; // 오류메세지
|
||||
private String crtDt; // 실행단계시작시간
|
||||
private String srno; // 일련번호
|
||||
private String chnDtctMstId; // 탐지마스터아이디
|
||||
private String excnStepCd; // 실행단계코드
|
||||
private String excnStep; // 실행단계코드에 해당하는 영문명
|
||||
private String excnPgrt; // 실행단계진행율
|
||||
private String excnEndDt; // 실행단계종료시간
|
||||
private String errCd; // 오류코드
|
||||
private String errMsg; // 오류메세지
|
||||
private String crtDt; // 실행단계시작시간
|
||||
}
|
||||
|
||||
@Getter
|
||||
@@ -68,65 +65,61 @@ public class ChngDetectMastDto {
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class ChnDetectMastReqDto {
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String pathNm; // 탐지결과 절대경로명 /kamco_nas/export/{chnDtctId}
|
||||
private String reqEpno; // 사원번호
|
||||
private String reqIp; // 사원아이피
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String pathNm; // 탐지결과 절대경로명 /kamco_nas/export/{chnDtctId}
|
||||
private String reqEpno; // 사원번호
|
||||
private String reqIp; // 사원아이피
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class ChnDetectContDto {
|
||||
|
||||
private String chnDtctMstId; // 탐지콘텐츠아이디
|
||||
private String chnDtctContId; // 탐지마스타아이디
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String mpqdNo; // 도엽번호
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctObjtId; // 탐지객체아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctPolygon; // 탐지객체폴리곤
|
||||
private String chnDtctSqms; // 탐지객체면적
|
||||
private String chnCd; // 변화코드
|
||||
private String chnDtctJson; // 변화탐지JSON
|
||||
private String chnDtctProb; // 변화탐지정확도
|
||||
private String bfClsCd; // 이전부류코드
|
||||
private String bfClsProb; // 이전분류정확도
|
||||
private String afClsCd; // 이후분류코드
|
||||
private String afClsProb; // 이후분류정확도
|
||||
private String crtDt; // 생성일시
|
||||
private String crtEpno; // 생성사원번호
|
||||
private String crtIp; // 생성사원아이피
|
||||
private String delYn; // 삭제여부
|
||||
private String chnDtctMstId; // 탐지콘텐츠아이디
|
||||
private String chnDtctContId; // 탐지마스타아이디
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String mpqdNo; // 도엽번호
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctObjtId; // 탐지객체아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctPolygon; // 탐지객체폴리곤
|
||||
private String chnDtctSqms; // 탐지객체면적
|
||||
private String chnCd; // 변화코드
|
||||
private String chnDtctJson; // 변화탐지JSON
|
||||
private String chnDtctProb; // 변화탐지정확도
|
||||
private String bfClsCd; // 이전부류코드
|
||||
private String bfClsProb; // 이전분류정확도
|
||||
private String afClsCd; // 이후분류코드
|
||||
private String afClsProb; // 이후분류정확도
|
||||
private String crtDt; // 생성일시
|
||||
private String crtEpno; // 생성사원번호
|
||||
private String crtIp; // 생성사원아이피
|
||||
private String delYn; // 삭제여부
|
||||
//
|
||||
private String reqEpno; // 요청사원번호
|
||||
private String reqIp; // 요청사원아이피
|
||||
private String reqEpno; // 요청사원번호
|
||||
private String reqIp; // 요청사원아이피
|
||||
}
|
||||
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class ChnDetectContReqDto {
|
||||
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String mpqdNo; // 도엽번호
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctObjtId; // 탐지객체아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String reqEpno; // 사원번호
|
||||
private String cprsYr; // 비교년도 2023
|
||||
private String crtrYr; // 기준년도 2024
|
||||
private String chnDtctSno; // 차수 (1 | 2 | ...)
|
||||
private String mpqdNo; // 도엽번호
|
||||
private String chnDtctId; // 탐지아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String chnDtctObjtId; // 탐지객체아이디. UUID를 기반으로 '-'를 제거하고 대문자/숫자로 구성
|
||||
private String reqEpno; // 사원번호
|
||||
private String reqIp;
|
||||
|
||||
}
|
||||
|
||||
@Getter
|
||||
@@ -140,7 +133,6 @@ public class ChngDetectMastDto {
|
||||
private String chnDtctSno;
|
||||
}
|
||||
|
||||
|
||||
@Schema(name = "ResReturn", description = "수행 후 리턴")
|
||||
@Getter
|
||||
@Setter
|
||||
@@ -151,5 +143,4 @@ public class ChngDetectMastDto {
|
||||
private String flag;
|
||||
private String message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,20 @@
|
||||
package com.kamco.cd.kamcoback.Innopam.service;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonFactory;
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.JsonToken;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.ChngDetectMastDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.ChngDetectMastDto.ChngDetectMastSearchDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.ChngDetectMastDto.ResReturn;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.Basic;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.DetectMastReq;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.DetectMastSearch;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.FeaturePnuDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.postgres.core.DetectMastCoreService;
|
||||
import com.kamco.cd.kamcoback.common.utils.NetUtils;
|
||||
import com.kamco.cd.kamcoback.common.utils.UserUtil;
|
||||
import com.kamco.cd.kamcoback.config.api.ApiResponseDto;
|
||||
import com.kamco.cd.kamcoback.config.resttemplate.ExternalHttpClient;
|
||||
import com.kamco.cd.kamcoback.config.resttemplate.ExternalHttpClient.ExternalCallResult;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.MapSheetMngDto.DmlReturn;
|
||||
import java.io.InputStream;
|
||||
import java.net.InetAddress;
|
||||
import java.net.URLEncoder;
|
||||
import java.net.UnknownHostException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
@Service
|
||||
@Transactional(readOnly = true)
|
||||
@@ -59,7 +30,6 @@ public class InnopamApiService {
|
||||
@Value("${innopam.mast}")
|
||||
private String innopamMastUrl;
|
||||
|
||||
|
||||
private final DetectMastCoreService detectMastCoreService;
|
||||
|
||||
private final ExternalHttpClient externalHttpClient;
|
||||
@@ -74,16 +44,17 @@ public class InnopamApiService {
|
||||
ChngDetectMastDto.Basic basic = new ChngDetectMastDto.Basic();
|
||||
|
||||
String url = innopamMastUrl + "/regist";
|
||||
//url = "http://localhost:8080/api/kcd/cdi/detect/mast/regist";
|
||||
// url = "http://localhost:8080/api/kcd/cdi/detect/mast/regist";
|
||||
|
||||
String myip = netUtils.getLocalIP();
|
||||
chnDetectMastReq.setReqIp(myip);
|
||||
|
||||
System.out.println("url == "+ url);
|
||||
System.out.println("url == "+ myip);
|
||||
System.out.println("url == " + url);
|
||||
System.out.println("url == " + myip);
|
||||
|
||||
ExternalCallResult<String> result =
|
||||
externalHttpClient.call(url, HttpMethod.POST, chnDetectMastReq, netUtils.jsonHeaders(), String.class);
|
||||
externalHttpClient.call(
|
||||
url, HttpMethod.POST, chnDetectMastReq, netUtils.jsonHeaders(), String.class);
|
||||
|
||||
System.out.println("result == " + result);
|
||||
|
||||
@@ -91,20 +62,21 @@ public class InnopamApiService {
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public ResReturn remove(ChngDetectMastDto.ChnDetectMastReqDto chnDetectMastReq) {
|
||||
public ResReturn remove(ChngDetectMastDto.ChnDetectMastReqDto chnDetectMastReq) {
|
||||
ChngDetectMastDto.Basic basic = new ChngDetectMastDto.Basic();
|
||||
|
||||
String url = innopamMastUrl + "/remove";
|
||||
//url = "http://localhost:8080/api/kcd/cdi/detect/mast/remove";
|
||||
// url = "http://localhost:8080/api/kcd/cdi/detect/mast/remove";
|
||||
|
||||
String myip = netUtils.getLocalIP();
|
||||
chnDetectMastReq.setReqIp(myip);
|
||||
|
||||
System.out.println("url == "+ url);
|
||||
System.out.println("url == "+ myip);
|
||||
System.out.println("url == " + url);
|
||||
System.out.println("url == " + myip);
|
||||
|
||||
ExternalCallResult<String> result =
|
||||
externalHttpClient.call(url, HttpMethod.POST, chnDetectMastReq, netUtils.jsonHeaders(), String.class);
|
||||
externalHttpClient.call(
|
||||
url, HttpMethod.POST, chnDetectMastReq, netUtils.jsonHeaders(), String.class);
|
||||
|
||||
System.out.println("result == " + result);
|
||||
|
||||
@@ -112,23 +84,17 @@ public class InnopamApiService {
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public List<ChngDetectMastDto.Basic> list(ChngDetectMastDto.ChngDetectMastSearchDto searchDto) {
|
||||
List<ChngDetectMastDto.Basic> masterList = new ArrayList<>();
|
||||
public List<ChngDetectMastDto.Basic> list(ChngDetectMastDto.ChngDetectMastSearchDto searchDto) {
|
||||
List<ChngDetectMastDto.Basic> masterList = new ArrayList<>();
|
||||
|
||||
String queryString = netUtils.dtoToQueryString(searchDto, null);
|
||||
String url = innopamMastUrl+queryString;
|
||||
String url = innopamMastUrl + queryString;
|
||||
|
||||
ExternalCallResult<String> result =
|
||||
externalHttpClient.call(url, HttpMethod.GET, null, netUtils.jsonHeaders(), String.class);
|
||||
externalHttpClient.call(url, HttpMethod.GET, null, netUtils.jsonHeaders(), String.class);
|
||||
|
||||
System.out.println("list result == " + result);
|
||||
|
||||
return masterList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -7,15 +7,13 @@ import java.net.UnknownHostException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
import org.mindrot.jbcrypt.BCrypt;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
|
||||
public class NetUtils {
|
||||
|
||||
public String getLocalIP(){
|
||||
public String getLocalIP() {
|
||||
|
||||
String ip;
|
||||
{
|
||||
@@ -30,23 +28,26 @@ public class NetUtils {
|
||||
return ip;
|
||||
}
|
||||
|
||||
|
||||
public String dtoToQueryString(Object dto, String queryString) {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
Map<String, Object> map = objectMapper.convertValue(dto, Map.class);
|
||||
|
||||
String qStr = map.entrySet().stream()
|
||||
.filter(entry -> entry.getValue() != null) // null 제외
|
||||
.map(entry -> String.format("%s=%s",
|
||||
entry.getKey(),
|
||||
URLEncoder.encode(entry.getValue().toString(), StandardCharsets.UTF_8)))
|
||||
.collect(Collectors.joining("&"));
|
||||
String qStr =
|
||||
map.entrySet().stream()
|
||||
.filter(entry -> entry.getValue() != null) // null 제외
|
||||
.map(
|
||||
entry ->
|
||||
String.format(
|
||||
"%s=%s",
|
||||
entry.getKey(),
|
||||
URLEncoder.encode(entry.getValue().toString(), StandardCharsets.UTF_8)))
|
||||
.collect(Collectors.joining("&"));
|
||||
|
||||
if( queryString == null || queryString.isEmpty() ) {
|
||||
queryString = "?"+qStr;
|
||||
}else{
|
||||
queryString = queryString +"&" + qStr;
|
||||
if (queryString == null || queryString.isEmpty()) {
|
||||
queryString = "?" + qStr;
|
||||
} else {
|
||||
queryString = queryString + "&" + qStr;
|
||||
}
|
||||
|
||||
// 2. Map을 쿼리 스트링 문자열로 변환
|
||||
@@ -60,5 +61,4 @@ public class NetUtils {
|
||||
|
||||
return headers;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -204,80 +204,6 @@ public class InferenceResultApiController {
|
||||
return ApiResponseDto.ok(result);
|
||||
}
|
||||
|
||||
// @ApiResponses(
|
||||
// value = {
|
||||
// @ApiResponse(
|
||||
// responseCode = "200",
|
||||
// description = "검색 성공",
|
||||
// content =
|
||||
// @Content(
|
||||
// mediaType = "application/json",
|
||||
// schema = @Schema(implementation = InferenceDetailDto.AnalResSummary.class))),
|
||||
// @ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
||||
// @ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
// })
|
||||
// @GetMapping("/summary/{id}")
|
||||
// public ApiResponseDto<InferenceDetailDto.AnalResSummary> getInferenceResultSummary(
|
||||
// @Parameter(description = "목록 id", example = "53") @PathVariable Long id) {
|
||||
// return ApiResponseDto.ok(inferenceResultService.getInferenceResultSummary(id));
|
||||
// }
|
||||
//
|
||||
// @Operation(summary = "추론관리 분석결과 상세", description = "분석결과 상제 정보 Summary, DashBoard")
|
||||
// @ApiResponses(
|
||||
// value = {
|
||||
// @ApiResponse(
|
||||
// responseCode = "200",
|
||||
// description = "검색 성공",
|
||||
// content =
|
||||
// @Content(
|
||||
// mediaType = "application/json",
|
||||
// schema = @Schema(implementation = InferenceDetailDto.Detail.class))),
|
||||
// @ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
||||
// @ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
// })
|
||||
// @GetMapping("/detail/{id}")
|
||||
// public ApiResponseDto<InferenceDetailDto.Detail> getInferenceDetail(
|
||||
// @Parameter(description = "목록 id", example = "53") @PathVariable Long id) {
|
||||
// return ApiResponseDto.ok(inferenceResultService.getDetail(id));
|
||||
// }
|
||||
//
|
||||
// @Operation(summary = "추론관리 분석결과 상세 목록", description = "추론관리 분석결과 상세 목록 geojson 데이터 조회")
|
||||
// @ApiResponses(
|
||||
// value = {
|
||||
// @ApiResponse(
|
||||
// responseCode = "200",
|
||||
// description = "검색 성공",
|
||||
// content =
|
||||
// @Content(
|
||||
// mediaType = "application/json",
|
||||
// schema = @Schema(implementation = Page.class))),
|
||||
// @ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
||||
// @ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
// })
|
||||
// @GetMapping("/geom/{id}")
|
||||
// public ApiResponseDto<Page<InferenceDetailDto.Geom>> getInferenceResultGeomList(
|
||||
// @Parameter(description = "분석결과 id", example = "53") @PathVariable Long id,
|
||||
// @Parameter(description = "기준년도 분류", example = "land") @RequestParam(required = false)
|
||||
// String targetClass,
|
||||
// @Parameter(description = "비교년도 분류", example = "waste") @RequestParam(required = false)
|
||||
// String compareClass,
|
||||
// @Parameter(description = "5000:1 도협번호 37801011,37801012") @RequestParam(required = false)
|
||||
// List<Long> mapSheetNum,
|
||||
// @Parameter(description = "페이지 번호 (0부터 시작)", example = "0") @RequestParam(defaultValue = "0")
|
||||
// int page,
|
||||
// @Parameter(description = "페이지 크기", example = "20") @RequestParam(defaultValue = "20")
|
||||
// int size,
|
||||
// @Parameter(description = "정렬 조건 (형식: 필드명,방향)", example = "name,asc")
|
||||
// @RequestParam(required = false)
|
||||
// String sort) {
|
||||
// InferenceDetailDto.SearchGeoReq searchGeoReq =
|
||||
// new InferenceDetailDto.SearchGeoReq(
|
||||
// targetClass, compareClass, mapSheetNum, page, size, sort);
|
||||
// Page<InferenceDetailDto.Geom> geomList =
|
||||
// inferenceResultService.getInferenceResultGeomList(id, searchGeoReq);
|
||||
// return ApiResponseDto.ok(geomList);
|
||||
// }
|
||||
|
||||
@Operation(summary = "추론관리 추론진행 서버 현황", description = "추론관리 추론진행 서버 현황")
|
||||
@ApiResponses(
|
||||
value = {
|
||||
|
||||
@@ -308,16 +308,16 @@ public class InferenceDetailDto {
|
||||
String mapSheetName;
|
||||
String subUid;
|
||||
String pnu;
|
||||
String passYn;
|
||||
String fitState;
|
||||
|
||||
@JsonProperty("passYn")
|
||||
public String getPassYn() {
|
||||
return this.passYn == null ? null : this.passYn;
|
||||
@JsonProperty("fitState")
|
||||
public String getFitState() {
|
||||
return this.fitState == null ? null : this.fitState;
|
||||
}
|
||||
|
||||
@JsonProperty("passYnName")
|
||||
public String getPassYnName() {
|
||||
return ImageryFitStatus.getDescByCode(this.passYn);
|
||||
@JsonProperty("fitStateName")
|
||||
public String fitStateName() {
|
||||
return ImageryFitStatus.getDescByCode(this.fitState);
|
||||
}
|
||||
|
||||
// @JsonIgnore String gemoStr;
|
||||
@@ -339,7 +339,7 @@ public class InferenceDetailDto {
|
||||
String mapSheetName,
|
||||
String subUid,
|
||||
String pnu,
|
||||
String passYn) {
|
||||
String fitState) {
|
||||
this.uuid = uuid;
|
||||
this.uid = uid;
|
||||
this.compareYyyy = compareYyyy;
|
||||
@@ -355,7 +355,7 @@ public class InferenceDetailDto {
|
||||
this.mapSheetName = mapSheetName;
|
||||
this.subUid = subUid;
|
||||
this.pnu = pnu;
|
||||
this.passYn = passYn;
|
||||
this.fitState = fitState;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ public class MapSheetAnalDataInferenceGeomEntity {
|
||||
private Long pnu;
|
||||
|
||||
@Size(max = 20)
|
||||
@ColumnDefault("'0'")
|
||||
@Column(name = "fit_state", length = 20)
|
||||
private String fitState;
|
||||
|
||||
@@ -150,12 +149,6 @@ public class MapSheetAnalDataInferenceGeomEntity {
|
||||
@Column(name = "file_created_dttm")
|
||||
private ZonedDateTime fileCreatedDttm;
|
||||
|
||||
@Column(name = "pass_yn")
|
||||
private String passYn;
|
||||
|
||||
@Column(name = "pass_yn_dttm")
|
||||
private ZonedDateTime passYnDttm;
|
||||
|
||||
@Column(name = "result_uid")
|
||||
private String resultUid;
|
||||
|
||||
|
||||
@@ -446,7 +446,7 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
|
||||
"substring({0} from 1 for 8)",
|
||||
mapSheetAnalDataInferenceGeomEntity.resultUid),
|
||||
pnu,
|
||||
mapSheetAnalDataInferenceGeomEntity.passYn))
|
||||
mapSheetAnalDataInferenceGeomEntity.fitState))
|
||||
.from(mapSheetAnalInferenceEntity)
|
||||
.join(mapSheetAnalDataInferenceEntity)
|
||||
.on(mapSheetAnalDataInferenceEntity.analUid.eq(mapSheetAnalInferenceEntity.id))
|
||||
|
||||
@@ -63,3 +63,7 @@ inference:
|
||||
geojson-dir: /kamco-nfs/requests/
|
||||
jar-path: /kamco-nfs/dataset/shp_exporter-1.0.0.jar
|
||||
|
||||
innopam:
|
||||
#url: http://localhost:8080
|
||||
url: http://192.168.2.129:5301
|
||||
mast: ${innopam.url}/api/kcd/cdi/chn/mast
|
||||
|
||||
Reference in New Issue
Block a user