|
|
@ -127,7 +127,6 @@ public class RouteApi { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void updateRouteConfig(RouteUpdateParam routeUpdateParam) { |
|
|
|
private void updateRouteConfig(RouteUpdateParam routeUpdateParam) { |
|
|
|
try { |
|
|
|
|
|
|
|
String routeId = routeUpdateParam.getId(); |
|
|
|
String routeId = routeUpdateParam.getId(); |
|
|
|
ConfigRouteBase configRouteBase = configRouteBaseMapper.getByColumn("route_id", routeId); |
|
|
|
ConfigRouteBase configRouteBase = configRouteBaseMapper.getByColumn("route_id", routeId); |
|
|
|
boolean doSave = configRouteBase == null; |
|
|
|
boolean doSave = configRouteBase == null; |
|
|
@ -143,9 +142,6 @@ public class RouteApi { |
|
|
|
if (i > 0) { |
|
|
|
if (i > 0) { |
|
|
|
this.sendMsg(configRouteBase); |
|
|
|
this.sendMsg(configRouteBase); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("发送msg失败", e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void sendMsg(ConfigRouteBase routeDefinition) { |
|
|
|
private void sendMsg(ConfigRouteBase routeDefinition) { |
|
|
@ -178,7 +174,6 @@ public class RouteApi { |
|
|
|
Collectors.mapping(PermRolePermission::getRoleCode, Collectors.toList()))); |
|
|
|
Collectors.mapping(PermRolePermission::getRoleCode, Collectors.toList()))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return permRolePermissionMapper.list(new Query().in("route_id", routeIdList)) |
|
|
|
return permRolePermissionMapper.list(new Query().in("route_id", routeIdList)) |
|
|
|
.stream() |
|
|
|
.stream() |
|
|
|
.map(permRolePermission -> { |
|
|
|
.map(permRolePermission -> { |
|
|
|