Commit 16c9f9af authored by xiaozhe.chen's avatar xiaozhe.chen

添加role相关的类

parent 9cc088a7
...@@ -12,12 +12,12 @@ import org.springframework.stereotype.Service; ...@@ -12,12 +12,12 @@ import org.springframework.stereotype.Service;
@Service @Service
public class RoleService { public class RoleService {
//@Autowired @Autowired
//private RoleRepository roleRepository; private RoleRepository roleRepository;
//@Autowired @Autowired
//private RoleUserRepository roleUserRepository; private RoleUserRepository roleUserRepository;
/*
public Role findRoleByUserId(Long userId) { public Role findRoleByUserId(Long userId) {
RoleUser roleUser = roleUserRepository.findByUserId(userId); RoleUser roleUser = roleUserRepository.findByUserId(userId);
Long roleId = roleUser.getRoleId(); Long roleId = roleUser.getRoleId();
...@@ -29,6 +29,5 @@ public class RoleService { ...@@ -29,6 +29,5 @@ public class RoleService {
public Role findRoleByRoleId(Long roleId) { public Role findRoleByRoleId(Long roleId) {
return roleRepository.findOne(roleId); return roleRepository.findOne(roleId);
} }
*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment