luxiaotao1123
2024-06-21 569d2b6bc754b037ade5b4205a4d1cdb8339b26b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.zy.ptc.kernel.system.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.ptc.kernel.system.entity.Role;
import com.zy.ptc.kernel.system.entity.UserRole;
import com.zy.ptc.kernel.system.mapper.UserRoleMapper;
import com.zy.ptc.kernel.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);
    }
 
}