package com.haha.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haha.entity.DistributorCommission;
import com.haha.entity.dto.CommissionQueryDTO;

import java.math.BigDecimal;

public interface DistributorCommissionService extends IService<DistributorCommission> {

    void processOrderCommission(Long userId, Long orderId, BigDecimal orderAmount);

    BigDecimal settleCommissions(Long distributorId, String yearMonth);

    IPage<DistributorCommission> getPage(CommissionQueryDTO queryDTO);
}
