Commit 2cbbf515fcef23f7dfde67c1008a20fcb6954755
1 parent
4bfb221b62
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 7 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java
View file @
2cbbf51
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/AntExRecordWorker.java
View file @
2cbbf51
| ... | ... | @@ -129,7 +129,13 @@ |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | AntExRecordQuery antExRecordQuery1 = new AntExRecordQuery(); |
| 132 | + if(StringUtils.isEmpty(e.getParentId())){ | |
| 133 | + continue; | |
| 134 | + } | |
| 132 | 135 | Patients patients = patientsService.findOnePatientById(e.getParentId()); |
| 136 | + if(patients == null || patients.getLastMenses() == null){ | |
| 137 | + continue; | |
| 138 | + } | |
| 133 | 139 | antExRecordQuery1.setCheckTimeStart(patients.getLastMenses()); |
| 134 | 140 | antExRecordQuery1.setCheckTimeEnd(e.getCheckTime()); |
| 135 | 141 | antExRecordQuery1.setPid(e.getPid()); |