mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
在线管理资源完成情况修改,添加日志,先暂时注释
This commit is contained in:
@@ -81,8 +81,6 @@ public class StudySignupServiceImpl implements IStudySignupService{
|
||||
signupDao.save(signup);
|
||||
//添加到课程学习
|
||||
LocalDateTime now=LocalDateTime.now();
|
||||
String sql="SELECT * from boe_course_content " +
|
||||
"where course_id = '?1'";
|
||||
StudyCourse sc=new StudyCourse();
|
||||
sc.setAddTime(now);
|
||||
sc.setAid(signup.getAid());
|
||||
@@ -102,8 +100,7 @@ public class StudySignupServiceImpl implements IStudySignupService{
|
||||
List<CourseContent> courseContents = contentDao.sqlFindList("SELECT * from boe_course_content where course_id = "+ signup.getCourseId());
|
||||
if (!courseContents.isEmpty()) {
|
||||
log.info("查看在线课集合内容数据(共 {} 条记录)", courseContents.toString());
|
||||
for (CourseContent c : courseContents) {
|
||||
log.info("查看在线课内容数据: {}", c);
|
||||
//log.info("查看在线课内容数据: {}", c);
|
||||
// 使用toString()或自定义格式化字符串
|
||||
StudyCourseItem scitem = new StudyCourseItem();
|
||||
// 设置scitem的属性
|
||||
@@ -114,14 +111,14 @@ public class StudySignupServiceImpl implements IStudySignupService{
|
||||
scitem.setScore(0f);
|
||||
scitem.setStudyId(sc.getId());
|
||||
scitem.setStatus(1);
|
||||
scitem.setContentId(c.getId());
|
||||
//scitem.setContentId(c.getId());
|
||||
// 如果需要,可以取消注释以下行来设置contentName
|
||||
// scitem.setContentName(c.getContentName());
|
||||
scItemDao.save(scitem);
|
||||
}
|
||||
} else {
|
||||
log.info("没有找到在线课内容数据。");
|
||||
}
|
||||
// } else {
|
||||
// log.info("没有找到在线课内容数据。");
|
||||
// }
|
||||
//scItemDao.save(scitem);
|
||||
studyCourseDao.save(sc);
|
||||
signup.setStudyId(sc.getId());
|
||||
|
||||
Reference in New Issue
Block a user