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

import com.pcloud.book.group.dao.WeixinQrcodeGenerationDao;
import com.pcloud.book.group.entity.WeixinQrcodeGeneration;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @Author ruansiyuan
 * @Date 2019/10/29 10:27
 **/
@Component("weixinQrcodeGenerationDao")
public class WeixinQrcodeGenerationDaoImpl extends BaseDaoImpl<WeixinQrcodeGeneration> implements WeixinQrcodeGenerationDao {
    @Override
    public WeixinQrcodeGeneration getByGeneration(Integer generation) {
        return this.getSqlSession().selectOne(this.getStatement("getByGeneration"),generation);
    }

    @Override
    public List<WeixinQrcodeGeneration> getListByGenerations(List<Integer> list) {
        return this.getSqlSession().selectList(this.getStatement("getListByGenerations"),list);
    }
}
