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

import com.pcloud.book.book.dao.BookSerialNumberDao;
import com.pcloud.book.book.entity.BookSerialNumber;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * 序号自动生成表(BookSerialNumber)表数据库访问层
 *
 * @author makejava
 * @since 2020-08-26 14:00:12
 */
@Repository("bookSerialNumberDaoImpl")
public class BookSerialNumberDaoImpl extends BaseDaoImpl<BookSerialNumber> implements BookSerialNumberDao {
    @Override
    public BookSerialNumber getByIsbn(String isbn) {
        return this.sqlSessionTemplate.selectOne(getStatement("getByIsbn"), isbn);
    }
}
