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);