package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.sales.SalesCommissionRecordDto;
import com.crm.rely.backend.core.entity.sales.SalesCommissionRecordListEntity;
import com.crm.rely.backend.core.pojo.table.SalesCommissionManualTable;
import com.crm.rely.backend.core.pojo.table.SalesCommissionRecordTable;
import com.crm.rely.backend.exception.ServiceException;

import java.util.List;

public interface SalesCommissionRecordService {

    BaseResultWithPagerDto<List<SalesCommissionRecordDto>> commissionRecords(SalesCommissionRecordListEntity entity) throws ServiceException;

    List<SalesCommissionRecordDto> commissionExportRecords(SalesCommissionRecordListEntity entity) throws ServiceException;

    void processAfterManualCommissionRecord(SalesCommissionManualTable table) throws ServiceException;

}
