feat/infer_dev_260107 #41
@@ -187,6 +187,29 @@ public class GukYuinApiController {
|
|||||||
return ApiResponseDto.ok(gukYuinApiService.findChnContList(chnDtctId, pageIndex, pageSize));
|
return ApiResponseDto.ok(gukYuinApiService.findChnContList(chnDtctId, pageIndex, pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "탐지객체 조회 (탐지객체 1건 조회)", description = "탐지객체 조회 (탐지객체 1건 조회)")
|
||||||
|
@GetMapping("/chn/cont/{chnDtctId}/objt/{chnDtctObjtId}")
|
||||||
|
@ApiResponses(
|
||||||
|
value = {
|
||||||
|
@ApiResponse(
|
||||||
|
responseCode = "200",
|
||||||
|
description = "목록 성공",
|
||||||
|
content =
|
||||||
|
@Content(
|
||||||
|
mediaType = "application/json",
|
||||||
|
schema = @Schema(implementation = Basic.class))),
|
||||||
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
|
})
|
||||||
|
public ApiResponseDto<ChngDetectContDto.ResultContDto> findChnPnuToContObject(
|
||||||
|
@PathVariable String chnDtctId,
|
||||||
|
@PathVariable String chnDtctObjtId,
|
||||||
|
@RequestParam(defaultValue = "0") Integer pageIndex,
|
||||||
|
@RequestParam(defaultValue = "10") Integer pageSize) {
|
||||||
|
return ApiResponseDto.ok(
|
||||||
|
gukYuinApiService.findChnPnuToContObject(chnDtctId, chnDtctObjtId, pageIndex, pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
@Operation(summary = "탐지객체 조회 (PNU에 해당하는 탐지객체)", description = "탐지객체 조회 (PNU에 해당하는 탐지객체)")
|
@Operation(summary = "탐지객체 조회 (PNU에 해당하는 탐지객체)", description = "탐지객체 조회 (PNU에 해당하는 탐지객체)")
|
||||||
@GetMapping("/chn/cont/{chnDtctId}/pnu/{pnu}")
|
@GetMapping("/chn/cont/{chnDtctId}/pnu/{pnu}")
|
||||||
@ApiResponses(
|
@ApiResponses(
|
||||||
@@ -259,4 +282,42 @@ public class GukYuinApiController {
|
|||||||
@Parameter(description = "어제 날짜", example = "2026-01-29") LocalDate yesterday) {
|
@Parameter(description = "어제 날짜", example = "2026-01-29") LocalDate yesterday) {
|
||||||
return ApiResponseDto.ok(gukYuinApiService.findLabelingCompleteSendList(yesterday));
|
return ApiResponseDto.ok(gukYuinApiService.findLabelingCompleteSendList(yesterday));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "탐지객체 적합여부 조회 (리스트조회)", description = "탐지객체 적합여부 조회 (리스트조회)")
|
||||||
|
@GetMapping("/rlb/dtct/{chnDtctId}")
|
||||||
|
@ApiResponses(
|
||||||
|
value = {
|
||||||
|
@ApiResponse(
|
||||||
|
responseCode = "200",
|
||||||
|
description = "목록 성공",
|
||||||
|
content =
|
||||||
|
@Content(
|
||||||
|
mediaType = "application/json",
|
||||||
|
schema = @Schema(implementation = Basic.class))),
|
||||||
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
|
})
|
||||||
|
public ApiResponseDto<ChngDetectMastDto.RlbDtctDto> findRlbDtctList(
|
||||||
|
@PathVariable String chnDtctId) {
|
||||||
|
return ApiResponseDto.ok(gukYuinApiService.findRlbDtctList(chnDtctId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "탐지객체 적합여부 조회 (리스트조회)", description = "탐지객체 적합여부 조회 (리스트조회)")
|
||||||
|
@GetMapping("/rlb/objt/{chnDtctObjtId}")
|
||||||
|
@ApiResponses(
|
||||||
|
value = {
|
||||||
|
@ApiResponse(
|
||||||
|
responseCode = "200",
|
||||||
|
description = "목록 성공",
|
||||||
|
content =
|
||||||
|
@Content(
|
||||||
|
mediaType = "application/json",
|
||||||
|
schema = @Schema(implementation = Basic.class))),
|
||||||
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
|
})
|
||||||
|
public ApiResponseDto<ChngDetectMastDto.RlbDtctDto> findRlbDtctObject(
|
||||||
|
@PathVariable String chnDtctObjtId) {
|
||||||
|
return ApiResponseDto.ok(gukYuinApiService.findRlbDtctObject(chnDtctObjtId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,4 +228,64 @@ public class ChngDetectMastDto {
|
|||||||
private String error;
|
private String error;
|
||||||
private String path;
|
private String path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public static class RlbDtctDto {
|
||||||
|
|
||||||
|
private Integer code;
|
||||||
|
private String message;
|
||||||
|
private List<RlbDtctMastDto> result;
|
||||||
|
private Boolean success;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public static class RlbDtctMastDto {
|
||||||
|
|
||||||
|
private String pnuDtctId;
|
||||||
|
private String pnu;
|
||||||
|
private String lrmSyncYmd;
|
||||||
|
private String pnuSyncYmd;
|
||||||
|
private String mpqdNo; // 도엽번호
|
||||||
|
private String cprsYr; // 비교년도
|
||||||
|
private String crtrYr; // 기준년도
|
||||||
|
private String chnDtctSno; // 회차
|
||||||
|
private String chnDtctId;
|
||||||
|
|
||||||
|
private String chnDtctMstId;
|
||||||
|
private String chnDtctObjtId;
|
||||||
|
private String chnDtctContId;
|
||||||
|
private String chnCd;
|
||||||
|
private String chnDtctProb;
|
||||||
|
|
||||||
|
private String bfClsCd; // 이전분류코드
|
||||||
|
private String bfClsProb; // 이전분류정확도
|
||||||
|
private String afClsCd; // 이후분류코드
|
||||||
|
private String afClsProb; // 이후분류정확도
|
||||||
|
|
||||||
|
private String pnuSqms;
|
||||||
|
private String pnuDtctSqms;
|
||||||
|
private String chnDtctSqms;
|
||||||
|
private String stbltYn;
|
||||||
|
private String incyCd;
|
||||||
|
private String incyRsnCont;
|
||||||
|
private String lockYn;
|
||||||
|
private String lblYn;
|
||||||
|
private String chgYn;
|
||||||
|
private String rsatctNo;
|
||||||
|
private String rmk;
|
||||||
|
|
||||||
|
private String crtDt; // 생성일시
|
||||||
|
private String crtEpno; // 생성사원번호
|
||||||
|
private String crtIp; // 생성사원아이피
|
||||||
|
private String chgDt;
|
||||||
|
private String chgEpno;
|
||||||
|
private String chgIp;
|
||||||
|
private String delYn; // 삭제여부
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.ErrorResDto;
|
|||||||
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.LabelSendDto;
|
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.LabelSendDto;
|
||||||
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.ResReturn;
|
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.ResReturn;
|
||||||
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.ResultDto;
|
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.ResultDto;
|
||||||
|
import com.kamco.cd.kamcoback.gukyuin.dto.ChngDetectMastDto.RlbDtctDto;
|
||||||
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkFacts;
|
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkFacts;
|
||||||
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkFailCode;
|
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkFailCode;
|
||||||
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkableRes;
|
import com.kamco.cd.kamcoback.gukyuin.dto.GukYuinDto.GukYuinLinkableRes;
|
||||||
@@ -250,7 +251,11 @@ public class GukYuinApiService {
|
|||||||
|
|
||||||
List<ContBasic> contList = result.body().getResult();
|
List<ContBasic> contList = result.body().getResult();
|
||||||
if (contList == null || contList.isEmpty()) {
|
if (contList == null || contList.isEmpty()) {
|
||||||
return new ResultContDto();
|
return new ResultContDto(
|
||||||
|
result.body().getCode(),
|
||||||
|
result.body().getMessage(),
|
||||||
|
result.body().getResult(),
|
||||||
|
result.body().getSuccess());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ContBasic cont : contList) {
|
for (ContBasic cont : contList) {
|
||||||
@@ -429,4 +434,72 @@ public class GukYuinApiService {
|
|||||||
public List<LabelSendDto> findLabelingCompleteSendList(LocalDate yesterday) {
|
public List<LabelSendDto> findLabelingCompleteSendList(LocalDate yesterday) {
|
||||||
return gukyuinCoreService.findLabelingCompleteSendList(yesterday);
|
return gukyuinCoreService.findLabelingCompleteSendList(yesterday);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ResultContDto findChnPnuToContObject(
|
||||||
|
String chnDtctId, String chnDtctObjtId, Integer pageIndex, Integer pageSize) {
|
||||||
|
|
||||||
|
String url =
|
||||||
|
gukyuinCdiUrl
|
||||||
|
+ "/chn/cont/"
|
||||||
|
+ chnDtctId
|
||||||
|
+ "/chnDtctObjtId/"
|
||||||
|
+ chnDtctObjtId
|
||||||
|
+ "?pageIndex="
|
||||||
|
+ pageIndex
|
||||||
|
+ "&pageSize="
|
||||||
|
+ pageSize;
|
||||||
|
|
||||||
|
ExternalCallResult<ChngDetectContDto.ResultContDto> result =
|
||||||
|
externalHttpClient.call(
|
||||||
|
url,
|
||||||
|
HttpMethod.GET,
|
||||||
|
null,
|
||||||
|
netUtils.jsonHeaders(),
|
||||||
|
ChngDetectContDto.ResultContDto.class);
|
||||||
|
|
||||||
|
this.insertGukyuinAuditLog(
|
||||||
|
EventType.DETAIL.getId(),
|
||||||
|
netUtils.getLocalIP(),
|
||||||
|
userUtil.getId(),
|
||||||
|
url.replace(gukyuinUrl, ""),
|
||||||
|
null,
|
||||||
|
result.body() != null && result.body().getSuccess());
|
||||||
|
return result.body();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChngDetectMastDto.RlbDtctDto findRlbDtctList(String chnDtctId) {
|
||||||
|
|
||||||
|
String url = gukyuinCdiUrl + "/rlb/dtct/" + chnDtctId;
|
||||||
|
|
||||||
|
ExternalCallResult<ChngDetectMastDto.RlbDtctDto> result =
|
||||||
|
externalHttpClient.call(
|
||||||
|
url, HttpMethod.GET, null, netUtils.jsonHeaders(), ChngDetectMastDto.RlbDtctDto.class);
|
||||||
|
|
||||||
|
this.insertGukyuinAuditLog(
|
||||||
|
EventType.LIST.getId(),
|
||||||
|
netUtils.getLocalIP(),
|
||||||
|
userUtil.getId(),
|
||||||
|
url.replace(gukyuinUrl, ""),
|
||||||
|
null,
|
||||||
|
result.body() != null && result.body().getSuccess());
|
||||||
|
return result.body();
|
||||||
|
}
|
||||||
|
|
||||||
|
public RlbDtctDto findRlbDtctObject(String chnDtctObjtId) {
|
||||||
|
|
||||||
|
String url = gukyuinCdiUrl + "/rlb/objt/" + chnDtctObjtId;
|
||||||
|
|
||||||
|
ExternalCallResult<ChngDetectMastDto.RlbDtctDto> result =
|
||||||
|
externalHttpClient.call(
|
||||||
|
url, HttpMethod.GET, null, netUtils.jsonHeaders(), ChngDetectMastDto.RlbDtctDto.class);
|
||||||
|
|
||||||
|
this.insertGukyuinAuditLog(
|
||||||
|
EventType.DETAIL.getId(),
|
||||||
|
netUtils.getLocalIP(),
|
||||||
|
userUtil.getId(),
|
||||||
|
url.replace(gukyuinUrl, ""),
|
||||||
|
null,
|
||||||
|
result.body() != null && result.body().getSuccess());
|
||||||
|
return result.body();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user