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 { IPage selectOrderPage(IPage 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 selectAppUserOrderPage(IPage page, @Param("appUserId") Long appUserId, @Param("productName") String productName); CoursePurchaseOrderListRow selectAppUserOrderDetail(@Param("appUserId") Long appUserId, @Param("orderNo") String orderNo); List 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 selectPaidCourseSnapshots(@Param("appUserId") Long appUserId); }