|
|
@ -25,7 +25,7 @@ public class WarningServiceImpl implements WarningService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Page<Warning> list(ConditionModel condition) throws Exception {
|
|
|
|
public Page<Warning> list(ConditionModel condition) throws Exception {
|
|
|
|
PageRequest request = PageRequest.of(condition.getPageNum(), condition.getPageSize());
|
|
|
|
PageRequest request = PageRequest.of(condition.getPageNum() - 1, condition.getPageSize());
|
|
|
|
Specification<Warning> specification = (root, query, builder) -> {
|
|
|
|
Specification<Warning> specification = (root, query, builder) -> {
|
|
|
|
Predicate predicate = builder.conjunction();
|
|
|
|
Predicate predicate = builder.conjunction();
|
|
|
|
if (condition.getDevId() != null) {
|
|
|
|
if (condition.getDevId() != null) {
|
|
|
|