|
|
|
@ -205,111 +205,6 @@ queryAllAuthCourseInfoByCondition
|
|
|
|
|
) tt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryAllAuthCourseInfoAndOpenCourse
|
|
|
|
|
===
|
|
|
|
|
* 查询所有授权的课程和本校自己上传的课程
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
*
|
|
|
|
|
@}
|
|
|
|
|
from
|
|
|
|
|
((
|
|
|
|
|
select
|
|
|
|
|
1 `universities_colleges_jurisdiction_curriculum_resources_id`,
|
|
|
|
|
2 `type`,
|
|
|
|
|
t.use_type,
|
|
|
|
|
t.use_start_time,
|
|
|
|
|
t.use_end_time,
|
|
|
|
|
ta.`course_info_id`,
|
|
|
|
|
ta.course_info_name,
|
|
|
|
|
tc.course_label_type,
|
|
|
|
|
tc.course_label_name,
|
|
|
|
|
ta.`add_time`
|
|
|
|
|
from course_info ta
|
|
|
|
|
left join course_label tc on tc.course_label_id = ta.course_label_id
|
|
|
|
|
join universities_colleges_jurisdiction_curriculum_resources t on ta.course_info_id = t.course_info_id
|
|
|
|
|
left join universities_colleges tb on tb.universities_colleges_id = t.universities_colleges_id
|
|
|
|
|
where 1 = 1
|
|
|
|
|
and tb.universities_colleges_status = 1
|
|
|
|
|
and tc.course_label_status = 1
|
|
|
|
|
AND ta.course_info_status = 1
|
|
|
|
|
AND ta.course_info_type = 1
|
|
|
|
|
AND tc.course_label_type = '理论课程类'
|
|
|
|
|
@if(!isEmpty(universitiesCollegesJurisdictionCurriculumResourcesId)){
|
|
|
|
|
and t.universities_colleges_jurisdiction_curriculum_resources_id =#universitiesCollegesJurisdictionCurriculumResourcesId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(universitiesCollegesId)){
|
|
|
|
|
and t.universities_colleges_id =#universitiesCollegesId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(type)){
|
|
|
|
|
and t.type =#type#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(useTypePlural)){
|
|
|
|
|
and find_in_set(t.use_type, #useTypePlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoName)){
|
|
|
|
|
and ta.course_info_name like #'%'+courseInfoName+'%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(typeId)){
|
|
|
|
|
and t.type_id =#typeId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(useType)){
|
|
|
|
|
and t.use_type =#useType#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(useStartTime)){
|
|
|
|
|
and t.use_start_time =#useStartTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(useEndTime)){
|
|
|
|
|
and t.use_end_time =#useEndTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(secondLevelName)){
|
|
|
|
|
and t.second_level_name =#secondLevelName#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(secondLevelLogo)){
|
|
|
|
|
and t.second_level_logo =#secondLevelLogo#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(addTime)){
|
|
|
|
|
and t.add_time =#addTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(universitiesCollegesJurisdictionExperimentalSystemId)){
|
|
|
|
|
and t.universities_colleges_jurisdiction_experimental_system_id =#universitiesCollegesJurisdictionExperimentalSystemId#
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
UNION ALL
|
|
|
|
|
(
|
|
|
|
|
SELECT
|
|
|
|
|
1 `universities_colleges_jurisdiction_curriculum_resources_id`,
|
|
|
|
|
1 `type`,
|
|
|
|
|
3 `use_type`,
|
|
|
|
|
null `use_start_time`,
|
|
|
|
|
null `use_end_time`,
|
|
|
|
|
a.teacher_open_course_id `course_info_id`,
|
|
|
|
|
a.teacher_open_course_title `course_info_name`,
|
|
|
|
|
'院校' `course_label_type`,
|
|
|
|
|
'开课类' `course_label_name`,
|
|
|
|
|
a.create_time `add_time`
|
|
|
|
|
FROM teacher_open_course a
|
|
|
|
|
LEFT JOIN teacher_open_course_merge_teacher tocmt on a.teacher_open_course_id = tocmt.teacher_open_course_id
|
|
|
|
|
LEFT JOIN teacher t on t.teacher_id = tocmt.teacher_id
|
|
|
|
|
WHERE 1 = 1
|
|
|
|
|
AND a.teacher_open_course_status = 1
|
|
|
|
|
AND tocmt.teacher_open_course_merge_teacher_status=1
|
|
|
|
|
AND t.teacher_status=1
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
AND a.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
) tt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteUniversitiesCollegesJurisdictionCurriculumResourcesByIds
|
|
|
|
|