Commit c4a64e8f3c0c695b393fdc8b11b80448477c652f
1 parent
f81eae2ed6
Exists in
master
and in
6 other branches
全部孕妇管理增加按照排序
Showing 1 changed file with 4 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/TempFacade.java
View file @
c4a64e8
| ... | ... | @@ -72,8 +72,11 @@ |
| 72 | 72 | addRequest.setParentId(parentId); |
| 73 | 73 | TempQuery tempQuery = new TempQuery(); |
| 74 | 74 | tempQuery.setYn(YnEnums.YES.getId()); |
| 75 | - tempQuery.setParentId(addRequest.getParentId()); | |
| 76 | 75 | |
| 76 | + Patients patients = patientsService.findOnePatientById(parentId); | |
| 77 | + List<String> list1 =new ArrayList<String>(); | |
| 78 | + list1.add(patients.getPid()); | |
| 79 | + tempQuery.setpIds(list1); | |
| 77 | 80 | ArrayList list = new ArrayList(); |
| 78 | 81 | list.add(hospital); |
| 79 | 82 | tempQuery.setHospitalList(list); |
| ... | ... | @@ -251,7 +254,6 @@ |
| 251 | 254 | tempModel.setCreated(date); |
| 252 | 255 | tempModel.setCreatedTime(DateUtil.getyyyy_MM_dd(date)); |
| 253 | 256 | |
| 254 | - tempModel.setCreated(new Date()); | |
| 255 | 257 | tempModel.setModified(new Date()); |
| 256 | 258 | mongoTemplate.save(tempModel); |
| 257 | 259 | // tempService.addOneTemp(tempModel); |