86183
2022-09-09 0d999e33085c0a25c5525242748f6aa62a401159
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.dsh.app.service.impl;
 
import cn.mb.cloud.common.data.base.impl.BaseServiceImpl;
import com.dsh.app.entity.User;
import com.dsh.app.mapper.UserMapper;
import com.dsh.app.model.vo.UserVo;
import com.dsh.app.service.IUserService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
 
 
/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author zhao
 * @since 2022-05-16
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implements IUserService {
    @Override
    public UserVo getOneUser(String userId) {
        User user = this.getById(userId);
        UserVo userVo = new UserVo();
        BeanUtils.copyProperties(user,userVo);
        return userVo;
    }
}