From c927c1e235f7d706246cf77c639651eb3549f9dd Mon Sep 17 00:00:00 2001 From: yangfei Date: Wed, 4 Apr 2018 11:27:57 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/biz/service/PatientsService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java index da80680..78decf3 100644 --- a/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java +++ b/platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java @@ -1,6 +1,5 @@ package com.lyms.platform.biz.service; -import com.lyms.platform.biz.RemoteService; import com.lyms.platform.biz.dal.*; import com.lyms.platform.common.dao.operator.MongoQuery; import com.lyms.platform.common.enums.SieveStatusEnums; @@ -330,6 +329,10 @@ public class PatientsService { List records = trackDownRecordService.queryTrackDown(downRecordQuery); for (TrackDownRecord tr : records) { Patients patients = iPatientDao.getPatient(tr.getParentId()); + if(patients == null){ + System.out.println("处理产筛追访数据,孕周大于20周自动进入产检追访:patient为空"+tr.getParentId()); + continue; + } int week = DateUtil.getWeek2(patients.getLastMenses(), new Date()); if (week > 20) {//不能做产前筛查追访,显示产前检查追访 if (tr.getTrackType()== TrackDownDateEnums.C.getId()) { -- 1.8.3.1