package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.bean.result.ProjectMonitorResult;
import com.qmth.sop.business.bean.result.ServiceUnitOverviewResult;
import com.qmth.sop.business.bean.result.ServiceUnitProgressResult;
import com.qmth.sop.business.bean.result.ServiceUnitProvinceResult;
import com.qmth.sop.business.entity.TBService;
import com.qmth.sop.common.enums.CrmProcessEnum;

import java.util.List;

/**
 * @Description 服务单元分析
 * @Author haoguanghui
 * @date 2024/09/09
 */
public interface ServiceUnitAnalyseService extends IService<TBService> {

    ServiceUnitOverviewResult overview(Long serviceUnitId);

    List<ServiceUnitProgressResult> progress(Long serviceUnitId);

    List<ServiceUnitProvinceResult> province(Long serviceUnitId);

    IPage<ProjectMonitorResult> pageSop(Page<ProjectMonitorResult> page, Long serviceUnitId, Long crmUserId, String customName, CrmProcessEnum process,
            Long leadId, String province, Long supplierId, Long coordinatorId, String type, String fieldObj);

    void export(Long serviceUnitId, Long crmUserId, String customName, CrmProcessEnum process, Long leadId, String province, Long supplierId,
            Long coordinatorId, String type, String fieldObj);

}
