추론 기본 정보에 상태 추가
This commit is contained in:
@@ -458,6 +458,7 @@ public class InferenceDetailDto {
|
||||
private String bboxGeom;
|
||||
private String bboxCenterPoint;
|
||||
private UUID inferenceUuid;
|
||||
private String status;
|
||||
|
||||
public AnalResultInfo(
|
||||
String analTitle,
|
||||
@@ -474,7 +475,8 @@ public class InferenceDetailDto {
|
||||
String subUid,
|
||||
Boolean applyYn,
|
||||
ZonedDateTime applyDttm,
|
||||
UUID inferenceUuid) {
|
||||
UUID inferenceUuid,
|
||||
String status) {
|
||||
this.analTitle = analTitle;
|
||||
this.modelVer1 = modelVer1;
|
||||
this.modelVer2 = modelVer2;
|
||||
@@ -489,6 +491,7 @@ public class InferenceDetailDto {
|
||||
this.subUid = subUid;
|
||||
this.applyYn = applyYn;
|
||||
this.applyDttm = applyDttm;
|
||||
this.status = status;
|
||||
Duration elapsed =
|
||||
(inferStartDttm != null && inferEndDttm != null)
|
||||
? Duration.between(inferStartDttm, inferEndDttm)
|
||||
@@ -538,6 +541,10 @@ public class InferenceDetailDto {
|
||||
public Boolean getApplyYn() {
|
||||
return this.applyYn != null && this.applyYn;
|
||||
}
|
||||
|
||||
public String getStatusNm() {
|
||||
return InferenceResultDto.Status.getDescByCode(this.status);
|
||||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
|
||||
@@ -315,7 +315,8 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
|
||||
Expressions.stringTemplate("substring({0} from 1 for 8)", mapSheetLearnEntity.uid),
|
||||
mapSheetLearnEntity.applyYn,
|
||||
mapSheetLearnEntity.applyDttm,
|
||||
mapSheetAnalInferenceEntity.uuid))
|
||||
mapSheetAnalInferenceEntity.uuid,
|
||||
mapSheetLearnEntity.status))
|
||||
.from(mapSheetLearnEntity)
|
||||
.leftJoin(m1)
|
||||
.on(mapSheetLearnEntity.m1ModelUuid.eq(m1.uuid))
|
||||
|
||||
Reference in New Issue
Block a user