1、文档存档-互动汇总

beetlsql3-dev
wgf 2 years ago
parent 454c5e6251
commit fdcbb7d393

@ -63,6 +63,12 @@ public interface TeacherOpenCourseChatLogDao extends BaseMapper<TeacherOpenCours
*/ */
TeacherOpenCourseChatLogAnalysisVO chatLogAnalysis(TeacherOpenCourseChatLogAnalysisDTO dto); TeacherOpenCourseChatLogAnalysisVO chatLogAnalysis(TeacherOpenCourseChatLogAnalysisDTO dto);
/**
* -
* @return
*/
TeacherOpenCourseChatLogAnalysisVO chatLogAnalysisNew(TeacherOpenCourseChatLogAnalysisDTO dto);
Integer getTeacherAskUnReadCountByTeacher(ChatLogUnReadNumDTO dto); Integer getTeacherAskUnReadCountByTeacher(ChatLogUnReadNumDTO dto);
Integer getTeacherAskUnReadCountByStudent(ChatLogUnReadNumDTO dto); Integer getTeacherAskUnReadCountByStudent(ChatLogUnReadNumDTO dto);

@ -456,6 +456,19 @@ public class TeacherOpenCourseChatLogService extends CoreBaseService<TeacherOpen
return teacherOpenCourseChatLogDao.chatLogAnalysis(dto); return teacherOpenCourseChatLogDao.chatLogAnalysis(dto);
} }
/**
* : <br>
* -
*
* @param dto
* @return {@link TeacherOpenCourseChatLogAnalysisVO}
* @Author: lx
* @Date: 2023/1/20 0:35
*/
public TeacherOpenCourseChatLogAnalysisVO chatLogAnalysisNew(TeacherOpenCourseChatLogAnalysisDTO dto) {
return teacherOpenCourseChatLogDao.chatLogAnalysisNew(dto);
}
/** /**
* *
* *

@ -610,7 +610,19 @@ public class TeacherOpenCourseChatLogController extends BaseController {
*/ */
@GetMapping(API + "/chatLogAnalysis.do") @GetMapping(API + "/chatLogAnalysis.do")
public JsonResult chatLogAnalysis(TeacherOpenCourseChatLogAnalysisDTO dto, @SCoreUser CoreUser coreUser) { public JsonResult chatLogAnalysis(TeacherOpenCourseChatLogAnalysisDTO dto, @SCoreUser CoreUser coreUser) {
return JsonResult.success(teacherOpenCourseChatLogService.chatLogAnalysis(dto)); return JsonResult.success(teacherOpenCourseChatLogService.chatLogAnalysisNew(dto));
}
/**
* -
*
* @param dto
* @param coreUser
* @return
*/
@GetMapping(API + "/chatLogAnalysisNew.do")
public JsonResult chatLogAnalysisNew(TeacherOpenCourseChatLogAnalysisDTO dto, @SCoreUser CoreUser coreUser) {
return JsonResult.success(teacherOpenCourseChatLogService.chatLogAnalysisNew(dto));
} }
/** /**

@ -706,6 +706,25 @@ chatLogAnalysis
AND t.teacher_open_course_chat_log_status = 1 AND t.teacher_open_course_chat_log_status = 1
chatLogAnalysisNew
===
* 互动日志统计-新
SELECT
SUM( chat_log_send_type = 'discuss' ) AS chat_log_count,
SUM( chat_log_send_type = 'student_ask' ) AS student_send_count,
SUM(
FIND_IN_SET( chat_log_send_type, 'specify_ask,random_ask' )) AS teacher_send_count
FROM
teacher_open_course_chat_log t
WHERE
1
@if(isNotEmpty(teacherOpenCourseId)) {
AND t.teacher_open_course_id = #teacherOpenCourseId#
@}
AND t.teacher_open_course_chat_log_status = 1
getTeacherAskUnReadCountByTeacher getTeacherAskUnReadCountByTeacher
=== ===

Loading…
Cancel
Save