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

import com.pcloud.book.book.dao.BookEdtionDao;
import com.pcloud.book.book.dao.BookLabelDao;
import com.pcloud.book.book.dto.EditionAnalysisListVO;
import com.pcloud.book.book.entity.BookEdition;
import com.pcloud.book.book.entity.BookLabel;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Repository;

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

/**
 * @Description
 * @Author ruansiyuan
 * @Date 2019/12/27 17:23
 **/
@Repository("bookEdtionDao")
public class BookEdtionDaoImpl extends BaseDaoImpl<BookEdition> implements BookEdtionDao {

    @Override
    public List<EditionAnalysisListVO> projectEditionAnalysis(Long adviserId) {
        return super.getSqlSession().selectList(super.getStatement("projectEditionAnalysis"),adviserId);
    }

    @Override
    public List<EditionAnalysisListVO> projectCountSorted(Long adviserId) {
        return super.getSqlSession().selectList(super.getStatement("projectCountSorted"),adviserId);
    }
}
