Commit bce4d3713590f8c64648780cb4afbe19ac6a53b1
1 parent
c0288e96
boolean类型搜索
Showing
2 changed files
with
10 additions
and
0 deletions
src/main/java/com/bsth/entity/search/PredicatesBuilder.java
| ... | ... | @@ -99,4 +99,12 @@ public class PredicatesBuilder { |
| 99 | 99 | public static Predicate isNotNull(CriteriaBuilder cb,Path<String> expression, Object object){ |
| 100 | 100 | return cb.isNotNull(expression); |
| 101 | 101 | } |
| 102 | + | |
| 103 | + public static Predicate isf(CriteriaBuilder cb,Path<Boolean> expression, Object object){ | |
| 104 | + return cb.isFalse(expression); | |
| 105 | + } | |
| 106 | + | |
| 107 | + public static Predicate ist(CriteriaBuilder cb,Path<Boolean> expression, Object object){ | |
| 108 | + return cb.isTrue(expression); | |
| 109 | + } | |
| 102 | 110 | } | ... | ... |