package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.dao.StaffTemporaryDao;
import com.ssm.manage.dto.BlackListDto;
import com.ssm.manage.entity.StaffTemporary;
import com.ssm.manage.entity.StaffTemporaryAndBlackList;
import com.ssm.manage.mapper.StaffTemporaryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

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

/**
 * (StaffTemporary)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-19 08:59:37
 */
@Component
public class StaffTemporaryDaoImpl extends BaseDaoImpl<StaffTemporary> implements StaffTemporaryDao {

    @Autowired
    private StaffTemporaryMapper StaffTemporaryMapper;


    @Override
    protected BaseMapper<StaffTemporary> getMapper() {
        return StaffTemporaryMapper;
    }

    @Override
    public List<StaffTemporary> selectByStaffTemporary(BlackListDto dto) {
        return StaffTemporaryMapper.selectByStaffTemporary(dto);

    }

    @Override
    public List<StaffTemporaryAndBlackList> selectByStaffTemporary1(BlackListDto dto) {
        return StaffTemporaryMapper.selectByStaffTemporary1(dto);

    }

    @Override
    public void updateIsUpdateByIds(Date ruzhiTime, Integer type, List<Long> ids) {
        StaffTemporaryMapper.updateIsUpdateByIds(ruzhiTime,type,ids);
    }

    @Override
    public void updateByBeisenDimissionDate(StaffTemporary staffTemporary) {
        StaffTemporaryMapper.updateByBeisenDimissionDate(staffTemporary);
    }

    @Override
    public String selectByStoreId(Long storeId, String identityCard) {
        return  StaffTemporaryMapper.selectByStoreId(storeId,identityCard);
    }
}
