From 786b053703ae96ceb48eea74b52c015d299c563c Mon Sep 17 00:00:00 2001 From: hejiayang <296714699@qq.com> Date: Fri, 27 Mar 2026 16:42:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(export):=20=E4=BF=AE=E5=A4=8D=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BC=9A=E8=AF=9D=E6=95=B0=E6=8D=AE=E6=97=B6=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E8=8C=83=E5=9B=B4=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在结束日期后添加时间戳 23:59:59 以确保包含完整当天数据 - 解决了日期范围查询可能遗漏最后时刻记录的问题 - 统一了两处相同逻辑的日期处理方式 --- .../com/renkang/consultation/async/AsyncExportService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health-consultation/health-consultation-biz/src/main/java/com/renkang/consultation/async/AsyncExportService.java b/health-consultation/health-consultation-biz/src/main/java/com/renkang/consultation/async/AsyncExportService.java index 29e8a62..b7f15c1 100644 --- a/health-consultation/health-consultation-biz/src/main/java/com/renkang/consultation/async/AsyncExportService.java +++ b/health-consultation/health-consultation-biz/src/main/java/com/renkang/consultation/async/AsyncExportService.java @@ -165,7 +165,7 @@ public class AsyncExportService { } if (ObjectUtils.isNotEmpty(dto.getStartDate()) && ObjectUtils.isNotEmpty(dto.getEndDate())) { - sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate()); + sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate() + " 23:59:59"); } //医院筛选 @@ -395,7 +395,7 @@ public class AsyncExportService { } if (ObjectUtils.isNotEmpty(dto.getStartDate()) && ObjectUtils.isNotEmpty(dto.getEndDate())) { - sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate()); + sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate() + " 23:59:59"); } // 人员筛选