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

import com.pcloud.book.cultivate.dao.CultivateRaysDao;
import com.pcloud.book.cultivate.entity.CultivateRays;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

/**
 * @ClassName com.pcloud.book.cultivate.dao.impl.CultivateRaysDaoImpl
 * @Author zhuyajie
 * @Description 宠物小睿
 * @Date 2021/7/16 13:56
 * @Version 1.0
 **/
@Component
public class CultivateRaysDaoImpl extends BaseDaoImpl<CultivateRays> implements CultivateRaysDao {
    @Override
    public CultivateRays getByWechatUserId(Long wechatUserId) {
        return getSessionTemplate().selectOne(getStatement("getByWechatUserId"), wechatUserId);
    }
}
