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

import com.ssj.bean.weixin.ydz.domain.YdzInfo;
import com.ssj.dao.weixin.ydz.dao.YdzInfoDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.weixin.ydz.service.YdzInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/** 
 * @author  ZhangCaibao 
 * @version 2017年7月11日 下午2:21:49 
 * 类说明 
 */
@Service
@Transactional
public class YdzInfoServiceImpl extends BaseServiceImpl<YdzInfo, String> implements YdzInfoService {

	@Autowired
	private YdzInfoDao  ydzInfoDao;
	@Override
	public PagingAndSortingRepository<YdzInfo, String> getDao() {
		return ydzInfoDao;
	}
	@Override
	public YdzInfo findByUserId(String userId) {
		return ydzInfoDao.findByUserId(userId);
	}

}
