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

import com.pcloud.book.book.dao.BookLabelTrimDao;
import com.pcloud.book.book.entity.BookLabelTrim;
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.BookLabelTrimDaoImpl
 * @Author zhuyajie
 * @Description 新标签
 * @Date 2021/7/27 11:26
 * @Version 1.0
 **/
@Component
public class BookLabelTrimDaoImpl extends BaseDaoImpl<BookLabelTrim> implements BookLabelTrimDao {
    @Override
    public List<BookLabelTrim> getBookLabelTrimList(Integer type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        return getSessionTemplate().selectList(getStatement("getBookLabelTrimList"), map);
    }
}
