“mitao”
2026-04-15 5ad8d714d43ecf06aa9d900a69e7b22018ce7ed6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.tcm.training.admin.live.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcm.training.admin.live.entity.HealthCoursePlayRecord;
import com.tcm.training.admin.live.row.AppMyHealthCourseProgressRow;
import com.tcm.training.admin.live.row.AppMyHealthCourseVideoProgressRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 养生课程视频播放记录 Mapper。
 */
@Mapper
public interface HealthCoursePlayRecordMapper extends BaseMapper<HealthCoursePlayRecord> {
 
    /**
     * 查询指定用户在课程集合下的章节进度汇总。
     */
    List<AppMyHealthCourseVideoProgressRow> selectVideoProgressByCourseIds(@Param("appUserId") Long appUserId,
                                                                           @Param("courseIds") List<Long> courseIds);
 
    /**
     * 查询指定用户在课程集合下的课程整体进度汇总。
     */
    List<AppMyHealthCourseProgressRow> selectCourseProgressByCourseIds(@Param("appUserId") Long appUserId,
                                                                       @Param("courseIds") List<Long> courseIds);
}