wang-hao-jie
2021-10-19 e48043a2df9ca0c73fe18298bab3c4d42ca5c0c7
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
30
31
32
33
package cn.exrick.xboot.core.serviceimpl.mybatis;
 
import cn.exrick.xboot.core.dao.mapper.UserRoleMapper;
import cn.exrick.xboot.core.entity.Role;
import cn.exrick.xboot.core.entity.UserRole;
import cn.exrick.xboot.core.service.mybatis.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @author Exrickx
 */
@Service
public class IUserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {
 
    @Autowired
    private UserRoleMapper userRoleMapper;
 
    @Override
    public List<Role> findByUserId(String userId) {
 
        return userRoleMapper.findByUserId(userId);
    }
 
    @Override
    public List<String> findDepIdsByUserId(String userId) {
 
        return userRoleMapper.findDepIdsByUserId(userId);
    }
}