zjk
2026-09-29 54dcf0a82e7490fa58b1c056d5c0b9cb739c2931
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.tcm.training.admin.live.mapper;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcm.training.admin.live.entity.LiveWatchRecord;
import com.tcm.training.admin.live.vo.LiveWatchRow;
import com.tcm.training.admin.live.vo.LiveWatchSummaryRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Mapper
public interface LiveWatchRecordMapper extends BaseMapper<LiveWatchRecord> {
 
    /** 观看记录分页列表(动态筛选) */
    IPage<LiveWatchRow> selectWatchPage(IPage<LiveWatchRow> page,
                                        @Param("courseId") Long courseId,
                                        @Param("sessionId") Long sessionId,
                                        @Param("keyword") String keyword,
                                        @Param("isCompleted") Integer isCompleted,
                                        @Param("isEffective") Integer isEffective);
 
    IPage<LiveWatchRow> selectGlobalWatchPage(IPage<LiveWatchRow> page,
                                              @Param("courseId") Long courseId,
                                              @Param("sessionId") Long sessionId,
                                              @Param("regionCode") String regionCode,
                                              @Param("clinicName") String clinicName,
                                              @Param("phone") String phone,
                                              @Param("courseName") String courseName,
                                              @Param("hasReserve") Integer hasReserve,
                                              @Param("isCompleted") Integer isCompleted,
                                              @Param("isEffective") Integer isEffective,
                                              @Param("watchFrom") LocalDateTime watchFrom,
                                              @Param("watchTo") LocalDateTime watchTo);
 
    List<LiveWatchRow> selectGlobalWatchList(@Param("courseId") Long courseId,
                                             @Param("sessionId") Long sessionId,
                                             @Param("regionCode") String regionCode,
                                             @Param("clinicName") String clinicName,
                                             @Param("phone") String phone,
                                             @Param("courseName") String courseName,
                                             @Param("hasReserve") Integer hasReserve,
                                             @Param("isCompleted") Integer isCompleted,
                                             @Param("isEffective") Integer isEffective,
                                             @Param("watchFrom") LocalDateTime watchFrom,
                                             @Param("watchTo") LocalDateTime watchTo);
 
    LiveWatchSummaryRow selectGlobalWatchSummary(@Param("courseId") Long courseId,
                                                 @Param("sessionId") Long sessionId,
                                                 @Param("regionCode") String regionCode,
                                                 @Param("clinicName") String clinicName,
                                                 @Param("phone") String phone,
                                                 @Param("courseName") String courseName,
                                                 @Param("hasReserve") Integer hasReserve,
                                                 @Param("isCompleted") Integer isCompleted,
                                                 @Param("isEffective") Integer isEffective,
                                                 @Param("watchFrom") LocalDateTime watchFrom,
                                                 @Param("watchTo") LocalDateTime watchTo);
}