mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
fix: 课程列表dao层报错修正
修复id数据类型的问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.xboe.module.course.dao;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
@@ -132,7 +133,8 @@ public class CourseDao extends BaseDao<Course> {
|
||||
List<CoursePageVo> coursePageVos = new ArrayList<>();
|
||||
for (Object[] row : resultList) {
|
||||
CoursePageVo vo = new CoursePageVo();
|
||||
vo.setId((String) row[0]);
|
||||
BigInteger id = (BigInteger) row[0];
|
||||
vo.setId(id.toString());
|
||||
vo.setName((String) row[1]);
|
||||
vo.setCoverImg((String) row[2]);
|
||||
vo.setSysType1((String) row[3]);
|
||||
|
||||
Reference in New Issue
Block a user