b980a9950f1360d548258814b50af0257668e45f.svn-base 491 B

123456789101112131415161718192021
  1. package com.synyi.edc.service.impl;
  2. import javax.annotation.Resource;
  3. import org.springframework.stereotype.Service;
  4. import com.synyi.edc.dao.IUserDao;
  5. import com.synyi.edc.pojo.User;
  6. import com.synyi.edc.service.IUserService;
  7. @Service("userService")
  8. public class UserServiceImpl implements IUserService {
  9. @Resource
  10. private IUserDao userDao;
  11. @Override
  12. public User getUserById(int userId) {
  13. // TODO Auto-generated method stub
  14. return this.userDao.selectByPrimaryKey(userId);
  15. }
  16. }