|
|
|
@ -5,6 +5,12 @@ queryByCondition
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogParentId)){
|
|
|
|
|
,(select count(1) from teacher_open_course_chat_log a
|
|
|
|
|
where a.teacher_open_course_chat_log_status = 1
|
|
|
|
|
and teacher_open_course_chat_log_parent_id = #teacherOpenCourseChatLogParentId#
|
|
|
|
|
) as comment_count
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
from teacher_open_course_chat_log t
|
|
|
|
|
where 1=1
|
|
|
|
@ -28,11 +34,8 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and t.school_class_ids =#schoolClassIds#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherId)){
|
|
|
|
|
and t.teacher_id =#teacherId#
|
|
|
|
@ -58,8 +61,17 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(delFlag)){
|
|
|
|
|
and t.del_flag =#delFlag#
|
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
|
@}else{
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
|
@}else if(!isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_chat_log_status,#teacherOpenCourseChatLogStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_chat_log_add_time =#teacherOpenCourseChatLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@ -73,8 +85,8 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(userIdPlural)){
|
|
|
|
|
and find_in_set(t.user_id,#userIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogParentId)){
|
|
|
|
|
order by create_time desc
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -106,11 +118,8 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and t.school_class_ids =#schoolClassIds#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherId)){
|
|
|
|
|
and t.teacher_id =#teacherId#
|
|
|
|
@ -136,8 +145,17 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(delFlag)){
|
|
|
|
|
and t.del_flag =#delFlag#
|
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
|
@}else{
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
|
@}else if(!isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_chat_log_status,#teacherOpenCourseChatLogStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_chat_log_add_time =#teacherOpenCourseChatLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@ -151,9 +169,6 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(userIdPlural)){
|
|
|
|
|
and find_in_set(t.user_id,#userIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +176,15 @@ queryByConditionQuery
|
|
|
|
|
deleteTeacherOpenCourseChatLogByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
* 批量删除(假删除)
|
|
|
|
|
|
|
|
|
|
update teacher_open_course_chat_log set teacher_open_course_chat_log_status = 2 where find_in_set(teacher_open_course_chat_log_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除(真删除)
|
|
|
|
|
|
|
|
|
|
delete from teacher_open_course_chat_log where find_in_set(teacher_open_course_chat_log_id,#ids#)
|
|
|
|
|
|
|
|
|
@ -194,11 +217,11 @@ updateGivenByIds
|
|
|
|
|
teacher_open_course_id = #teacherOpenCourseId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("schoolClassId",_given)){
|
|
|
|
|
@if(isEmpty(schoolClassId)){
|
|
|
|
|
school_class_id = null ,
|
|
|
|
|
@if(contain("schoolClassIds",_given)){
|
|
|
|
|
@if(isEmpty(schoolClassIds)){
|
|
|
|
|
school_class_ids = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
school_class_id = #schoolClassId# ,
|
|
|
|
|
school_class_ids = #schoolClassIds# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherId",_given)){
|
|
|
|
@ -243,11 +266,18 @@ updateGivenByIds
|
|
|
|
|
chat_files = #chatFiles# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("delFlag",_given)){
|
|
|
|
|
@if(isEmpty(delFlag)){
|
|
|
|
|
del_flag = null ,
|
|
|
|
|
@if(contain("teacherOpenCourseChatLogStatus",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
|
teacher_open_course_chat_log_status = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_chat_log_status = #teacherOpenCourseChatLogStatus# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseChatLogAddTime",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogAddTime)){
|
|
|
|
|
teacher_open_course_chat_log_add_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
del_flag = #delFlag# ,
|
|
|
|
|
teacher_open_course_chat_log_add_time = #teacherOpenCourseChatLogAddTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("orgId",_given)){
|
|
|
|
@ -264,13 +294,6 @@ updateGivenByIds
|
|
|
|
|
user_id = #userId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("createTime",_given)){
|
|
|
|
|
@if(isEmpty(createTime)){
|
|
|
|
|
create_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
create_time = #createTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
teacher_open_course_chat_log_id = teacher_open_course_chat_log_id
|
|
|
|
|
where find_in_set(teacher_open_course_chat_log_id,#teacherOpenCourseChatLogIdPlural#)
|
|
|
|
|
|
|
|
|
@ -293,8 +316,8 @@ getTeacherOpenCourseChatLogValues
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and t.school_class_ids =#schoolClassIds#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherId)){
|
|
|
|
|
and t.teacher_id =#teacherId#
|
|
|
|
@ -314,8 +337,13 @@ getTeacherOpenCourseChatLogValues
|
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(delFlag)){
|
|
|
|
|
and t.del_flag =#delFlag#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
|
@}else{
|
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_chat_log_add_time =#teacherOpenCourseChatLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@ -323,9 +351,6 @@ getTeacherOpenCourseChatLogValues
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
@ -354,11 +379,8 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and t.school_class_ids =#schoolClassIds#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherId)){
|
|
|
|
|
and t.teacher_id =#teacherId#
|
|
|
|
@ -384,8 +406,17 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(delFlag)){
|
|
|
|
|
and t.del_flag =#delFlag#
|
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
|
@}else{
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
|
@}else if(!isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_chat_log_status,#teacherOpenCourseChatLogStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_chat_log_add_time =#teacherOpenCourseChatLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@ -399,9 +430,6 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(userIdPlural)){
|
|
|
|
|
and find_in_set(t.user_id,#userIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|