package jnpf.attendance.mapper;

import jnpf.base.mapper.SuperMapper;
import jnpf.entity.attendance.AttendanceStorageRest;
import jnpf.model.attendance.vo.attendance.AttendanceStorageRestVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author huanglinpan
 * @Date 2024/7/1 16:13
 * @Version 1.0 （版本号）
 */
public interface StorageRestMapper  extends SuperMapper<AttendanceStorageRest> {
    /** 批量保存数据 */
    void saveBatch(@Param("list") List<AttendanceStorageRest> list);

    /** 获取用户指定年月的存休 */
    List<AttendanceStorageRestVo> batchGetUserStorageRest(@Param("userIds") List<String> userIds, @Param("yearMonth") String yearMonth);

    /** 实时获取当月存休 */
    List<AttendanceStorageRestVo> getRealTimeUserStorageRest(@Param("userIds") List<String> userIds);
}
