Merge pull request '국유인 체크 url 수정' (#121) from feat/infer_dev_260211 into develop

Reviewed-on: #121
This commit was merged in pull request #121.
This commit is contained in:
2026-02-27 16:24:11 +09:00

View File

@@ -72,6 +72,9 @@ public class GukYuinApiService {
@Value("${file.output-dir}") @Value("${file.output-dir}")
private String outputDir; private String outputDir;
@Value("${file.dataset-dir}")
private String datasetDir;
@Transactional @Transactional
public ChngDetectMastDto.RegistResDto regist( public ChngDetectMastDto.RegistResDto regist(
ChngDetectMastDto.ChnDetectMastReqDto chnDetectMastReq) { ChngDetectMastDto.ChnDetectMastReqDto chnDetectMastReq) {
@@ -457,9 +460,8 @@ public class GukYuinApiService {
} }
// 추론 shp 파일 생성되는 위치 // 추론 shp 파일 생성되는 위치
String kamconfsDatasetExportPathfsDatasetExportPath = outputDir; log.info("datasetDir path : " + datasetDir + info.getUid());
log.info("outputDir path : " + kamconfsDatasetExportPathfsDatasetExportPath); if (!Files.isDirectory(Path.of(datasetDir + info.getUid()))) {
if (!Files.isDirectory(Path.of(kamconfsDatasetExportPathfsDatasetExportPath + info.getUid()))) {
return new ResponseObj( return new ResponseObj(
ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다."); ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다.");
} }
@@ -469,6 +471,9 @@ public class GukYuinApiService {
gukyuinCoreService.findMapSheetLearnYearStage(info.getCompareYyyy(), info.getTargetYyyy()); gukyuinCoreService.findMapSheetLearnYearStage(info.getCompareYyyy(), info.getTargetYyyy());
// reqDto 셋팅 // reqDto 셋팅
// 마운트된 추론 shp 파일 생성되는 위치
log.info("outputDir path : " + outputDir + info.getUid());
String kamconfsDatasetExportPathfsDatasetExportPath = outputDir;
ChnDetectMastReqDto reqDto = new ChnDetectMastReqDto(); ChnDetectMastReqDto reqDto = new ChnDetectMastReqDto();
reqDto.setCprsYr(String.valueOf(info.getCompareYyyy())); reqDto.setCprsYr(String.valueOf(info.getCompareYyyy()));
reqDto.setCrtrYr(String.valueOf(info.getTargetYyyy())); reqDto.setCrtrYr(String.valueOf(info.getTargetYyyy()));