xuefei
2020-12-10 eeeb7233935ea9b10e99043bdbf740ef86c9bf20
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
34
package cn.cetc54.platform.core.serviceimpl;
 
import cn.cetc54.platform.core.dao.RoleDao;
import cn.cetc54.platform.core.entity.Role;
import cn.cetc54.platform.core.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
 
/**
 * 角色接口实现
 * @author
 */
@Slf4j
@Service
@Transactional
public class RoleServiceImpl implements RoleService {
 
    @Autowired
    private RoleDao roleDao;
 
    @Override
    public RoleDao getRepository() {
        return roleDao;
    }
 
    @Override
    public List<Role> findByDefaultRole(Boolean defaultRole) {
        return roleDao.findByDefaultRole(defaultRole);
    }
}