추론진행율 수정

This commit is contained in:
Moon
2026-01-12 22:18:36 +09:00
parent 61ef2729a3
commit 4376054562
2 changed files with 21 additions and 4 deletions

View File

@@ -207,7 +207,8 @@ public class InferenceResultDto {
private String mapSheetScope; private String mapSheetScope;
@JsonFormatDttm private ZonedDateTime inferStartDttm; @JsonFormatDttm private ZonedDateTime inferStartDttm;
@JsonFormatDttm private ZonedDateTime inferEndDttm; @JsonFormatDttm private ZonedDateTime inferEndDttm;
private Long detectingCnt; private Long detectingCnt = 0L;
private Long detectingEndCnt = 0L;
private String model1Ver; private String model1Ver;
private String model2Ver; private String model2Ver;
@@ -222,6 +223,7 @@ public class InferenceResultDto {
ZonedDateTime inferStartDttm, ZonedDateTime inferStartDttm,
ZonedDateTime inferEndDttm, ZonedDateTime inferEndDttm,
Long detectingCnt, Long detectingCnt,
Long detectingEndCnt,
String model1Ver, String model1Ver,
String model2Ver, String model2Ver,
String model3Ver) { String model3Ver) {
@@ -233,19 +235,22 @@ public class InferenceResultDto {
this.inferStartDttm = inferStartDttm; this.inferStartDttm = inferStartDttm;
this.inferEndDttm = inferEndDttm; this.inferEndDttm = inferEndDttm;
this.detectingCnt = detectingCnt; this.detectingCnt = detectingCnt;
this.detectingEndCnt = detectingEndCnt;
this.model1Ver = model1Ver; this.model1Ver = model1Ver;
this.model2Ver = model2Ver; this.model2Ver = model2Ver;
this.model3Ver = model3Ver; this.model3Ver = model3Ver;
if( this.detectingEndCnt == null )this.detectingEndCnt = 0L;
} }
private String usedServerName; private String usedServerName;
private Long detectingEndCnt = 7L;
private String model1VerStatus = "PROCCESING"; private String model1VerStatus = "PROCCESING";
private String model1VerStatusName = "진행중"; private String model1VerStatusName = "진행중";
private String model2VerStatus = "PROCCESING"; private String model2VerStatus = "PROCCESING";
private String model2VerStatusName = "진행중"; private String model2VerStatusName = "진행중";
private String model3VerStatus = "PROCCESING"; private String model3VerStatus = "PROCCESING";
private String model4VerStatusName = "진행중"; private String model3VerStatusName = "진행중";
public String getDetectOptionName() { public String getDetectOptionName() {
if (this.detectOption.equals("EXCL")) return "추론제외"; if (this.detectOption.equals("EXCL")) return "추론제외";
@@ -253,9 +258,20 @@ public class InferenceResultDto {
} }
public String getMapSheetScopeName() { public String getMapSheetScopeName() {
if (this.detectOption.equals("ALL")) return "전체"; if (this.mapSheetScope.equals("ALL")) return "전체";
return "부분"; return "부분";
} }
public double getDetectingRate() {
if (this.detectingCnt == null || this.detectingCnt == 0L) {
return 0.0;
}
if( this.detectingEndCnt == null )this.detectingEndCnt = 0L;
return (double) (this.detectingEndCnt / this.detectingCnt) * 100.0;
}
} }
@Getter @Getter

View File

@@ -171,6 +171,7 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
mapSheetLearnEntity.inferStartDttm, mapSheetLearnEntity.inferStartDttm,
mapSheetLearnEntity.inferEndDttm, mapSheetLearnEntity.inferEndDttm,
mapSheetLearnEntity.detectingCnt, mapSheetLearnEntity.detectingCnt,
mapSheetLearnEntity.detectEndCnt,
m1Model.modelVer.as("model1Ver"), m1Model.modelVer.as("model1Ver"),
m2Model.modelVer.as("model2Ver"), m2Model.modelVer.as("model2Ver"),
m3Model.modelVer.as("model3Ver"))) m3Model.modelVer.as("model3Ver")))