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

import com.pcloud.book.cultivate.dao.CultivateBookUserDao;
import com.pcloud.book.cultivate.entity.CultivateBookUser;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Component;

@Component("cultivateBookUserDao")
public class CultivateBookUserDaoImpl extends BaseDaoImpl<CultivateBookUser> implements CultivateBookUserDao {
    @Override
    public CultivateBookUser getLastCultivateBookUser(Long wechatUserId) {
        return  super.getSqlSession().selectOne(getStatement("getLastCultivateBookUser"),wechatUserId);
    }
}
