국유인 연동 outputdir 경로 변경

This commit is contained in:
2026-02-27 15:14:18 +09:00
parent 9f379c6dc3
commit 396e76c362
3 changed files with 10 additions and 7 deletions

View File

@@ -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) 둘 다 종료 처리

View File

@@ -101,6 +101,7 @@ inference:
batch-url: http://192.168.2.183:8000/batches
jar-path: ${inference.nfs}/repo/jar/shp-exporter.jar
inference-server-name: server1,server2,server3,server4
output-dir: ${inference.nfs}/model_output/export
gukyuin:
#url: http://localhost:8080

View File

@@ -95,6 +95,7 @@ inference:
batch-url: http://172.16.4.56:8000/batches
jar-path: ${inference.nfs}/repo/jar/shp-exporter.jar
inference-server-name: server1,server2,server3,server4
output-dir: ${inference.nfs}/model_output/export
gukyuin:
url: http://127.0.0.1:5301