Commit c927c1e235f7d706246cf77c639651eb3549f9dd

Authored by yangfei
1 parent b4ab74ecc1

bug修改

Showing 1 changed file with 4 additions and 1 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java View file @ c927c1e
1 1 package com.lyms.platform.biz.service;
2 2  
3   -import com.lyms.platform.biz.RemoteService;
4 3 import com.lyms.platform.biz.dal.*;
5 4 import com.lyms.platform.common.dao.operator.MongoQuery;
6 5 import com.lyms.platform.common.enums.SieveStatusEnums;
... ... @@ -330,6 +329,10 @@
330 329 List<TrackDownRecord> records = trackDownRecordService.queryTrackDown(downRecordQuery);
331 330 for (TrackDownRecord tr : records) {
332 331 Patients patients = iPatientDao.getPatient(tr.getParentId());
  332 + if(patients == null){
  333 + System.out.println("处理产筛追访数据,孕周大于20周自动进入产检追访:patient为空"+tr.getParentId());
  334 + continue;
  335 + }
333 336 int week = DateUtil.getWeek2(patients.getLastMenses(), new Date());
334 337 if (week > 20) {//不能做产前筛查追访,显示产前检查追访
335 338 if (tr.getTrackType()== TrackDownDateEnums.C.getId()) {