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

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

/**
 * ERP自动创建二维码临时表，由于没有 adviserId，所以无法创建二维码，将数据暂存，关联时再创建(QrcodeSceneErp)表数据库访问层
 *
 * @author makejava
 * @since 2020-08-26 21:00:12
 */
@Repository("qrcodeSceneErpDaoImpl")
public class QrcodeSceneErpDaoImpl extends BaseDaoImpl<QrcodeSceneErp> implements QrcodeSceneErpDao {

    @Override
    public QrcodeSceneErp getByBookId(Long bookId) {
        return this.sqlSessionTemplate.selectOne(getStatement("getByBookId"), bookId);
    }
}
