From d0eefd5ef0fc82e329e4cc6b7786cca8bdbb8397 Mon Sep 17 00:00:00 2001 From: tanghc Date: Mon, 9 Sep 2019 09:24:05 +0800 Subject: [PATCH] 2.1.0 --- .../gitee/sop/adminserver/service/RoutePermissionService.java | 1 + .../gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java | 1 + 2 files changed, 2 insertions(+) diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java index dd5d21ec..8661a9cc 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java @@ -91,6 +91,7 @@ public class RoutePermissionService { List rolePermissionList = permRolePermissionMapper.list(query); return rolePermissionList.stream() .map(PermRolePermission::getRouteId) + .sorted() .collect(Collectors.toList()); } diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java index 6aaa858a..edde6086 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java @@ -118,6 +118,7 @@ public class DbIsvRoutePermissionManager extends DefaultIsvRoutePermissionManage List rolePermissionList = permRolePermissionMapper.list(query); return rolePermissionList.stream() .map(PermRolePermission::getRouteId) + .sorted() .collect(Collectors.toList()); }