국유인 연동 경로 확인 TEST #52

Merged
gina merged 1 commits from feat/infer_dev_260107 into develop 2026-02-05 17:00:37 +09:00
3 changed files with 17 additions and 9 deletions
Showing only changes of commit 3237863542 - Show all commits

View File

@@ -124,7 +124,7 @@ public class ChngDetectContDto {
private Integer code; private Integer code;
private String message; private String message;
private List<Boolean> result; private DtoPnuDetectMpng result;
private Boolean success; private Boolean success;
} }

View File

@@ -456,6 +456,9 @@ public class GukYuinApiService {
Integer maxStage = Integer maxStage =
gukyuinCoreService.findMapSheetLearnYearStage(info.getCompareYyyy(), info.getTargetYyyy()); gukyuinCoreService.findMapSheetLearnYearStage(info.getCompareYyyy(), info.getTargetYyyy());
// TODO : 1회차를 종료 상태로 처리하고 2회차를 보내야 함
// TODO : learn, inference 둘다 종료 처리
// reqDto 셋팅 // reqDto 셋팅
ChnDetectMastReqDto reqDto = new ChnDetectMastReqDto(); ChnDetectMastReqDto reqDto = new ChnDetectMastReqDto();
reqDto.setCprsYr(String.valueOf(info.getCompareYyyy())); reqDto.setCprsYr(String.valueOf(info.getCompareYyyy()));
@@ -464,18 +467,22 @@ public class GukYuinApiService {
reqDto.setChnDtctId(info.getUid()); reqDto.setChnDtctId(info.getUid());
reqDto.setPathNm("/kamco-nfs/dataset/export/" + info.getUid()); reqDto.setPathNm("/kamco-nfs/dataset/export/" + info.getUid());
log.info("### path : " + Path.of("/kamco-nfs/dataset/export/" + info.getUid()));
log.info(
"#### isDirectory : "
+ Files.isDirectory(Path.of("/kamco-nfs/dataset/export/" + info.getUid())));
if (Files.isDirectory(Path.of("/kamco-nfs/dataset/export/" + info.getUid()))) { if (Files.isDirectory(Path.of("/kamco-nfs/dataset/export/" + info.getUid()))) {
return new ResponseObj( return new ResponseObj(
ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다."); ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다.");
} }
// 국유인 /chn/mast/regist 전송 // 국유인 /chn/mast/regist 전송
ChngDetectMastDto.RegistResDto result = this.regist(reqDto); // ChngDetectMastDto.RegistResDto result = this.regist(reqDto);
if (result.getSuccess()) { // if (result.getSuccess()) {
return new ResponseObj(ApiResponseCode.OK, "연동되었습니다."); return new ResponseObj(ApiResponseCode.OK, "연동되었습니다.");
} else { // } else {
return new ResponseObj(ApiResponseCode.INTERNAL_SERVER_ERROR, result.getMessage()); // return new ResponseObj(ApiResponseCode.INTERNAL_SERVER_ERROR, result.getMessage());
} // }
} }
public List<LabelSendDto> findLabelingCompleteSendList(LocalDate yesterday) { public List<LabelSendDto> findLabelingCompleteSendList(LocalDate yesterday) {

View File

@@ -53,8 +53,9 @@ public class GukYuinPnuJobRepositoryImpl implements GukYuinPnuJobRepositoryCusto
if (entity == null) { if (entity == null) {
queryFactory queryFactory
.insert(pnuEntity) .insert(pnuEntity)
.columns(pnuEntity.geo.geoUid, pnuEntity.pnu, pnuEntity.createdDttm) .columns(
.values(geoUid, pnu, ZonedDateTime.now()) pnuEntity.geo.geoUid, pnuEntity.pnu, pnuEntity.createdDttm, pnuEntity.chnDtctObjtId)
.values(geoUid, pnu, ZonedDateTime.now(), chnDtctObjtId)
.execute(); .execute();
} }
} }