Commit 5b5576cceddfa16cbb3eebcd2a8581c703412bc6
1 parent
fcf8882ca2
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
5b5576c
... | ... | @@ -5451,8 +5451,11 @@ |
5451 | 5451 | long count = mongoTemplate.count(query, AutoRiskRecord.class); |
5452 | 5452 | |
5453 | 5453 | BaseQuery baseQuery = new BaseQuery(); |
5454 | - baseQuery.mysqlBuild((int)count); | |
5455 | - query.skip(antExManagerQueryRequest.getPage()).limit(antExManagerQueryRequest.getLimit()); | |
5454 | + baseQuery.mysqlBuild((int) count); | |
5455 | + baseQuery.setPage(antExManagerQueryRequest.getPage()); | |
5456 | + baseQuery.setLimit(antExManagerQueryRequest.getLimit()); | |
5457 | + | |
5458 | + query.skip(baseQuery.getOffset()).limit(antExManagerQueryRequest.getLimit()); | |
5456 | 5459 | List riskList = new ArrayList(); |
5457 | 5460 | System.out.println(query.toString()); |
5458 | 5461 | List<AutoRiskRecord> models = mongoTemplate.find(query.with(new Sort(Sort.Direction.DESC, "created")), AutoRiskRecord.class); |