|
|
|
|
@@ -69,8 +69,8 @@ public class GukYuinApiService {
|
|
|
|
|
@Value("${file.nfs}")
|
|
|
|
|
private String nfs;
|
|
|
|
|
|
|
|
|
|
// @Value("${file.dataset-dir}")
|
|
|
|
|
// private String datasetDir;
|
|
|
|
|
@Value("${inference.output-dir}")
|
|
|
|
|
private String outputDir;
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
public ChngDetectMastDto.RegistResDto regist(
|
|
|
|
|
@@ -456,10 +456,11 @@ public class GukYuinApiService {
|
|
|
|
|
return new ResponseObj(ApiResponseCode.DUPLICATE_DATA, "이미 국유인 연동을 한 회차입니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// String kamconfsDatasetExportPathfsDatasetExportPath = "/kamco-nfs/dataset/export/";
|
|
|
|
|
String kamconfsDatasetExportPathfsDatasetExportPath =
|
|
|
|
|
String.format("%s%s", nfs, "/dataset/export/");
|
|
|
|
|
if (!Files.isDirectory(Path.of(kamconfsDatasetExportPathfsDatasetExportPath + info.getUid()))) {
|
|
|
|
|
// 추론 shp 파일 생성되는 위치
|
|
|
|
|
String kamconfsDatasetExportPathfsDatasetExportPath = outputDir;
|
|
|
|
|
log.info("outputDir path : " + kamconfsDatasetExportPathfsDatasetExportPath);
|
|
|
|
|
if (!Files.isDirectory(
|
|
|
|
|
Path.of(kamconfsDatasetExportPathfsDatasetExportPath + "/" + info.getUid()))) {
|
|
|
|
|
return new ResponseObj(
|
|
|
|
|
ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다.");
|
|
|
|
|
}
|
|
|
|
|
@@ -474,7 +475,7 @@ public class GukYuinApiService {
|
|
|
|
|
reqDto.setCrtrYr(String.valueOf(info.getTargetYyyy()));
|
|
|
|
|
reqDto.setChnDtctSno(String.valueOf(maxStage + 1));
|
|
|
|
|
reqDto.setChnDtctId(info.getUid());
|
|
|
|
|
reqDto.setPathNm(kamconfsDatasetExportPathfsDatasetExportPath + info.getUid());
|
|
|
|
|
reqDto.setPathNm(kamconfsDatasetExportPathfsDatasetExportPath + "/" + info.getUid());
|
|
|
|
|
|
|
|
|
|
// 1회차를 종료 상태로 처리하고 2회차를 보내야 함
|
|
|
|
|
// 추론(learn), 학습데이터(inference) 둘 다 종료 처리
|
|
|
|
|
|