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

import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.alibaba.dubbo.config.annotation.Service;
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;


@Service(version="1.0")
@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);
	}

	

}
