Commit e032a87705f37c8f0b769aeefab48def532133d4
1 parent
ec12e4471c
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 2 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
e032a87
... | ... | @@ -5537,16 +5537,14 @@ |
5537 | 5537 | |
5538 | 5538 | long count = mongoTemplate.count(query, AutoRiskRecord.class); |
5539 | 5539 | |
5540 | - | |
5541 | - baseQuery.mysqlBuild((int) count); | |
5542 | 5540 | baseQuery.setPage(antExManagerQueryRequest.getPage()); |
5543 | 5541 | baseQuery.setLimit(antExManagerQueryRequest.getLimit()); |
5544 | - | |
5542 | + baseQuery.mysqlBuild((int) count); | |
5543 | + System.out.println(baseQuery.getOffset()+" "+antExManagerQueryRequest.getLimit()); | |
5545 | 5544 | query.skip(baseQuery.getOffset()).limit(antExManagerQueryRequest.getLimit()); |
5546 | 5545 | |
5547 | 5546 | System.out.println(query.toString()); |
5548 | 5547 | List<AutoRiskRecord> models = mongoTemplate.find(query.with(new Sort(Sort.Direction.DESC, "created")), AutoRiskRecord.class); |
5549 | - System.out.println(models); | |
5550 | 5548 | if (CollectionUtils.isNotEmpty(models)) |
5551 | 5549 | { |
5552 | 5550 | for(AutoRiskRecord model : models) |