Skip to content

Commit

Permalink
[refactor] 누락된 periodExpression 추가(#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwan2-99 committed May 27, 2024
1 parent 0eaeb14 commit 3f96cc0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public static <T extends ComparableExpression<?>> BooleanExpression eqExpression
return stringExpression.eq(target);
}

public static BooleanExpression periodExpression(final DateTimePath<LocalDateTime> dateExpression,
final Date date) {
return dateExpression.between(date.getStartDateTime(), date.getEndDateTime());
}
public static <T extends Comparable<?>> BooleanExpression eqExpression(final SimpleExpression<T> simpleExpression, final SimpleExpression<T> target) {

return simpleExpression.eq(target);
Expand Down

0 comments on commit 3f96cc0

Please sign in to comment.