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

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ssj.bean.weixin.libmy.domain.TbLibManagerAudit;
import com.ssj.bean.weixin.libmy.domain.TbLibManagerBanned;
import com.ssj.dao.weixin.library.dao.IOneBookQueryDao;
import com.ssj.dao.weixin.library.dao.LibManagerAuditDao;
import com.ssj.dao.weixin.library.dao.LibManagerBannedDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.framework.core.persistence.DynamicSpecifications;
import com.ssj.framework.core.persistence.SearchFilter;
import com.ssj.service.mapper.LibManagerAuditMapper;
import com.ssj.service.sys.curator.dto.CuratorAuditDTO;
import com.ssj.service.weixin.library.dto.TeacherInfoDTO;
import com.ssj.service.weixin.library.service.LibManagerAuditService;
import com.ssj.service.weixin.library.service.LibManagerBannedService;
import com.ssj.utils.MybatisPlusUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author Mount Liu
 * @date 2019/10/24
 */
@Service(version = "1.0")
@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);
    }

}
