diff --git a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudySignupServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudySignupServiceImpl.java index 69dc44a8..38852b1e 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudySignupServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudySignupServiceImpl.java @@ -97,12 +97,13 @@ public class StudySignupServiceImpl implements IStudySignupService{ sc.setStatusTime(now); sc.setLastTime(sc.getAddTime()); sc.setTotalDuration(0); - List courseContents = contentDao.sqlFindList(sql); - if (courseContents.size() > 0) { + List courseContents = contentDao.findListByHql(sql); + if (!courseContents.isEmpty()) { log.info("查看在线课集合内容数据(共 {} 条记录)", courseContents.size()); for (CourseContent c : courseContents) { + log.info("查看在线课内容数据: {}", c.toString()); + // 使用toString()或自定义格式化字符串 StudyCourseItem scitem = new StudyCourseItem(); - log.info("查看在线课内容数据: {}", c.toString()); // 使用toString()或自定义格式化字符串 // 设置scitem的属性 scitem.setAname(signup.getName()); scitem.setAid(signup.getAid());