Commit e20eff6e0245fca5e2700a5e3d0e87ecd3b270e4
1 parent
ae8e2494d1
Exists in
master
and in
6 other branches
隆化2022.1.4-1.儿保检查--儿保登记统计(列表和打印排序)
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHealthFacade.java
View file @
e20eff6
... | ... | @@ -212,7 +212,7 @@ |
212 | 212 | // ids.add(babyModel.getId()); |
213 | 213 | Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()); |
214 | 214 | // pageResult = findMongoPage(BabyCheckModel.class, new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), page, limit); |
215 | - List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyCheckModel.class); | |
215 | + List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.ASC, "created")), BabyCheckModel.class); | |
216 | 216 | |
217 | 217 | // List <BabyCheckModel> babyCheckModelList = (List <BabyCheckModel>) pageResult.getGrid(); |
218 | 218 | |
... | ... | @@ -1112,7 +1112,7 @@ |
1112 | 1112 | // @Override |
1113 | 1113 | // public Object call() throws Exception { |
1114 | 1114 | Criteria criteriaCheck = Criteria.where("buildId").in(babyModel.getId()); |
1115 | - List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyCheckModel.class); | |
1115 | + List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.ASC, "created")), BabyCheckModel.class); | |
1116 | 1116 | |
1117 | 1117 | List<Map<String, Object>> listAge = new ArrayList<>(); |
1118 | 1118 | for (BabyCheckModel babyCheckModel : babyCheckModelList) { |