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
package com.tcm.training.admin.app.patient.mapper;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tcm.training.admin.app.patient.row.AppMyPatientExchangeRow;
import com.tcm.training.admin.app.patient.row.AppMyPatientExchangeOrderItemRow;
import com.tcm.training.admin.app.patient.row.AppMyPatientLiveRow;
import com.tcm.training.admin.app.patient.row.AppMyPatientRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.time.LocalDateTime;
 
/**
 * APP 我的患者查询 Mapper。
 */
@Mapper
public interface AppMyPatientQueryMapper {
 
    /**
     * 分页查询直属患者列表。
     */
    IPage<AppMyPatientRow> selectPatientPage(IPage<AppMyPatientRow> page,
                                             @Param("doctorUserId") Long doctorUserId,
                                             @Param("keyword") String keyword);
 
    /**
     * 分页查询直属患者直播积分记录。
     */
    IPage<AppMyPatientLiveRow> selectLiveRecordPage(IPage<AppMyPatientLiveRow> page,
                                                    @Param("doctorUserId") Long doctorUserId,
                                                    @Param("keyword") String keyword,
                                                    @Param("startDate") LocalDateTime startDate,
                                                    @Param("endDate") LocalDateTime endDate,
                                                    @Param("businessType") String businessType,
                                                    @Param("incomeExpenseType") String incomeExpenseType);
 
    /**
     * 分页查询直属患者兑换记录。
     */
    IPage<AppMyPatientExchangeRow> selectExchangeRecordPage(IPage<AppMyPatientExchangeRow> page,
                                                            @Param("doctorUserId") Long doctorUserId,
                                                            @Param("keyword") String keyword,
                                                            @Param("status") Integer status);
 
    /**
     * 查询兑换主订单下的直属患者子订单列表。
     */
    IPage<AppMyPatientExchangeOrderItemRow> selectExchangeOrderItemPage(
            IPage<AppMyPatientExchangeOrderItemRow> page,
            @Param("doctorUserId") Long doctorUserId,
            @Param("orderId") Long orderId
    );
}