Commit 09ab2a15c55bf8374acc990d273c2ca639a92f22
1 parent
7b91847803
Exists in
master
and in
8 other branches
座机号 替换的问题
Showing 1 changed file with 5 additions and 7 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java
View file @
09ab2a1
... | ... | @@ -110,14 +110,12 @@ |
110 | 110 | |
111 | 111 | withList = postReviewService.findWithList(postReviewQuery.convertToQuery().addOrder(Sort.Direction.DESC, "created")); |
112 | 112 | if (CollectionUtils.isNotEmpty(withList)) { |
113 | - chanResult.setcHTimes(withList.size()); | |
114 | - if(null==patients.getPostViewTimes()){ | |
115 | - Patients patients1=new Patients(); | |
116 | - patients1.setPostViewTimes(withList.size()); | |
117 | - patients1.setId(patients.getId()); | |
118 | - patientsService.updatePatient(patients1); | |
113 | + //本院产后复查次数不为空 | |
114 | + if(null!=patients.getPostViewTimes()){ | |
115 | + chanResult.setcHTimes(patients.getPostViewTimes()); | |
116 | + }else{ | |
117 | + chanResult.setcHTimes(withList.size()); | |
119 | 118 | } |
120 | - | |
121 | 119 | if (StringUtils.isNotEmpty(withList.get(0).getProdDoctor())) { |
122 | 120 | Users users = usersService.getUsers(NumberUtils.toInt(withList.get(0).getProdDoctor())); |
123 | 121 | if (null != users) { |