package com.fs.company.mapper;

import com.fs.company.domain.CompanyDeptUserInfo;
import com.fs.company.domain.ComprehensiveDailyStats;
import com.fs.company.dto.CompanyDeptUserInfoDTO;
import com.fs.company.dto.ComprehensiveStatisticsDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author: Guos
 * @time: 2025/10/30 上午9:25
 */
public interface StatisticManageMapper {

    //插入数据
    Integer insert(ComprehensiveDailyStats comprehensiveDailyStats);

    //获取公司、部门、员工信息
    List<CompanyDeptUserInfo> getCompanyAndDeptAndDeptUserList(@Param("companyId") Long companyId);

    List<CompanyDeptUserInfo> getCompanyInfo();


    CompanyDeptUserInfoDTO getStatisticNum(@Param("userIds") Long userIds);

    /**
     * 按照个人统计
     * @param dimension 维度
     * @param startTime
     * @param endTime
     * @param userIds
     */
    List<ComprehensiveStatisticsDTO> getStatisticNumByPersonal(@Param("dimension")Integer dimension, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("userIds") Long... userIds);
}
