Commit cfa3f00c17b6601c4f2816dd9ba2e5b437f4b4cd
1 parent
05a15786d5
Exists in
dev
小程序调用-产后康复
Showing 1 changed file with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java
View file @
cfa3f00
| ... | ... | @@ -87,12 +87,14 @@ |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | // 查询服务是否开通 |
| 90 | - List<PatientService> patientServices = patientServiceService.getServiceListByParentId(patients.getId(),6); | |
| 90 | + List<PatientService> patientServices = patientServiceService.getServiceListByParentId(patients.getId(),1); | |
| 91 | 91 | if(CollectionUtils.isNotEmpty(patientServices)){ |
| 92 | - Date date = new Date(); | |
| 93 | - if(date.compareTo(patientServices.get(0).getSerEndTime())>0){ | |
| 94 | - data.put("serStatus","1"); | |
| 92 | + for (PatientService patientService : patientServices) { | |
| 93 | + if(patientService.getSerType()==6){ | |
| 94 | + data.put("serStatus","1"); | |
| 95 | + } | |
| 95 | 96 | } |
| 97 | + | |
| 96 | 98 | } |
| 97 | 99 | |
| 98 | 100 | baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |