package com.qmth.sop.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.sop.business.bean.report.DingExceptionCountReportBean;
import com.qmth.sop.business.bean.report.SupplierCountReportBean;
import com.qmth.sop.business.entity.TBService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 设备商供货数量分布报表mapper
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2024/9/18
 */
public interface ResourceSecurityReportMapper extends BaseMapper<TBService> {

    /**
     * 设备商供货数量分布
     *
     * @param serviceId
     * @return
     */
    List<SupplierCountReportBean> deviceSupplierCountReport(@Param("serviceId") Long serviceId);

    /**
     * 人力商供货数量分布
     *
     * @param serviceId
     * @return
     */
    List<SupplierCountReportBean> humanSupplierCountReport(@Param("serviceId") Long serviceId);

    /**
     * 大区考勤异常数统计
     *
     * @param serviceId
     * @return
     */
    List<DingExceptionCountReportBean> areaDingExceptionCountReport(@Param("serviceId") Long serviceId);

    /**
     * 人力供应商考勤异常数统计
     *
     * @param serviceId
     * @return
     */
    List<DingExceptionCountReportBean> humanDingExceptionCountReport(@Param("serviceId") Long serviceId);
}
