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

import com.pcloud.book.applet.dao.AnswerSubscribeAdviserDao;
import com.pcloud.book.applet.entity.AnswerSubscribeAdviser;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName com.pcloud.book.applet.dao.impl.AnswerSubscribeAdviserDaoImpl
 * @Author zhuyajie
 * @Description
 * @Date 2020/12/1 19:17
 * @Version 1.0
 **/
@Component
public class AnswerSubscribeAdviserDaoImpl extends BaseDaoImpl<AnswerSubscribeAdviser> implements AnswerSubscribeAdviserDao {
    @Override
    public AnswerSubscribeAdviser queryAll(AnswerSubscribeAdviser answerSubscribeAdviser) {
        return getSessionTemplate().selectOne(getStatement("queryAll"), answerSubscribeAdviser);
    }

    @Override
    public List<AnswerSubscribeAdviser> getRecord4Send() {
        return getSessionTemplate().selectList(getStatement("getRecord4Send"));
    }
}
