testing 테이블 조회 조건 추가 #145

Merged
teddy merged 1 commits from feat/infer_dev_260211 into develop 2026-03-06 19:51:41 +09:00

View File

@@ -23,11 +23,12 @@ public class InferenceResultsTestingRepositoryImpl
.select(inferenceResultsTestingEntity) .select(inferenceResultsTestingEntity)
.from(inferenceResultsTestingEntity) .from(inferenceResultsTestingEntity)
.where( .where(
inferenceResultsTestingEntity inferenceResultsTestingEntity.batchId.in(batchIds),
.batchId inferenceResultsTestingEntity.afterC.isNotNull(),
.in(batchIds) inferenceResultsTestingEntity.afterP.isNotNull(),
.and(inferenceResultsTestingEntity.afterC.isNotNull()) inferenceResultsTestingEntity.beforeC.isNotNull(),
.and(inferenceResultsTestingEntity.afterP.isNotNull())) inferenceResultsTestingEntity.beforeP.isNotNull(),
inferenceResultsTestingEntity.probability.isNotNull())
.fetch(); .fetch();
} }
@@ -44,7 +45,10 @@ public class InferenceResultsTestingRepositoryImpl
.where( .where(
inferenceResultsTestingEntity.batchId.in(batchIds), inferenceResultsTestingEntity.batchId.in(batchIds),
inferenceResultsTestingEntity.afterC.isNotNull(), inferenceResultsTestingEntity.afterC.isNotNull(),
inferenceResultsTestingEntity.afterP.isNotNull()) inferenceResultsTestingEntity.afterP.isNotNull(),
inferenceResultsTestingEntity.beforeC.isNotNull(),
inferenceResultsTestingEntity.beforeP.isNotNull(),
inferenceResultsTestingEntity.probability.isNotNull())
.fetchOne(); .fetchOne();
return cnt == null ? 0L : cnt; return cnt == null ? 0L : cnt;
@@ -62,11 +66,12 @@ public class InferenceResultsTestingRepositoryImpl
inferenceResultsTestingEntity.afterYear.max())) inferenceResultsTestingEntity.afterYear.max()))
.from(inferenceResultsTestingEntity) .from(inferenceResultsTestingEntity)
.where( .where(
inferenceResultsTestingEntity inferenceResultsTestingEntity.batchId.in(batchIds),
.batchId inferenceResultsTestingEntity.afterC.isNotNull(),
.in(batchIds) inferenceResultsTestingEntity.afterP.isNotNull(),
.and(inferenceResultsTestingEntity.afterC.isNotNull()) inferenceResultsTestingEntity.beforeC.isNotNull(),
.and(inferenceResultsTestingEntity.afterP.isNotNull())) inferenceResultsTestingEntity.beforeP.isNotNull(),
inferenceResultsTestingEntity.probability.isNotNull())
.groupBy( .groupBy(
inferenceResultsTestingEntity.batchId, inferenceResultsTestingEntity.batchId,
inferenceResultsTestingEntity.modelVersion, inferenceResultsTestingEntity.modelVersion,