package com.yonge.cooleshow.biz.dal.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yonge.cooleshow.biz.dal.wrapper.TenantPersonStatWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.yonge.cooleshow.biz.dal.entity.PaymentDivMemberRecord;
import com.yonge.cooleshow.biz.dal.wrapper.PaymentDivMemberRecordWrapper;

/**
 * 分账子账户记录表
 * 2023-07-28 15:45:03
 */
@Repository
public interface PaymentDivMemberRecordMapper extends BaseMapper<PaymentDivMemberRecord> {

	/**
	 * 分页查询
	 * @param page IPage<PaymentDivMemberRecordWrapper.PaymentDivMemberRecord>
	 * @param param PaymentDivMemberRecordWrapper.PaymentDivMemberRecordQuery
	 * @return List<PaymentDivMemberRecordWrapper.PaymentDivMemberRecord>
	 */
	List<PaymentDivMemberRecord> selectPage(@Param("page") IPage<PaymentDivMemberRecord> page, @Param("param") PaymentDivMemberRecordWrapper.PaymentDivMemberRecordQuery param);

    List<PaymentDivMemberRecordWrapper.IndexIncomeQueryDto> queryIncome(@Param("page") IPage<PaymentDivMemberRecordWrapper.IndexIncomeQueryDto> page,
																		@Param("param") PaymentDivMemberRecordWrapper.IndexIncomeQuery param);

	//小程序首页订单详情
    PaymentDivMemberRecordWrapper.OrderDetailDto getIncomeOrderDetail(@Param("orderNo") String orderNo, @Param("tenantId") Long tenantId);

	//首页收入汇总
	List<PaymentDivMemberRecordWrapper.IndexIncomeSummaryDetailDto> incomeSummary(@Param("query") PaymentDivMemberRecordWrapper.IndexIncomeQuery query);

	//首页支出汇总
    List<PaymentDivMemberRecordWrapper.IndexIncomeSummaryDetailDto> expendSummary(@Param("query") PaymentDivMemberRecordWrapper.IndexIncomeQuery query);
}