From 4da002c729383747b8f62b6f589ed6d767a8a5ca Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Tue, 16 May 2017 19:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0soureceid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/worker/QuanChanPatientWorker.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java index 48303a5..58d0112 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java @@ -18,6 +18,7 @@ import com.lyms.platform.pojo.Patients; import com.lyms.platform.pojo.PostReviewModel; import com.lyms.platform.query.AntExQuery; import com.lyms.platform.query.MatDeliverQuery; +import com.lyms.platform.query.PatientsQuery; import com.lyms.platform.query.PostReviewQuery; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; @@ -121,6 +122,15 @@ public class QuanChanPatientWorker implements Callable> { //增加查询本次产程条数 postReviewQuery.setStart(patients.getFmDate()); + PatientsQuery patientsQuery=new PatientsQuery(); + patientsQuery.setYn(YnEnums.YES.getId()); + patientsQuery.setPid(patients.getPid()); + patientsQuery.setLastMensesStart(patients.getFmDate()); + List patientses =patientsService.queryPatient(patientsQuery); + if(CollectionUtils.isNotEmpty(patientses)){ + postReviewQuery.setEnd(patientses.get(0).getLastMenses()); + } + stopWatch.start("query postreview list"); List withList = postReviewService.findWithList(postReviewQuery.convertToQuery().addOrder(Sort.Direction.DESC, "created")); if (CollectionUtils.isNotEmpty(withList)) { -- 1.8.3.1