|
|
@ -29,7 +29,7 @@ queryByCondition
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -37,6 +37,12 @@ queryByCondition
|
|
|
|
@if(!isEmpty(resourcesInfoContent)){
|
|
|
|
@if(!isEmpty(resourcesInfoContent)){
|
|
|
|
and t.resources_info_content =#resourcesInfoContent#
|
|
|
|
and t.resources_info_content =#resourcesInfoContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(isEmpty(resourcesInfoStatus)){
|
|
|
|
|
|
|
|
@// 默认为空不查询删除状态的数据
|
|
|
|
|
|
|
|
and t.resources_info_status != 0
|
|
|
|
|
|
|
|
@} else {
|
|
|
|
|
|
|
|
and t.resources_info_status =#resourcesInfoStatus#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
@ -80,7 +86,7 @@ queryByConditionQuery
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -88,6 +94,12 @@ queryByConditionQuery
|
|
|
|
@if(!isEmpty(resourcesInfoContent)){
|
|
|
|
@if(!isEmpty(resourcesInfoContent)){
|
|
|
|
and t.resources_info_content =#resourcesInfoContent#
|
|
|
|
and t.resources_info_content =#resourcesInfoContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(isEmpty(resourcesInfoStatus)){
|
|
|
|
|
|
|
|
@// 默认为空不查询删除状态的数据
|
|
|
|
|
|
|
|
and t.resources_info_status != 0
|
|
|
|
|
|
|
|
@} else {
|
|
|
|
|
|
|
|
and t.resources_info_status =#resourcesInfoStatus#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
@ -111,7 +123,14 @@ deleteTeacherOpenCourseMergeResourcesInfoByIds
|
|
|
|
|
|
|
|
|
|
|
|
delete from teacher_open_course_merge_resources_info where find_in_set(teacher_open_course_merge_resources_info_id,#ids#)
|
|
|
|
delete from teacher_open_course_merge_resources_info where find_in_set(teacher_open_course_merge_resources_info_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logicDeleteTeacherOpenCourseMergeResourcesInfo
|
|
|
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 批量逻辑删除(0删除 1上架 2下架)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update teacher_open_course_merge_resources_info set resources_info_status = 0
|
|
|
|
|
|
|
|
where 1 = 1
|
|
|
|
|
|
|
|
and find_in_set(teacher_open_course_merge_resources_info_id,#ids#) and resources_info_status != 0
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
|
getByIds
|
|
|
|
===
|
|
|
|
===
|
|
|
@ -198,7 +217,7 @@ getTeacherOpenCourseMergeResourcesInfoValues
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -241,7 +260,7 @@ getValuesByQuery
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -290,7 +309,7 @@ getValuesByQueryNotWithPermission
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -348,7 +367,7 @@ getExcelValues
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
@ -398,7 +417,7 @@ getExcelValues
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
and t.resources_info_name =#resourcesInfoName#
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
@if(!isEmpty(resourcesInfoType)){
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|
and t.resources_info_type =#resourcesInfoType#
|
|
|
|