From cfa3f00c17b6601c4f2816dd9ba2e5b437f4b4cd Mon Sep 17 00:00:00 2001 From: haorp <754760654@qq.com> Date: Fri, 6 Jun 2025 17:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=B0=83=E7=94=A8-?= =?UTF-8?q?=E4=BA=A7=E5=90=8E=E5=BA=B7=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/matnRehabPC/service/impl/MatnRehabServiceImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java index d636ee7..c13052a 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/matnRehabPC/service/impl/MatnRehabServiceImpl.java @@ -87,12 +87,14 @@ public class MatnRehabServiceImpl implements MatnRehabService { } // 查询服务是否开通 - List patientServices = patientServiceService.getServiceListByParentId(patients.getId(),6); + List patientServices = patientServiceService.getServiceListByParentId(patients.getId(),1); if(CollectionUtils.isNotEmpty(patientServices)){ - Date date = new Date(); - if(date.compareTo(patientServices.get(0).getSerEndTime())>0){ - data.put("serStatus","1"); + for (PatientService patientService : patientServices) { + if(patientService.getSerType()==6){ + data.put("serStatus","1"); + } } + } baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); -- 1.8.3.1