작업현황 수정
This commit is contained in:
@@ -404,7 +404,7 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
|
||||
public NumberExpression<Long> caseSumExpression(BooleanExpression condition) {
|
||||
NumberExpression<Long> 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user