fix: 【FCJDFDXTXS-35】修正培训时间查询

This commit is contained in:
liu.zixi
2025-12-11 14:00:10 +08:00
parent 63bcd9d11e
commit edd6540a76
2 changed files with 4 additions and 4 deletions

View File

@@ -420,8 +420,8 @@ public class CourseDao extends BaseDao<Course> {
query.setParameter("publish", queryDTO.getPublish()); query.setParameter("publish", queryDTO.getPublish());
} }
if (filterLearningTime) { if (filterLearningTime) {
query.setParameter("learningTimeStart", queryDTO.getLearningTimeStart()); query.setParameter("learningTimeStart", queryDTO.getLearningTimeStart().withHour(0).withMinute(0).withSecond(0));
query.setParameter("learningTimeEnd", queryDTO.getLearningTimeEnd()); query.setParameter("learningTimeEnd", queryDTO.getLearningTimeEnd().withHour(23).withMinute(59).withSecond(59));
} }
if (StringUtils.isNotBlank(queryDTO.getTeacherId())) { if (StringUtils.isNotBlank(queryDTO.getTeacherId())) {
String teacherIdStr = queryDTO.getTeacherId(); String teacherIdStr = queryDTO.getTeacherId();

View File

@@ -57,11 +57,11 @@ public class CoursePageQueryDTO {
private String learningTimeType; private String learningTimeType;
/**培训时间-左区间*/ /**培训时间-左区间*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private LocalDateTime learningTimeStart; private LocalDateTime learningTimeStart;
/**培训时间-右区间*/ /**培训时间-右区间*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private LocalDateTime learningTimeEnd; private LocalDateTime learningTimeEnd;
/**审核状态*/ /**审核状态*/