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

import com.pcloud.book.book.dao.SeriesBookDao;
import com.pcloud.book.book.entity.SeriesBook;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName com.pcloud.book.book.dao.impl.SeriesBookDaoImpl
 * @Author zhuyajie
 * @Description 系列书
 * @Date 2020/11/23 17:15
 * @Version 1.0
 **/
@Component
public class SeriesBookDaoImpl extends BaseDaoImpl<SeriesBook> implements SeriesBookDao {


    @Override
    public List<SeriesBook> getSeriesBookByAgent(Long agentId) {
        return getSessionTemplate().selectList(getStatement("getSeriesBookByAgent"), agentId);
    }
}
