|
@@ -9,7 +9,6 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -197,8 +196,8 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
|
@ApiOperation(value = "查询权限组")
|
|
|
@GetMapping("getPrivilegeGroupList")
|
|
|
public List<PrivilegeGroupDomain> getPrivilegeGroupList() {
|
|
|
- Sort sort = new Sort(Sort.Direction.ASC, "id");
|
|
|
- List<PrivilegeGroupEntity> list = privilegeGroupRepo.findAll(sort);
|
|
|
+
|
|
|
+ List<PrivilegeGroupEntity> list = privilegeGroupRepo.findAllByRootOrgIdIsNullOrderById();
|
|
|
|
|
|
List<PrivilegeGroupDomain> ret = Lists.newArrayList();
|
|
|
|