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

import com.pcloud.book.applet.dao.AnswerSubscribePopupDao;
import com.pcloud.book.applet.entity.AnswerSubscribePopup;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

/**
 * @ClassName com.pcloud.book.applet.dao.impl.AnswerSubscribePopupDaoImpl
 * @Author zhuyajie
 * @Description 书刊订阅二维码弹出记录
 * @Date 2021/5/14 15:30
 * @Version 1.0
 **/
@Component
public class AnswerSubscribePopupDaoImpl extends BaseDaoImpl<AnswerSubscribePopup> implements AnswerSubscribePopupDao {
    @Override
    public AnswerSubscribePopup getLastRecord(Long wechatUserId) {
        return getSessionTemplate().selectOne(getStatement("getLastRecord"), wechatUserId);
    }
}
