调试修复课程状态

This commit is contained in:
670788339
2024-04-24 18:49:52 +08:00
parent 47f624c88e
commit b1deabe7be

View File

@@ -15,7 +15,8 @@ public class CourseContentDao extends BaseDao<CourseContent> {
}
public int getCount(String courseId) {
String hql="SELECT count(*) from boe_base.boe_course_content c left join boe_base.boe_course_section s on c.csection_id = s.id where c.course_id = ?1 and c.deleted =0 and s.id is not null";
// String hql="SELECT count(*) from boe_course_content c left join boe_base.boe_course_section s on c.csection_id = s.id where c.course_id = ?1 and c.deleted =0 and s.id is not null";
String hql="SELECT count(*) from CourseContent c left join CourseSection s on c.csectionId = s.id where c.courseId = ?1 and c.deleted =0 and s.id is not null";
int count=count(hql, courseId);
return count;
}