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

import com.pcloud.book.applet.dao.AppletGroupStatementDao;
import com.pcloud.book.applet.entity.AppletGroupStatement;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName com.pcloud.book.applet.dao.impl.AppletGroupStatementDaoImpl
 * @Author zhuyajie
 * @Description 学舍群话语库
 * @Date 2020/5/8 11:23
 * @Version 1.0
 **/
@Component
public class AppletGroupStatementDaoImpl extends BaseDaoImpl<AppletGroupStatement> implements AppletGroupStatementDao{

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

    @Override
    public List<AppletGroupStatement> getRandom(Integer count) {
        return getSessionTemplate().selectList(getStatement("getRandom"), count);
    }
}
