package com.ssm.manage.dao.impl;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.BlackList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import com.ssm.manage.mapper.BlackListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import com.ssm.manage.dao.BlackListDao;

import com.ssm.core.impl.BaseDaoImpl;

import java.util.List;

/**
 * (BlackList)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-20 11:41:45
 */
@Component
public class BlackListDaoImpl extends BaseDaoImpl<BlackList> implements BlackListDao {

    @Autowired
    private BlackListMapper BlackListMapper;


    @Override
    protected BaseMapper<BlackList> getMapper() {
        return BlackListMapper;
    }

    @Override
    public List<BlackList> selectByStoreId(Long storeId, String identityCard) {
        return BlackListMapper.selectByStoreId(storeId,identityCard);
    }

    @Override
    public List<Long> selectTypeId(Integer type) {
        return BlackListMapper.selectTypeId(type);
    }

    @Override
    public void delectByIds(List<Long> ids) {
        BlackListMapper.delectByIdss(ids);
    }
}
