Commit 9aa404f65b1bfc225bc1749c63c093c2105cd8ee

Authored by liquanyu
1 parent f12918a9a2

update

Showing 1 changed file with 3 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PostReviewServiceImpl.java View file @ 9aa404f
... ... @@ -102,6 +102,9 @@
102 102 for (PostReviewModel model : grid) {
103 103 Map<String, Object> tempMap = new HashMap<>();
104 104 Patients p = mongoTemplate.findById(model.getParentId(), Patients.class);
  105 + if (p == null){
  106 + continue;
  107 + }
105 108 tempMap.put("id", model.getId());
106 109 tempMap.put("pid", p.getPid());
107 110 tempMap.put("patientId", p.getId());