Commit 3d0f7cf17dcb45747c559c6a3823ee58c8b85f2f

Authored by shiyang
1 parent 40e6813e79

update

Showing 1 changed file with 3 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHealthFacade.java View file @ 3d0f7cf
... ... @@ -1020,6 +1020,9 @@
1020 1020 Criteria criteriaCheck = Criteria.where("buildId").in(id);
1021 1021 criteriaCheck.and("tcType").is(monthAge);//查询的是检查套餐
1022 1022 List<BabyCheckModel> babyCheckModelList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyCheckModel.class);
  1023 + if(CollectionUtils.isEmpty(babyCheckModelList)){
  1024 + return RespBuilder.buildSuccess(null);
  1025 + }
1023 1026 List<BabyEyeCheck> babyEyeCheckList = mongoTemplate.find(new Query(criteriaCheck).with(new Sort(Sort.Direction.DESC, "created")), BabyEyeCheck.class);
1024 1027  
1025 1028 BabyModel babyModel=mongoTemplate.findOne(new Query( Criteria.where("_id").in(id)).with(new Sort(Sort.Direction.DESC, "created")), BabyModel.class);