在线管理资源完成情况修改,添加日志,先暂时注释

This commit is contained in:
zhaolongfei
2024-07-17 16:56:15 +08:00
parent d60a1521f9
commit bed3bd7fae

View File

@@ -97,11 +97,12 @@ public class StudySignupServiceImpl implements IStudySignupService{
sc.setStatusTime(now); sc.setStatusTime(now);
sc.setLastTime(sc.getAddTime()); sc.setLastTime(sc.getAddTime());
sc.setTotalDuration(0); sc.setTotalDuration(0);
List<CourseContent> courseContents = contentDao.sqlFindList("SELECT * from boe_course_content where course_id = "+ signup.getCourseId()); // List<CourseContent> courseContents = contentDao.sqlFindList("SELECT * from boe_course_content where course_id = "+ signup.getCourseId());
if (!courseContents.isEmpty()) { // if (!courseContents.isEmpty()) {
log.info("查看在线课集合内容数据(共 {} 条记录)", courseContents.toString()); // log.info("查看在线课集合内容数据(共 {} 条记录)", courseContents.toString());
//log.info("查看在线课内容数据: {}", c); //log.info("查看在线课内容数据: {}", c);
// 使用toString()或自定义格式化字符串 // 使用toString()或自定义格式化字符串
log.info("查看在线课内容数据: {}", sc.getId());
StudyCourseItem scitem = new StudyCourseItem(); StudyCourseItem scitem = new StudyCourseItem();
// 设置scitem的属性 // 设置scitem的属性
scitem.setAname(signup.getName()); scitem.setAname(signup.getName());
@@ -115,7 +116,7 @@ public class StudySignupServiceImpl implements IStudySignupService{
// 如果需要可以取消注释以下行来设置contentName // 如果需要可以取消注释以下行来设置contentName
// scitem.setContentName(c.getContentName()); // scitem.setContentName(c.getContentName());
scItemDao.save(scitem); scItemDao.save(scitem);
} // }
// } else { // } else {
// log.info("没有找到在线课内容数据。"); // log.info("没有找到在线课内容数据。");
// } // }