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

import com.pcloud.book.push.dao.MorningEveningNewsDao;
import com.pcloud.book.push.entity.MorningEveningNews;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * @Description
 * @Author ruansiyuan
 * @Date 2019/6/3 11:44
 **/
@Repository("morningEveningNewsDao")
public class MorningEveningNewsDaoImpl extends BaseDaoImpl<MorningEveningNews> implements MorningEveningNewsDao {
    @Override
    public MorningEveningNews getByPartyId(Long partyId) {
        return super.getSqlSession().selectOne(getStatement("getByPartyId"), partyId);
    }
}
