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