From bb920c6ca863daded35c42738b8dbd4be88a9b42 Mon Sep 17 00:00:00 2001 From: Moon Date: Tue, 6 Jan 2026 12:05:27 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=91=EC=97=85=ED=98=84=ED=99=A9=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../postgres/repository/label/LabelWorkRepositoryImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/label/LabelWorkRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/label/LabelWorkRepositoryImpl.java index 8f01bed8..bee35325 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/label/LabelWorkRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/label/LabelWorkRepositoryImpl.java @@ -404,7 +404,7 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport public NumberExpression caseSumExpression(BooleanExpression condition) { NumberExpression sumExp = new CaseBuilder() - .when(labelingAssignmentEntity.workState.eq("DONE")) + .when(condition) .then(1L) .otherwise(0L) .sum(); @@ -417,8 +417,6 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport LocalDate threeDaysAgo = LocalDate.now().plusDays(addDayCnt); String toDate = threeDaysAgo.format(DateTimeFormatter.ofPattern("YYYY-MM-DD")); - // System.out.println("toDate == " + toDate); - BooleanExpression condition = Expressions.stringTemplate("to_char({0}, 'YYYY-MM-DD')", path).eq(toDate);