package com.pcloud.book.book.dao.impl;

import com.google.common.collect.Maps;

import com.pcloud.book.book.entity.NoviceGuideDelete;
import com.pcloud.book.book.dao.NoviceGuideDeleteDao;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 新手引导案例书刊删除表(NoviceGuideDelete)表数据库访问层
 *
 * @author makejava
 * @since 2021-11-22 11:50:51
 */
@Repository("noviceGuideDeleteDaoImpl")
public class NoviceGuideDeleteDaoImpl extends BaseDaoImpl<NoviceGuideDelete> implements NoviceGuideDeleteDao {

    @Override
    public List<Long> getDeleteBookIds(Long adviserId) {
        Map<String, Object> map = Maps.newHashMap();
        map.put("adviserId", adviserId);
        return getSessionTemplate().selectList(getStatement("getDeleteBookIds"), map);
    }
}