Commit 4da002c729383747b8f62b6f589ed6d767a8a5ca
1 parent
22d3cbc48d
Exists in
master
and in
6 other branches
增加soureceid
Showing 1 changed file with 10 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanChanPatientWorker.java
View file @
4da002c
| ... | ... | @@ -18,6 +18,7 @@ |
| 18 | 18 | import com.lyms.platform.pojo.PostReviewModel; |
| 19 | 19 | import com.lyms.platform.query.AntExQuery; |
| 20 | 20 | import com.lyms.platform.query.MatDeliverQuery; |
| 21 | +import com.lyms.platform.query.PatientsQuery; | |
| 21 | 22 | import com.lyms.platform.query.PostReviewQuery; |
| 22 | 23 | import org.apache.commons.collections.CollectionUtils; |
| 23 | 24 | import org.apache.commons.lang.StringUtils; |
| ... | ... | @@ -120,6 +121,15 @@ |
| 120 | 121 | postReviewQuery.setYn(YnEnums.YES.getId()); |
| 121 | 122 | //增加查询本次产程条数 |
| 122 | 123 | postReviewQuery.setStart(patients.getFmDate()); |
| 124 | + | |
| 125 | + PatientsQuery patientsQuery=new PatientsQuery(); | |
| 126 | + patientsQuery.setYn(YnEnums.YES.getId()); | |
| 127 | + patientsQuery.setPid(patients.getPid()); | |
| 128 | + patientsQuery.setLastMensesStart(patients.getFmDate()); | |
| 129 | + List<Patients> patientses =patientsService.queryPatient(patientsQuery); | |
| 130 | + if(CollectionUtils.isNotEmpty(patientses)){ | |
| 131 | + postReviewQuery.setEnd(patientses.get(0).getLastMenses()); | |
| 132 | + } | |
| 123 | 133 | |
| 124 | 134 | stopWatch.start("query postreview list"); |
| 125 | 135 | List<PostReviewModel> withList = postReviewService.findWithList(postReviewQuery.convertToQuery().addOrder(Sort.Direction.DESC, "created")); |