|
|
@ -53,7 +53,7 @@ queryByCondition
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
and t.keywords =#keywords#
|
|
|
|
and t.keywords like #"%"+keywords+"%"#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
and t.student_score =#studentScore#
|
|
|
@ -61,6 +61,9 @@ queryByCondition
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
and t.chat_log_send_type =#chatLogSendType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
@}else{
|
|
|
|
@}else{
|
|
|
@ -90,6 +93,26 @@ queryByCondition
|
|
|
|
order by teacher_open_course_chat_log_add_time desc
|
|
|
|
order by teacher_open_course_chat_log_add_time desc
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(replyStatus)){
|
|
|
|
|
|
|
|
and
|
|
|
|
|
|
|
|
@// 待回复的消息
|
|
|
|
|
|
|
|
@if(replyStatus == 1) {
|
|
|
|
|
|
|
|
NOT
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(replyStatus == 1) {
|
|
|
|
|
|
|
|
@// 这里留空,代表查询已回复的消息
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
EXISTS (
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
1
|
|
|
|
|
|
|
|
FROM
|
|
|
|
|
|
|
|
teacher_open_course_chat_log ta
|
|
|
|
|
|
|
|
WHERE
|
|
|
|
|
|
|
|
ta.teacher_open_course_chat_log_parent_id = t.teacher_open_course_chat_log_id
|
|
|
|
|
|
|
|
AND ta.teacher_open_course_chat_log_status = 1
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
|
queryByConditionQuery
|
|
|
@ -139,7 +162,7 @@ queryByConditionQuery
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
and t.keywords =#keywords#
|
|
|
|
and t.keywords like #"%"+keywords+"%"#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
and t.student_score =#studentScore#
|
|
|
@ -147,6 +170,9 @@ queryByConditionQuery
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
and t.chat_log_send_type =#chatLogSendType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
@}else{
|
|
|
|
@}else{
|
|
|
@ -268,6 +294,13 @@ updateGivenByIds
|
|
|
|
chat_files = #chatFiles# ,
|
|
|
|
chat_files = #chatFiles# ,
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(contain("chatLogSendType",_given)){
|
|
|
|
|
|
|
|
@if(isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
chat_log_send_type = null ,
|
|
|
|
|
|
|
|
@}else{
|
|
|
|
|
|
|
|
chat_log_send_type = #chatLogSendType# ,
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(contain("teacherOpenCourseChatLogStatus",_given)){
|
|
|
|
@if(contain("teacherOpenCourseChatLogStatus",_given)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
teacher_open_course_chat_log_status = null ,
|
|
|
|
teacher_open_course_chat_log_status = null ,
|
|
|
@ -331,7 +364,7 @@ getTeacherOpenCourseChatLogValues
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
and t.keywords =#keywords#
|
|
|
|
and t.keywords like #"%"+keywords+"%"#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
and t.student_score =#studentScore#
|
|
|
@ -339,6 +372,9 @@ getTeacherOpenCourseChatLogValues
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
and t.chat_log_send_type =#chatLogSendType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
@if(!isEmpty(teacherOpenCourseChatLogStatus)){
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
and t.teacher_open_course_chat_log_status =#teacherOpenCourseChatLogStatus#
|
|
|
|
@}else{
|
|
|
|
@}else{
|
|
|
@ -400,7 +436,7 @@ getValuesByQuery
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
and t.keywords =#keywords#
|
|
|
|
and t.keywords like #"%"+keywords+"%"#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
and t.student_score =#studentScore#
|
|
|
@ -408,6 +444,9 @@ getValuesByQuery
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
and t.chat_log_send_type =#chatLogSendType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
@}else{
|
|
|
|
@}else{
|
|
|
@ -478,7 +517,7 @@ getValuesByQueryNotWithPermission
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
and t.chat_content =#chatContent#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
@if(!isEmpty(keywords)){
|
|
|
|
and t.keywords =#keywords#
|
|
|
|
and t.keywords like #"%"+keywords+"%"#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
and t.student_score =#studentScore#
|
|
|
@ -486,6 +525,9 @@ getValuesByQueryNotWithPermission
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
@if(!isEmpty(chatFiles)){
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
and t.chat_files =#chatFiles#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(chatLogSendType)){
|
|
|
|
|
|
|
|
and t.chat_log_send_type =#chatLogSendType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
@if(isEmpty(teacherOpenCourseChatLogStatus) && isEmpty(teacherOpenCourseChatLogStatusPlural)){
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
and t.teacher_open_course_chat_log_status != 2
|
|
|
|
@}else{
|
|
|
|
@}else{
|
|
|
|