zjj
2 天以前 d5540413a0163383b53d33aea1be93390ea9149c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vincent.rsf.server.system.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vincent.rsf.server.system.entity.Role;
import com.vincent.rsf.server.system.entity.UserRole;
import com.vincent.rsf.server.system.mapper.UserRoleMapper;
import com.vincent.rsf.server.system.service.UserRoleService;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("userRoleService")
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {
 
    @Override
    public List<Role> listByUserId(Long userId) {
        return baseMapper.selectByUserId(userId);
    }
 
}