From b046c310b31d0cab858622fe85f4fdd9e5c5b683 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Tue, 28 May 2024 17:01:44 +0800 Subject: [PATCH] =?UTF-8?q?#fix:=E4=BC=98=E5=8C=96=E5=BB=BA=E6=A1=A3?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=AE=A1=E7=90=86=E6=A0=B9=E6=8D=AE=E5=BB=BA?= =?UTF-8?q?=E6=A1=A3=E6=97=B6=E9=97=B4=E5=92=8C=E9=A2=84=E4=BA=A7=E6=9C=9F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/facade/PatientServiceFacade.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java index 44b19d2..17544a3 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java @@ -1553,16 +1553,18 @@ public class PatientServiceFacade { patientsQuery.setLimit(statisticsQueryRequest.getLimit()); if (StringUtils.isNotEmpty(statisticsQueryRequest.getDueDate())){ String time=statisticsQueryRequest.getDueDate(); - patientsQuery.setDueDateStart(DateUtil.parseYMDHMS(time+" 00:00:00")); - patientsQuery.setDueDateEnd(DateUtil.parseYMDHMS(time+" 23:59:59")); + String array[]= time.split(" - "); + patientsQuery.setDueDateStart(DateUtil.parseYMDHMS(array[0]+" 00:00:00")); + patientsQuery.setDueDateEnd(DateUtil.parseYMDHMS(array[1]+" 23:59:59")); } if (StringUtils.isNotEmpty(statisticsQueryRequest.getBookbuildingDoctor())){ patientsQuery.setBookbuildingDoctor(statisticsQueryRequest.getBookbuildingDoctor()); } if (StringUtils.isNotEmpty(statisticsQueryRequest.getBookbuildingDate())){ - String time=statisticsQueryRequest.getDueDate(); - patientsQuery.setBookbuildingDateStart(DateUtil.parseYMDHMS(time+" 00:00:00")); - patientsQuery.setBookbuildingDateEnd(DateUtil.parseYMDHMS(time+" 23:59:59")); + String time=statisticsQueryRequest.getBookbuildingDate(); + String array[]= time.split(" - "); + patientsQuery.setBookbuildingDateStart(DateUtil.parseYMDHMS(array[0]+" 00:00:00")); + patientsQuery.setBookbuildingDateEnd(DateUtil.parseYMDHMS(array[1]+" 23:59:59")); } List data = new ArrayList<>(); if (statisticsQueryRequest.getType()==0){ @@ -1771,4 +1773,5 @@ public class PatientServiceFacade { return baseResponse; } + } -- 1.8.3.1