From 097a6749cacc4e9bede6fe428a0d1b91ab52708b Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Mon, 9 Jan 2017 17:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=A8=A9=E4=BD=9C=E5=BA=9F=E4=BA=A7?= =?UTF-8?q?=E6=A3=80=E5=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/worker/QuanChanPatientWorker.java | 13 ++++++------- 1 file changed, 6 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 b5f60c7..b669cd7 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 @@ -121,7 +121,12 @@ public class QuanChanPatientWorker implements Callable> { postReviewQuery.setYn(YnEnums.YES.getId()); stopWatch.start("query postreview list"); List withList = postReviewService.findWithList(postReviewQuery.convertToQuery().addOrder(Sort.Direction.DESC, "created")); - + if (StringUtils.isNotEmpty(patients.getLastCheckEmployeeId())) { + Users users = usersService.getUsers(NumberUtils.toInt(patients.getLastCheckEmployeeId())); + if (null != users) { + chanResult.setCheckDoctor(users.getName()); + } + } String nextCheckTime = ""; if (CollectionUtils.isNotEmpty(withList)) { chanResult.setcTimes(withList.size()); @@ -139,12 +144,6 @@ public class QuanChanPatientWorker implements Callable> { chanResult.setcHTimes(withList.size()); } } - if (StringUtils.isNotEmpty(patients.getLastCheckEmployeeId())) { - Users users = usersService.getUsers(NumberUtils.toInt(patients.getLastCheckEmployeeId())); - if (null != users) { - chanResult.setCheckDoctor(users.getName()); - } - } }else{ if(null==patients.getPostViewTimes()){ Patients patients1=new Patients(); -- 1.8.3.1