package com.ryw.mavendemo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ryw.mavendemo.dao.UserMapper;
import com.ryw.mavendemo.model.User;
import com.ryw.mavendemo.service.IUserService;

@Service("userService")
public class UserServiceImpl implements IUserService {
	@Resource
	private UserMapper userDao;

	public User getUserById(int userId) {
		// TODO Auto-generated method stub
		return this.userDao.selectByPrimaryKey(userId);
	}

}
