[KC-108] 모델 조회 수정

This commit is contained in:
2026-01-09 18:07:10 +09:00
parent 3727369210
commit 05938f301c
2 changed files with 5 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ public class ModelMngDto {
private String clsModelFileName; private String clsModelFileName;
private String clsModelVersion; private String clsModelVersion;
private Double priority; private Double priority;
private String recentUseDttm;
} }
@Schema(name = "ModelAddReq", description = "모델 등록 req") @Schema(name = "ModelAddReq", description = "모델 등록 req")
@@ -198,6 +199,7 @@ public class ModelMngDto {
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public static class ModelMetricAddReq { public static class ModelMetricAddReq {
private Long modelUid; private Long modelUid;
private Long modelVerUid; private Long modelVerUid;
private double f1Score; private double f1Score;

View File

@@ -89,7 +89,9 @@ public class ModelMngRepositoryImpl extends QuerydslRepositorySupport
modelMngEntity.clsModelPath, modelMngEntity.clsModelPath,
modelMngEntity.clsModelFileName, modelMngEntity.clsModelFileName,
modelMngEntity.clsModelVersion, modelMngEntity.clsModelVersion,
modelMngEntity.priority)) modelMngEntity.priority,
Expressions.stringTemplate(
"to_char({0}, 'YYYY-MM-DD')", modelMngEntity.recentUseDttm)))
.from(modelMngEntity) .from(modelMngEntity)
.innerJoin(modelResultMetricEntity) .innerJoin(modelResultMetricEntity)
.on(modelMngEntity.modelUid.eq(modelResultMetricEntity.modelUid)) .on(modelMngEntity.modelUid.eq(modelResultMetricEntity.modelUid))