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

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

/**
 * @Description
 * @Author ruansiyuan
 * @Date 2019/8/5 16:19
 **/
@Component("templetRelevanceDao")
public class TempletRelevanceDaoImpl extends BaseDaoImpl<TempletRelevance> implements TempletRelevanceDao {
    @Override
    public TempletRelevance getByTempletId(Long templetId) {
        return this.getSqlSession().selectOne(this.getStatement("getByTempletId"), templetId);
    }
}
