[KC-99] 추론 완료 상세목록 수정
[KC-103] 추론 완료 geom 테이블 등록 수정
This commit is contained in:
@@ -37,10 +37,10 @@ public class InferenceResultShpApiController {
|
||||
@ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@PostMapping("/save/{id}")
|
||||
@PostMapping("/save/{learnId}")
|
||||
public ApiResponseDto<InferenceResultShpDto.InferenceCntDto> saveInferenceData(
|
||||
@PathVariable Long id) {
|
||||
return ApiResponseDto.createOK(inferenceResultShpService.saveInferenceResultData(id));
|
||||
@PathVariable Long learnId) {
|
||||
return ApiResponseDto.createOK(inferenceResultShpService.saveInferenceResultData(learnId));
|
||||
}
|
||||
|
||||
@Operation(summary = "shp 파일 생성", description = "shp 파일 생성")
|
||||
@@ -56,8 +56,9 @@ public class InferenceResultShpApiController {
|
||||
@ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@PostMapping("/create")
|
||||
public ApiResponseDto<InferenceResultShpDto.FileCntDto> createShpFile() {
|
||||
return ApiResponseDto.createOK(inferenceResultShpService.createShpFile());
|
||||
@PostMapping("/create/{learnId}")
|
||||
public ApiResponseDto<InferenceResultShpDto.FileCntDto> createShpFile(
|
||||
@PathVariable Long learnId) {
|
||||
return ApiResponseDto.createOK(inferenceResultShpService.createShpFile(learnId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class InferenceResultShpService {
|
||||
* <p>중간 실패 시 다음 실행에서 전체 재생성된다.
|
||||
*/
|
||||
@Transactional
|
||||
public InferenceResultShpDto.FileCntDto createShpFile() {
|
||||
public InferenceResultShpDto.FileCntDto createShpFile(Long learnId) {
|
||||
|
||||
// TODO 배치 실행으로 변경 필요
|
||||
int batchSize = 100;
|
||||
@@ -43,7 +43,7 @@ public class InferenceResultShpService {
|
||||
|
||||
WriteCnt total = WriteCnt.zero();
|
||||
|
||||
List<Long> dataUids = coreService.findPendingDataUids(batchSize);
|
||||
List<Long> dataUids = coreService.findPendingDataUids(batchSize, learnId);
|
||||
|
||||
for (Long dataUid : dataUids) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user