package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.dao.AbsenteeismRecordDao;
import com.ssm.manage.entity.AbsenteeismRecord;
import com.ssm.manage.mapper.AbsenteeismRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AbsenteeismRecordDaoImpl extends BaseDaoImpl<AbsenteeismRecord> implements AbsenteeismRecordDao {

    @Autowired
    private AbsenteeismRecordMapper absenteeismRecordMapper;

    @Override
    protected BaseMapper<AbsenteeismRecord> getMapper() {
        return absenteeismRecordMapper;
    }

    @Override
    public void deletByStaffId(List<Long> delectAbsenteeismlist) {
        absenteeismRecordMapper.deletByStaffId(delectAbsenteeismlist);
    }
}
