fix(export): 修复导出会话数据时日期范围查询问题
- 在结束日期后添加时间戳 23:59:59 以确保包含完整当天数据 - 解决了日期范围查询可能遗漏最后时刻记录的问题 - 统一了两处相同逻辑的日期处理方式
This commit is contained in:
+2
-2
@@ -165,7 +165,7 @@ public class AsyncExportService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ObjectUtils.isNotEmpty(dto.getStartDate()) && ObjectUtils.isNotEmpty(dto.getEndDate())) {
|
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())) {
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 人员筛选
|
// 人员筛选
|
||||||
|
|||||||
Reference in New Issue
Block a user