@ -108,6 +108,66 @@ queryByConditionQuery
@}
queryByChapterAndPracticalQuery
===
* 查询知识点章节和实训
select
@pageTag (){
t.*
@}
from teacher_open_course_knowledge_point t
@if (!isEmpty(bussinessId)){
LEFT JOIN teacher_open_course_knowledge_point_relation aa ON aa.teacher_open_course_knowledge_point_id = t.teacher_open_course_knowledge_point_id AND aa.bussiness_id = #bussinessId # AND aa.bussiness_type = 2
@}
where 1=1
@if (!isEmpty(teacherOpenCourseKnowledgePointId)){
and t.teacher_open_course_knowledge_point_id =#teacherOpenCourseKnowledgePointId#
@}
@if (!isEmpty(teacherOpenCourseKnowledgePointIdPlural)){
and find_in_set(t.teacher_open_course_knowledge_point_id,#teacherOpenCourseKnowledgePointIdPlural#)
@}
@if (!isEmpty(teacherOpenCourseId)){
and t.teacher_open_course_id =#teacherOpenCourseId#
@}
@if (!isEmpty(teacherOpenCourseIdPlural)){
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
@}
@if (!isEmpty(chapterId)){
and t.chapter_id =#chapterId#
@}
@if (!isEmpty(chapterIdPlural)){
and find_in_set(t.chapter_id,#chapterIdPlural#)
@}
@if (!isEmpty(knowledgePointTitle)){
and t.knowledge_point_title =#knowledgePointTitle#
@}
@if (!isEmpty(knowledgePointContent)){
and t.knowledge_point_content =#knowledgePointContent#
@}
@if (!isEmpty(createTime)){
and t.create_time =#createTime#
@}
@if (!isEmpty(orgId)){
and t.org_id =#orgId#
@}
@if (!isEmpty(orgIdPlural)){
and find_in_set(t.org_id,#orgIdPlural#)
@}
@if (!isEmpty(userId)){
and t.user_id =#userId#
@}
@if (!isEmpty(userIdPlural)){
and find_in_set(t.user_id,#userIdPlural#)
@}
@if (!isEmpty(delFlag)){
and t.del_flag =#delFlag#
@}
@if (!isEmpty(bussinessId)){
and aa.bussiness_id =#bussinessId#
@}
deleteTeacherOpenCourseKnowledgePointByIds