mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
fix: 课程列表接口纠错
This commit is contained in:
@@ -199,6 +199,11 @@ public class CourseDao extends BaseDao<Course> {
|
||||
vo.setIsTop((Boolean) row[22]);
|
||||
vo.setTeacherName((String) row[23]);
|
||||
vo.setSortWeight((Integer) row[24]);
|
||||
// 增加对Timestamp和LocalDateTime的兼容性,防止Timestamp为null的情况
|
||||
Timestamp sysUpdateTimestamp = (Timestamp) row[25];
|
||||
if (sysUpdateTimestamp != null) {
|
||||
vo.setSysUpdateTime(sysUpdateTimestamp.toLocalDateTime());
|
||||
}
|
||||
coursePageVos.add(vo);
|
||||
}
|
||||
return coursePageVos;
|
||||
|
||||
Reference in New Issue
Block a user