Commit 2635fc63ae01ad8b60c6efc5371d948df77913db
1 parent
1c1a47e256
Exists in
dev
小程序调用-产后康复
Showing 1 changed file with 22 additions and 22 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java
View file @
2635fc6
| ... | ... | @@ -70,38 +70,38 @@ |
| 70 | 70 | MaternalDeliverModel model = queryList.get(0); |
| 71 | 71 | baseObjectResponse =viewFacade.findMatDeliverData(model.getId()); |
| 72 | 72 | if(baseObjectResponse.getData() !=null){ |
| 73 | + Map<String,Object> data = (Map<String, Object>) baseObjectResponse.getData(); | |
| 73 | 74 | // 查体重表 给营养报告用 |
| 74 | 75 | List<PatientWeight> patientWeights = patientWeightService2.queryPatientWeight(Query.query(Criteria.where("patientId").is(patients.getId()))); |
| 75 | 76 | if(CollectionUtils.isNotEmpty(patientWeights)){ |
| 76 | 77 | PatientWeight patientWeight= patientWeights.get(0); |
| 77 | - Map<String,Object> data = (Map<String, Object>) baseObjectResponse.getData(); | |
| 78 | 78 | data.put("patientWeight",patientWeight); |
| 79 | - MedicalRecordVo medicalRecordVo = new MedicalRecordVo(); | |
| 80 | - medicalRecordVo.setCardNo(patients.getCardNo()); | |
| 81 | - // 诊断手术赋值 | |
| 82 | - List<MedicalRecordVo> list = appointmentService.queryList(medicalRecordVo); | |
| 83 | - if(CollectionUtils.isNotEmpty(list)){ | |
| 84 | - MedicalRecordVo medicalRecordVo1 = list.get(0); | |
| 85 | - data.put("diagnosis",medicalRecordVo1.getDiagnosis()); | |
| 86 | - data.put("operation",medicalRecordVo1.getOperation()); | |
| 87 | - } | |
| 79 | + } | |
| 88 | 80 | |
| 89 | - // 查询服务是否开通 | |
| 90 | - List<PatientService> patientServices = patientServiceService.getServiceListByParentId(patients.getId(),3); | |
| 91 | - if(CollectionUtils.isNotEmpty(patientServices)){ | |
| 92 | - for (PatientService patientService : patientServices) { | |
| 93 | - // 产后康复服务对应码值 | |
| 94 | - if(patientService.getSerType()==20){ | |
| 95 | - data.put("serStatus","1"); | |
| 96 | - } | |
| 97 | - } | |
| 81 | + MedicalRecordVo medicalRecordVo = new MedicalRecordVo(); | |
| 82 | + medicalRecordVo.setCardNo(patients.getCardNo()); | |
| 83 | + // 诊断手术赋值 | |
| 84 | + List<MedicalRecordVo> list = appointmentService.queryList(medicalRecordVo); | |
| 85 | + if(CollectionUtils.isNotEmpty(list)){ | |
| 86 | + MedicalRecordVo medicalRecordVo1 = list.get(0); | |
| 87 | + data.put("diagnosis",medicalRecordVo1.getDiagnosis()); | |
| 88 | + data.put("operation",medicalRecordVo1.getOperation()); | |
| 89 | + } | |
| 98 | 90 | |
| 91 | + // 查询服务是否开通 | |
| 92 | + List<PatientService> patientServices = patientServiceService.getServiceListByParentId(patients.getId(),3); | |
| 93 | + if(CollectionUtils.isNotEmpty(patientServices)){ | |
| 94 | + for (PatientService patientService : patientServices) { | |
| 95 | + // 产后康复服务对应码值 | |
| 96 | + if(patientService.getSerType()==20){ | |
| 97 | + data.put("serStatus","1"); | |
| 98 | + } | |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 102 | - baseObjectResponse.setErrormsg("成功"); | |
| 103 | - baseObjectResponse.setData(data); | |
| 104 | 101 | } |
| 102 | + baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 103 | + baseObjectResponse.setErrormsg("成功"); | |
| 104 | + baseObjectResponse.setData(data); | |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | return baseObjectResponse; |