From 09ab2a15c55bf8374acc990d273c2ca639a92f22 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Tue, 25 Oct 2016 15:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=A7=E6=9C=BA=E5=8F=B7=20=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/worker/QuanChanPatientWorker.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 e260a09..f8b8ec0 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 @@ -110,14 +110,12 @@ public class QuanChanPatientWorker implements Callable> { withList = postReviewService.findWithList(postReviewQuery.convertToQuery().addOrder(Sort.Direction.DESC, "created")); if (CollectionUtils.isNotEmpty(withList)) { - chanResult.setcHTimes(withList.size()); - if(null==patients.getPostViewTimes()){ - Patients patients1=new Patients(); - patients1.setPostViewTimes(withList.size()); - patients1.setId(patients.getId()); - patientsService.updatePatient(patients1); + //本院产后复查次数不为空 + if(null!=patients.getPostViewTimes()){ + chanResult.setcHTimes(patients.getPostViewTimes()); + }else{ + chanResult.setcHTimes(withList.size()); } - if (StringUtils.isNotEmpty(withList.get(0).getProdDoctor())) { Users users = usersService.getUsers(NumberUtils.toInt(withList.get(0).getProdDoctor())); if (null != users) { -- 1.8.3.1