package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.sales.SalesPerformanceInfoDto;
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
import com.crm.rely.backend.core.entity.sales.SalesPerformanceInfoSearchEntity;
import com.crm.rely.backend.exception.ServiceException;

import java.util.List;

public interface SalesPerformanceInfoService {

    SalesPerformanceInfoDto searchById(Long id, InfoEntity infoEntity) throws ServiceException;

    BaseResultWithPagerDto<List<SalesPerformanceInfoDto>> searchList(SalesPerformanceInfoSearchEntity entity) throws ServiceException;

    /**
     * 导出销售绩效
     * 返回下载地址
     * @param entity
     * @return
     * @throws ServiceException
     */
    String export(SalesPerformanceInfoSearchEntity entity) throws ServiceException;

}
