在线管理资源完成情况修改,添加日志

This commit is contained in:
zhaolongfei
2024-07-17 14:40:10 +08:00
parent 99df06481f
commit 588f527293
2 changed files with 18 additions and 3 deletions

View File

@@ -100,6 +100,21 @@ public class CourseContent extends BaseEntity {
this.contentType=contentType;
this.contentRefId=contentRefId;
}
@Override
public String toString() {
return "CourseContent{" +
"rid='" + rid + '\'' +
", typeId='" + typeId + '\'' +
", courseId='" + courseId + '\'' +
", csectionId='" + csectionId + '\'' +
", sortIndex=" + sortIndex +
", contentType=" + contentType +
", contentName='" + contentName + '\'' +
", contentRefId='" + contentRefId + '\'' +
", content='" + content + '\'' +
", duration=" + duration +
", status=" + status +
'}';
}
}

View File

@@ -79,8 +79,8 @@ public class StudySignupServiceImpl implements IStudySignupService{
signupDao.save(signup);
//添加到课程学习
LocalDateTime now=LocalDateTime.now();
String sql="SELECT c.id,c.content_name,c.course_id from boe_course_content c " +
"where c.course_id = '"+signup.getCourseId()+"'";
String sql="SELECT * from boe_course_content " +
"where course_id = '"+signup.getCourseId()+"'";
List<CourseContent> courseContents = contentDao.sqlFindList(sql);
StudyCourse sc=new StudyCourse();
StudyCourseItem scitem =new StudyCourseItem();