From f4f75f353ce082519f3568c88cb58747e8448add Mon Sep 17 00:00:00 2001 From: teddy Date: Fri, 6 Mar 2026 19:51:08 +0900 Subject: [PATCH] =?UTF-8?q?testing=20=ED=85=8C=EC=9D=B4=EB=B8=94=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...InferenceResultsTestingRepositoryImpl.java | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultsTestingRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultsTestingRepositoryImpl.java index 2964c43d..fbd0a60e 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultsTestingRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultsTestingRepositoryImpl.java @@ -23,11 +23,12 @@ public class InferenceResultsTestingRepositoryImpl .select(inferenceResultsTestingEntity) .from(inferenceResultsTestingEntity) .where( - inferenceResultsTestingEntity - .batchId - .in(batchIds) - .and(inferenceResultsTestingEntity.afterC.isNotNull()) - .and(inferenceResultsTestingEntity.afterP.isNotNull())) + inferenceResultsTestingEntity.batchId.in(batchIds), + inferenceResultsTestingEntity.afterC.isNotNull(), + inferenceResultsTestingEntity.afterP.isNotNull(), + inferenceResultsTestingEntity.beforeC.isNotNull(), + inferenceResultsTestingEntity.beforeP.isNotNull(), + inferenceResultsTestingEntity.probability.isNotNull()) .fetch(); } @@ -44,7 +45,10 @@ public class InferenceResultsTestingRepositoryImpl .where( inferenceResultsTestingEntity.batchId.in(batchIds), inferenceResultsTestingEntity.afterC.isNotNull(), - inferenceResultsTestingEntity.afterP.isNotNull()) + inferenceResultsTestingEntity.afterP.isNotNull(), + inferenceResultsTestingEntity.beforeC.isNotNull(), + inferenceResultsTestingEntity.beforeP.isNotNull(), + inferenceResultsTestingEntity.probability.isNotNull()) .fetchOne(); return cnt == null ? 0L : cnt; @@ -62,11 +66,12 @@ public class InferenceResultsTestingRepositoryImpl inferenceResultsTestingEntity.afterYear.max())) .from(inferenceResultsTestingEntity) .where( - inferenceResultsTestingEntity - .batchId - .in(batchIds) - .and(inferenceResultsTestingEntity.afterC.isNotNull()) - .and(inferenceResultsTestingEntity.afterP.isNotNull())) + inferenceResultsTestingEntity.batchId.in(batchIds), + inferenceResultsTestingEntity.afterC.isNotNull(), + inferenceResultsTestingEntity.afterP.isNotNull(), + inferenceResultsTestingEntity.beforeC.isNotNull(), + inferenceResultsTestingEntity.beforeP.isNotNull(), + inferenceResultsTestingEntity.probability.isNotNull()) .groupBy( inferenceResultsTestingEntity.batchId, inferenceResultsTestingEntity.modelVersion, -- 2.49.1