mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 13:26:49 +08:00
fix: 【FCJDFDXTXS-35】修正培训时间查询
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
/**审核状态*/
|
/**审核状态*/
|
||||||
|
|||||||
Reference in New Issue
Block a user