Skip to content

Commit

Permalink
去掉代码中的一些坏味道.
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkfox committed Feb 12, 2020
1 parent c93ef5d commit 31c074d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ protected <Z, X> Predicate buildBetweenPredicate(
List<?> list = (List<?>) value;
return this.buildBetweenPredicate(criteriaBuilder, from, fieldName, list.get(0), list.get(1));
} else if (value instanceof BetweenValue) {
BetweenValue bv = (BetweenValue) value;
BetweenValue<?> bv = (BetweenValue<?>) value;
return this.buildBetweenPredicate(criteriaBuilder, from, fieldName, bv.getStart(), bv.getEnd());
} else {
throw new BuildSpecificationException("【Fenix 异常】构建【@Between】注解区间查询时,参数值类型不是数组或 "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
import javax.persistence.criteria.From;
import javax.persistence.criteria.Predicate;

import lombok.extern.slf4j.Slf4j;

/**
* 构建“范围匹配条件”({@code field IN ('xxx', 'yyy')})场景的 {@link Predicate} 处理器.
*
* @author YangWenpeng on 2019-12-17
* @author blinkfox on 2020-01-14
* @since v2.2.0
*/
@Slf4j
public class InPredicateHandler extends AbstractPredicateHandler {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
import javax.persistence.criteria.From;
import javax.persistence.criteria.Predicate;

import lombok.extern.slf4j.Slf4j;

/**
* 构建“或者范围匹配条件”({@code OR field IN ('xxx', 'yyy')})场景的 {@link Predicate} 处理器.
*
* @author YangWenpeng on 2019-12-17
* @author blinkfox on 2020-01-14
* @since v2.2.0
*/
@Slf4j
public class OrInPredicateHandler extends AbstractPredicateHandler {

@Override
Expand Down

0 comments on commit 31c074d

Please sign in to comment.