추론실행할때 회차 저장 제거

This commit is contained in:
2026-01-16 17:38:37 +09:00
parent d4bad6485e
commit c7db60cccc
6 changed files with 13 additions and 7 deletions

View File

@@ -419,6 +419,7 @@ public class InferenceDetailDto {
private UUID m1ModelUuid;
private UUID m2ModelUuid;
private UUID m3ModelUuid;
private String uid;
}
@Schema(name = "AnalResultInfo", description = "추론결과 기본정보")

View File

@@ -175,6 +175,9 @@ public class InferenceResultDto {
@Schema(description = "기준년도")
private Integer targetYyyy;
@Schema(description = "uid")
private String uid;
@Schema(description = "상태명")
@JsonProperty("statusName")
public String statusName() {

View File

@@ -363,6 +363,7 @@ public class InferenceResultCoreService {
inferenceBatchSheet.setM1ModelUuid(entity.getM1ModelUuid());
inferenceBatchSheet.setM2ModelUuid(entity.getM2ModelUuid());
inferenceBatchSheet.setM3ModelUuid(entity.getM3ModelUuid());
inferenceBatchSheet.setUid(entity.getUid());
return inferenceBatchSheet;
}

View File

@@ -186,6 +186,9 @@ public class MapSheetLearnEntity {
@Column(name = "m3_failed_jobs", nullable = false)
private int m3FailedJobs = 0;
@Column(name = "uid", nullable = false)
private String uid;
public InferenceResultDto.ResultList toDto() {
return new InferenceResultDto.ResultList(
this.uuid,
@@ -199,6 +202,7 @@ public class MapSheetLearnEntity {
this.applyYn,
this.applyDttm,
this.compareYyyy,
this.targetYyyy);
this.targetYyyy,
this.uid);
}
}

View File

@@ -283,6 +283,8 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC
INNER JOIN tb_map_sheet_anal_data_inference_geom msadig
ON msadi.data_uid = msadig.data_uid
WHERE msai.anal_uid = :analUid
AND msadig.class_before_cd IS NOT NULL
AND msadig.class_after_cd IS NOT NULL
GROUP BY
msadig.compare_yyyy
,msadig.target_yyyy

View File

@@ -222,7 +222,6 @@ public class MapSheetInferenceJobService {
List<InferenceResultsTestingDto.ShpDto> resultList =
inferenceResultCoreService.getInferenceResults(batchIds);
String inferenceId = "";
boolean first = true;
StringBuilder sb = new StringBuilder();
for (InferenceResultsTestingDto.ShpDto dto : resultList) {
@@ -233,12 +232,8 @@ public class MapSheetInferenceJobService {
sb.append(",");
}
sb.append("\"").append(dto.getMapId()).append("\"");
if (first) {
inferenceId = dto.getUid();
first = false;
}
}
inferenceId = sheet.getUid();
String mapIds = sb.toString();
String batchId = sheet.getM1BatchId() + "," + sheet.getM2BatchId() + "," + sheet.getM3BatchId();