| | |
| | | } |
| | | |
| | | if(Objects.nonNull(param.getAvgScore()) && param.getAvgScore().intValue() != 0) { |
| | | set.add(criteriaBuilder.between(root.get("avgScore"), param.getAvgScore().intValue() - 1, param.getAvgScore().intValue() + 1)); |
| | | set.add(criteriaBuilder.equal(root.get("avgScore"), param.getAvgScore())); |
| | | } |
| | | |
| | | Predicate[] predicates = new Predicate[set.size()]; |
| | |
| | | } |
| | | |
| | | if(Objects.nonNull(param.getAvgScore()) && param.getAvgScore().intValue() != 0) { |
| | | set.add(criteriaBuilder.between(root.get("avgScore"), param.getAvgScore().intValue() - 1, param.getAvgScore().intValue() + 1)); |
| | | set.add(criteriaBuilder.equal(root.get("avgScore"), param.getAvgScore())); |
| | | } |
| | | |
| | | if(StringUtils.isNotEmpty(param.getArea())) { |