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
|
);
|
}
|