|
|
@@ -249,6 +249,10 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
info.expression(PredicateUtils.lte("date", new Date(filter.getEndDate()), false));
|
|
|
}
|
|
|
}
|
|
|
+ SimpleExpression amount = new SimpleExpression("amount", Constant.YES, CriterionExpression.Operator.GT);
|
|
|
+ SimpleExpression[] simpleExpressions = new SimpleExpression[]{amount};
|
|
|
+ LogicalExpression logicalExpression = PredicateUtils.and(simpleExpressions);
|
|
|
+ info.expression(logicalExpression);
|
|
|
return purcInquiryDao.findAll(new Specification<PurcInquiry>() {
|
|
|
public Predicate toPredicate(Root<PurcInquiry> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
|
query.where(info.getPredicates(root, query, builder));
|