UserInfoService.java 602 Bytes
Newer Older
刘基明's avatar
刘基明 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package com.tanpu.community.service;

import com.tanpu.community.dao.entity.user.UserInfoEntity;
import com.tanpu.community.dao.mapper.user.UserInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;


刘基明's avatar
刘基明 committed
17
    public UserInfoEntity queryUserById(String userId) {
刘基明's avatar
刘基明 committed
18 19 20
        return userInfoMapper.selectById(userId);
    }

刘基明's avatar
刘基明 committed
21
    public List<UserInfoEntity> queryUserByIds(List<String> ids) {
刘基明's avatar
刘基明 committed
22 23 24
        return userInfoMapper.selectBatchIds(ids);
    }
}