package jnpf.attendance.mapper;

import jnpf.base.mapper.SuperMapper;
import jnpf.entity.attendance.AttendanceEnableBalance;
import jnpf.model.attendance.vo.attendance.OvertimeSalaryHoursJsonVo;
import jnpf.model.attendance.vo.attendance.OvertimeSalaryHoursVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 加班余额[不存休,仅记录]mapper
 *
 * @author yanwenfu
 * @create 2025-10-03
 */
public interface EnableBalanceMapper extends SuperMapper<AttendanceEnableBalance> {
    /**
     * 获取加班算薪加班小时数(不计算存休-结算薪酬)
     *
     * @param startDate 开始时间
     * @param endDate   结束时间
     * @param userIds   用户ID
     * @return 加班算薪加班小时数(
     */
    List<OvertimeSalaryHoursVo> getOvertimeSalary(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("userIds") List<String> userIds);

    /**
     * 获取加班算薪加班小时数(不计算存休-结算薪酬)
     *
     * @param startDate 开始时间
     * @param endDate   结束时间
     * @param userIds   用户ID
     * @return 加班算薪加班小时数(
     */
    List<OvertimeSalaryHoursJsonVo> getOvertimeSalaryJson(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("userIds") List<String> userIds);
}
