package com.ssj.service.weixin.library.service.impl;

import com.ssj.bean.weixin.libmy.domain.TbLibManagerBanned;
import com.ssj.dao.weixin.library.dao.LibManagerBannedDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.weixin.library.service.LibManagerBannedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Mount Liu
 * @date 2019/10/24
 */
@Service
@Transactional
public class LibManagerBannedServiceImpl extends BaseServiceImpl<TbLibManagerBanned, String> implements LibManagerBannedService {

    @Autowired
    private LibManagerBannedDao dao;

    @Override
    public PagingAndSortingRepository<TbLibManagerBanned, String> getDao() {
        return dao;
    }

    @Override
    public List<TbLibManagerBanned> findByLibManagerIdAndDate(String libManagerId, String date) {
        return dao.findByLibManagerIdAndDate(libManagerId, date);
    }

    @Override
    public List<TbLibManagerBanned> findByUserId(String userId) {
        return dao.findByUserId(userId);
    }

}
