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

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


@Service
@Transactional
public class LibBookSwitchServiceImpl extends BaseServiceImpl<LibBookSwitch, String> implements ILIbBookSwitchService {

	@Autowired
	private IBookSwitchDao dao;
	
	@Override
	public PagingAndSortingRepository<LibBookSwitch, String> getDao() {
		
		return dao;
	}

	@Override
	public LibBookSwitch findSwitchInfo(String libId) {
		
		return dao.findSwitchInfo(libId);
	}

	

}
