hejianhao
2026-08-18 84c81837d6465ee3f768291ea1f2859e322bd1b4
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
package com.tcm.training.admin.points.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tcm.training.admin.points.entity.PointsLedger;
import com.tcm.training.admin.points.row.PointsLedgerRow;
import com.tcm.training.admin.points.row.PointsLedgerSummaryRow;
import com.tcm.training.admin.points.row.PointsLedgerSyncExchangeRow;
import com.tcm.training.admin.points.row.PointsLedgerSyncQuizRow;
import com.tcm.training.admin.points.row.PointsRegionOptionRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Mapper
public interface PointsLedgerMapper extends BaseMapper<PointsLedger> {
 
    IPage<PointsLedgerRow> selectLedgerPage(IPage<PointsLedgerRow> page,
                                            @Param("userPhone") String userPhone,
                                            @Param("regionCode") String regionCode,
                                            @Param("clinicName") String clinicName,
                                            @Param("incomeExpenseType") String incomeExpenseType,
                                            @Param("businessType") String businessType,
                                            @Param("contentKeyword") String contentKeyword,
                                            @Param("referenceNo") String referenceNo,
                                            @Param("operatedFrom") LocalDateTime operatedFrom,
                                            @Param("operatedTo") LocalDateTime operatedTo);
 
    IPage<PointsLedgerRow> selectAppLedgerPage(IPage<PointsLedgerRow> page,
                                               @Param("appUserId") Long appUserId,
                                               @Param("incomeExpenseType") String incomeExpenseType);
 
    List<PointsLedgerRow> selectLedgerList(@Param("userPhone") String userPhone,
                                           @Param("regionCode") String regionCode,
                                           @Param("clinicName") String clinicName,
                                           @Param("incomeExpenseType") String incomeExpenseType,
                                           @Param("businessType") String businessType,
                                           @Param("contentKeyword") String contentKeyword,
                                           @Param("referenceNo") String referenceNo,
                                           @Param("operatedFrom") LocalDateTime operatedFrom,
                                           @Param("operatedTo") LocalDateTime operatedTo);
 
    PointsLedgerSummaryRow selectLedgerSummary(@Param("userPhone") String userPhone,
                                               @Param("regionCode") String regionCode,
                                               @Param("clinicName") String clinicName,
                                               @Param("incomeExpenseType") String incomeExpenseType,
                                               @Param("businessType") String businessType,
                                               @Param("contentKeyword") String contentKeyword,
                                               @Param("referenceNo") String referenceNo,
                                               @Param("operatedFrom") LocalDateTime operatedFrom,
                                               @Param("operatedTo") LocalDateTime operatedTo);
 
    List<PointsRegionOptionRow> selectRegionOptions();
 
    List<PointsLedgerSyncQuizRow> selectMissingQuizLedgerRows();
 
    List<PointsLedgerSyncExchangeRow> selectMissingExchangeLedgerRows();
}