|
|
|
@ -2,109 +2,109 @@ queryByCondition
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
@}
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
and #function("applicationMergeTeacherOpenCourse.query")#
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationId)){
|
|
|
|
|
and t.application_id =#applicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationIdPlural)){
|
|
|
|
|
and find_in_set(t.application_id,#applicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseId)){
|
|
|
|
|
and t.open_course_id =#openCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.open_course_id,#openCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
@}
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
and #function("applicationMergeTeacherOpenCourse.query")#
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationId)){
|
|
|
|
|
and t.resources_application_id =#resourcesApplicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationIdPlural)){
|
|
|
|
|
and find_in_set(t.resources_application_id,#resourcesApplicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
and t.application_merge_teacher_open_course_add_time =#applicationMergeTeacherOpenCourseAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
@}
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationId)){
|
|
|
|
|
and t.application_id =#applicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationIdPlural)){
|
|
|
|
|
and find_in_set(t.application_id,#applicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseId)){
|
|
|
|
|
and t.open_course_id =#openCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.open_course_id,#openCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
@}
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationId)){
|
|
|
|
|
and t.resources_application_id =#resourcesApplicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationIdPlural)){
|
|
|
|
|
and find_in_set(t.resources_application_id,#resourcesApplicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
and t.application_merge_teacher_open_course_add_time =#applicationMergeTeacherOpenCourseAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteApplicationMergeTeacherOpenCourseByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
|
|
|
|
delete from application_merge_teacher_open_course where find_in_set(application_merge_teacher_open_course_id,#ids#)
|
|
|
|
|
|
|
|
|
|
delete from application_merge_teacher_open_course where find_in_set(application_merge_teacher_open_course_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
select * from application_merge_teacher_open_course where find_in_set(application_merge_teacher_open_course_id,#ids#)
|
|
|
|
|
select * from application_merge_teacher_open_course where find_in_set(application_merge_teacher_open_course_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateGivenByIds
|
|
|
|
@ -112,117 +112,160 @@ updateGivenByIds
|
|
|
|
|
|
|
|
|
|
* 批量更新指定字段,无论此字段是否有值
|
|
|
|
|
|
|
|
|
|
update application_merge_teacher_open_course
|
|
|
|
|
set
|
|
|
|
|
@if(contain("applicationId",_given)){
|
|
|
|
|
@if(isEmpty(applicationId)){
|
|
|
|
|
application_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
application_id = #applicationId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("openCourseId",_given)){
|
|
|
|
|
@if(isEmpty(openCourseId)){
|
|
|
|
|
open_course_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_id = #openCourseId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("orgId",_given)){
|
|
|
|
|
@if(isEmpty(orgId)){
|
|
|
|
|
org_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
org_id = #orgId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("userId",_given)){
|
|
|
|
|
@if(isEmpty(userId)){
|
|
|
|
|
user_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
user_id = #userId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("createTime",_given)){
|
|
|
|
|
@if(isEmpty(createTime)){
|
|
|
|
|
create_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
create_time = #createTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
application_merge_teacher_open_course_id = application_merge_teacher_open_course_id
|
|
|
|
|
where find_in_set(application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update application_merge_teacher_open_course
|
|
|
|
|
set
|
|
|
|
|
@if(contain("resourcesApplicationId",_given)){
|
|
|
|
|
@if(isEmpty(resourcesApplicationId)){
|
|
|
|
|
resources_application_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
resources_application_id = #resourcesApplicationId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseId",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseId)){
|
|
|
|
|
teacher_open_course_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_id = #teacherOpenCourseId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("applicationMergeTeacherOpenCourseAddTime",_given)){
|
|
|
|
|
@if(isEmpty(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
application_merge_teacher_open_course_add_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
application_merge_teacher_open_course_add_time = #applicationMergeTeacherOpenCourseAddTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("orgId",_given)){
|
|
|
|
|
@if(isEmpty(orgId)){
|
|
|
|
|
org_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
org_id = #orgId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("userId",_given)){
|
|
|
|
|
@if(isEmpty(userId)){
|
|
|
|
|
user_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
user_id = #userId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
application_merge_teacher_open_course_id = application_merge_teacher_open_course_id
|
|
|
|
|
where find_in_set(application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getApplicationMergeTeacherOpenCourseValues
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationId)){
|
|
|
|
|
and t.application_id =#applicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseId)){
|
|
|
|
|
and t.open_course_id =#openCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationId)){
|
|
|
|
|
and t.resources_application_id =#resourcesApplicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
and t.application_merge_teacher_open_course_add_time =#applicationMergeTeacherOpenCourseAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1 and #function("applicationMergeTeacherOpenCourse.query")#
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationId)){
|
|
|
|
|
and t.application_id =#applicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationIdPlural)){
|
|
|
|
|
and find_in_set(t.application_id,#applicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseId)){
|
|
|
|
|
and t.open_course_id =#openCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.open_course_id,#openCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1 and #function("applicationMergeTeacherOpenCourse.query")#
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationId)){
|
|
|
|
|
and t.resources_application_id =#resourcesApplicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationIdPlural)){
|
|
|
|
|
and find_in_set(t.resources_application_id,#resourcesApplicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
and t.application_merge_teacher_open_course_add_time =#applicationMergeTeacherOpenCourseAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from application_merge_teacher_open_course t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseId)){
|
|
|
|
|
and t.application_merge_teacher_open_course_id =#applicationMergeTeacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(applicationMergeTeacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.application_merge_teacher_open_course_id,#applicationMergeTeacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationId)){
|
|
|
|
|
and t.resources_application_id =#resourcesApplicationId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesApplicationIdPlural)){
|
|
|
|
|
and find_in_set(t.resources_application_id,#resourcesApplicationIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@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(applicationMergeTeacherOpenCourseAddTime)){
|
|
|
|
|
and t.application_merge_teacher_open_course_add_time =#applicationMergeTeacherOpenCourseAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|