This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
darry_ring/src/main/java/com/gao/finalhw/service/UserInfoService.java

24 lines
700 B
Java

package com.gao.finalhw.service;
import com.gao.finalhw.controller.UserController;
import com.gao.finalhw.mapper.UserInfoMapper;
import com.gao.finalhw.model.UserInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserInfoService {
private final Logger logger = LoggerFactory.getLogger(UserInfoService.class);
@Autowired
UserInfoMapper userInfoMapper;
public UserInfo getUserInfo(int id){
UserInfo result = userInfoMapper.selectById(id);
logger.info("select user info result: {}",result);
return result;
}
}