Merge pull request 'jsonNode 변환 로직 수정' (#320) from feat/infer_dev_260107 into develop
Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/320
This commit is contained in:
@@ -313,21 +313,6 @@ public class InferenceDetailDto {
|
|||||||
String pnu;
|
String pnu;
|
||||||
String fitState;
|
String fitState;
|
||||||
|
|
||||||
@JsonProperty("fitState")
|
|
||||||
public String getFitState() {
|
|
||||||
return this.fitState == null ? null : this.fitState;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("fitStateName")
|
|
||||||
public String fitStateName() {
|
|
||||||
return ImageryFitStatus.getDescByCode(this.fitState);
|
|
||||||
}
|
|
||||||
|
|
||||||
// @JsonIgnore String gemoStr;
|
|
||||||
// @JsonIgnore String geomCenterStr;
|
|
||||||
// JsonNode gemo;
|
|
||||||
// JsonNode geomCenter;
|
|
||||||
|
|
||||||
public Geom(
|
public Geom(
|
||||||
UUID uuid,
|
UUID uuid,
|
||||||
String uid,
|
String uid,
|
||||||
@@ -360,6 +345,21 @@ public class InferenceDetailDto {
|
|||||||
this.pnu = pnu;
|
this.pnu = pnu;
|
||||||
this.fitState = fitState;
|
this.fitState = fitState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonProperty("fitState")
|
||||||
|
public String getFitState() {
|
||||||
|
return this.fitState == null ? null : this.fitState;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @JsonIgnore String gemoStr;
|
||||||
|
// @JsonIgnore String geomCenterStr;
|
||||||
|
// JsonNode gemo;
|
||||||
|
// JsonNode geomCenter;
|
||||||
|
|
||||||
|
@JsonProperty("fitStateName")
|
||||||
|
public String fitStateName() {
|
||||||
|
return ImageryFitStatus.getDescByCode(this.fitState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Schema(name = "InferenceResultSearchReq", description = "분석결과 목록 요청 정보")
|
@Schema(name = "InferenceResultSearchReq", description = "분석결과 목록 요청 정보")
|
||||||
@@ -458,26 +458,6 @@ public class InferenceDetailDto {
|
|||||||
private String bboxGeom;
|
private String bboxGeom;
|
||||||
private String bboxCenterPoint;
|
private String bboxCenterPoint;
|
||||||
|
|
||||||
@JsonProperty("bboxGeom")
|
|
||||||
public JsonNode getBboxGeom() {
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
|
||||||
try {
|
|
||||||
return mapper.readTree(this.bboxGeom);
|
|
||||||
} catch (JsonProcessingException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("bboxCenterPoint")
|
|
||||||
public JsonNode getBboxCenterPoint() {
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
|
||||||
try {
|
|
||||||
return mapper.readTree(this.bboxCenterPoint);
|
|
||||||
} catch (JsonProcessingException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public AnalResultInfo(
|
public AnalResultInfo(
|
||||||
String analTitle,
|
String analTitle,
|
||||||
String modelVer1,
|
String modelVer1,
|
||||||
@@ -523,6 +503,34 @@ public class InferenceDetailDto {
|
|||||||
this.elapsedDuration = String.format("%02d:%02d:%02d", h, m, s);
|
this.elapsedDuration = String.format("%02d:%02d:%02d", h, m, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonProperty("bboxGeom")
|
||||||
|
public JsonNode getBboxGeom() {
|
||||||
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
try {
|
||||||
|
if (this.bboxGeom != null) {
|
||||||
|
return mapper.readTree(this.bboxGeom);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
} catch (JsonProcessingException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("bboxCenterPoint")
|
||||||
|
public JsonNode getBboxCenterPoint() {
|
||||||
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
try {
|
||||||
|
if (this.bboxCenterPoint != null) {
|
||||||
|
return mapper.readTree(this.bboxCenterPoint);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
} catch (JsonProcessingException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
|||||||
Reference in New Issue
Block a user