Compare commits

2 Commits
Author SHA1 Message Date
hejiayang 0fed763499 fix(mapper): 修复资源查询中的字段名大小写问题
- 修正 ConResourceMapper.xml 中 level 字段的大小写为 LEVEL
- 确保数据库查询条件匹配正确的字段名称
2026-03-27 17:14:11 +08:00
hejiayang 786b053703 fix(export): 修复导出会话数据时日期范围查询问题
- 在结束日期后添加时间戳 23:59:59 以确保包含完整当天数据
- 解决了日期范围查询可能遗漏最后时刻记录的问题
- 统一了两处相同逻辑的日期处理方式
2026-03-27 16:42:58 +08:00
2 changed files with 3 additions and 3 deletions
@@ -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");
}
// 人员筛选
@@ -21,7 +21,7 @@
AND cr.address LIKE CONCAT('%', #{conResource.province}, '%')
</if>
<if test="conResource.level != null and conResource.level != ''">
AND cr."level" = #{conResource.level}
AND cr."LEVEL" = #{conResource.level}
</if>
<if test="conResource.status != null and conResource.status != ''">
AND cr.status = #{conResource.status}