|
@@ -657,6 +657,9 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
info.setPageSize(5);
|
|
info.setPageSize(5);
|
|
|
}
|
|
}
|
|
|
info.setSort(sort);
|
|
info.setSort(sort);
|
|
|
|
|
+ if (null == filter) {
|
|
|
|
|
+ throw new IllegalOperatorException("未传入过滤条件");
|
|
|
|
|
+ }
|
|
|
if (null == filter.getUserUU() && null == filter.getEnUU()) {
|
|
if (null == filter.getUserUU() && null == filter.getEnUU()) {
|
|
|
throw new IllegalAccessError("非法访问");
|
|
throw new IllegalAccessError("非法访问");
|
|
|
}
|
|
}
|
|
@@ -668,19 +671,17 @@ public class InquiryServiceImpl implements InquiryService {
|
|
|
} else {
|
|
} else {
|
|
|
info.expression(PredicateUtils.isNull("enUU"));
|
|
info.expression(PredicateUtils.isNull("enUU"));
|
|
|
}
|
|
}
|
|
|
- if (null != filter) {
|
|
|
|
|
- if (!StringUtils.isEmpty(filter.getKeyword())) {
|
|
|
|
|
- SimpleExpression code = new SimpleExpression("remark", filter.getKeyword(), CriterionExpression.Operator.LIKE);
|
|
|
|
|
- SimpleExpression[] simpleExpressions = new SimpleExpression[]{code};
|
|
|
|
|
- LogicalExpression logicalExpression = PredicateUtils.or(simpleExpressions);
|
|
|
|
|
- info.expression(logicalExpression);
|
|
|
|
|
- }
|
|
|
|
|
- if (filter.getFromDate() != null) {
|
|
|
|
|
- info.expression(PredicateUtils.gte("date", new Date(filter.getFromDate()), false));
|
|
|
|
|
- }
|
|
|
|
|
- if (filter.getEndDate() != null) {
|
|
|
|
|
- info.expression(PredicateUtils.lte("date", new Date(filter.getEndDate()), false));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(filter.getKeyword())) {
|
|
|
|
|
+ SimpleExpression code = new SimpleExpression("remark", filter.getKeyword(), CriterionExpression.Operator.LIKE);
|
|
|
|
|
+ SimpleExpression[] simpleExpressions = new SimpleExpression[]{code};
|
|
|
|
|
+ LogicalExpression logicalExpression = PredicateUtils.or(simpleExpressions);
|
|
|
|
|
+ info.expression(logicalExpression);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (filter.getFromDate() != null) {
|
|
|
|
|
+ info.expression(PredicateUtils.gte("date", new Date(filter.getFromDate()), false));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (filter.getEndDate() != null) {
|
|
|
|
|
+ info.expression(PredicateUtils.lte("date", new Date(filter.getEndDate()), false));
|
|
|
}
|
|
}
|
|
|
SimpleExpression amount = new SimpleExpression("amount", Constant.YES, CriterionExpression.Operator.GT);
|
|
SimpleExpression amount = new SimpleExpression("amount", Constant.YES, CriterionExpression.Operator.GT);
|
|
|
SimpleExpression[] simpleExpressions = new SimpleExpression[]{amount};
|
|
SimpleExpression[] simpleExpressions = new SimpleExpression[]{amount};
|