dataease-dm/backend/src/main/java/io/dataease/service/RoleService.java
2021-02-20 10:23:37 +08:00

29 lines
717 B
Java

package io.dataease.service;
import io.dataease.base.domain.Role;
import io.dataease.base.mapper.RoleMapper;
import io.dataease.base.mapper.ext.ExtRoleMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class RoleService {
@Resource
private ExtRoleMapper extRoleMapper;
@Resource
private RoleMapper roleMapper;
public List<Role> getRoleList(String sign) {
return extRoleMapper.getRoleList(sign);
}
public List<Role> getAllRole() {
return roleMapper.selectByExample(null);
}
}