|
|
|
@ -19,10 +19,15 @@ queryByCondition
|
|
|
|
|
and t.resources_info_id =#resourcesInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIds)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIds#)
|
|
|
|
|
and a.course_info_full_id regexp #courseInfoIds#
|
|
|
|
|
@// 未授权任何应用的话,这里直接返回空数据
|
|
|
|
|
@if(courseInfoIds == '未授权应用'){
|
|
|
|
|
and false
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
and a.course_info_full_id regexp #courseInfoId#
|
|
|
|
|
@//and t.course_info_id =#courseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesInfoName)){
|
|
|
|
|
and t.resources_info_name like #'%'+resourcesInfoName+'%'#
|
|
|
|
@ -40,7 +45,7 @@ queryByCondition
|
|
|
|
|
and (find_in_set(ifnull(t.org_id, 1), #orgIdPlural#))
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoFullId)){
|
|
|
|
|
and a.course_info_full_id like #courseInfoFullId+"%"#
|
|
|
|
|
and a.course_info_full_id like #'%\\_'+courseInfoFullId+'\\_%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(addType)){
|
|
|
|
|
and t.add_type =#addType#
|
|
|
|
@ -51,12 +56,14 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(seeSelf) && seeSelf && !isEmpty(userId)){
|
|
|
|
|
and (t.add_type = 'ADMIN_ADD' or t.user_id = #userId#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId_1)){
|
|
|
|
|
and a.course_info_full_id like #courseInfoId_1 + '%'#
|
|
|
|
|
@} else if(!isEmpty(courseInfoId_2)){
|
|
|
|
|
and a.course_info_full_id like #courseInfoId_1 + '_' + courseInfoId_2 + '%'#
|
|
|
|
|
@} else if(!isEmpty(courseInfoId_3)){
|
|
|
|
|
and a.course_info_full_id like #courseInfoId_1 + '_' + courseInfoId_2 + '_' + courseInfoId_3 + '%'#
|
|
|
|
|
@if(!isEmpty(courseInfoId_0)){
|
|
|
|
|
and a.course_info_full_id like #'%\\_'+courseInfoId_0+'\\_%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId_2)){
|
|
|
|
|
and a.course_info_full_id like #'%\\_'+courseInfoId_2+'\\_%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId_3)){
|
|
|
|
|
and a.course_info_full_id like #'%\\_'+courseInfoId_3+'\\_%'#
|
|
|
|
|
@}
|
|
|
|
|
ORDER BY t.resources_info_id DESC
|
|
|
|
|
|
|
|
|
|