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
package com.tcm.training.admin.live.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tcm.training.admin.live.entity.CoursePurchaseOrder;
import com.tcm.training.admin.live.vo.CoursePurchaseOrderListRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Mapper
public interface CoursePurchaseOrderMapper extends BaseMapper<CoursePurchaseOrder> {
 
    IPage<CoursePurchaseOrderListRow> selectOrderPage(IPage<CoursePurchaseOrderListRow> page,
                                                      @Param("orderNo") String orderNo,
                                                      @Param("userPhone") String userPhone,
                                                      @Param("productName") String productName,
                                                      @Param("paymentMethod") String paymentMethod,
                                                      @Param("status") String status,
                                                      @Param("createdFrom") LocalDateTime createdFrom,
                                                      @Param("createdTo") LocalDateTime createdTo);
 
    IPage<CoursePurchaseOrderListRow> selectAppUserOrderPage(IPage<CoursePurchaseOrderListRow> page,
                                                             @Param("appUserId") Long appUserId,
                                                             @Param("productName") String productName);
 
    CoursePurchaseOrderListRow selectAppUserOrderDetail(@Param("appUserId") Long appUserId,
                                                        @Param("orderNo") String orderNo);
 
    List<CoursePurchaseOrderListRow> selectOrderList(@Param("orderNo") String orderNo,
                                                     @Param("userPhone") String userPhone,
                                                     @Param("productName") String productName,
                                                     @Param("paymentMethod") String paymentMethod,
                                                     @Param("status") String status,
                                                     @Param("createdFrom") LocalDateTime createdFrom,
                                                     @Param("createdTo") LocalDateTime createdTo);
 
    List<CoursePurchaseOrderListRow> selectPaidCourseSnapshots(@Param("appUserId") Long appUserId);
}