|
@@ -608,10 +608,17 @@ public class ServiceAuthResultServiceImpl implements IServiceAuthResultService {
|
|
|
setAuthSysSecurityUser();
|
|
|
|
|
|
List<ServiceAuthResult> serviceAuthResult = getServiceAuthResult(authApplies);
|
|
|
- serviceAuthResult.forEach(e-> {
|
|
|
+ serviceAuthResult.forEach(e -> {
|
|
|
serviceAuthResultBPO.save(e);
|
|
|
logInfoFillService.sendServiceAuthLog(AuthResultEnum.SUC, e.getAppId(), e.getServiceCode(), "");
|
|
|
});
|
|
|
+ Map<String, List<String>> map = serviceAuthResult.stream()
|
|
|
+ .collect(Collectors.groupingBy(ServiceAuthResult::getAppCode,
|
|
|
+ Collectors.mapping(ServiceAuthResult::getServiceCode, Collectors.toList())));
|
|
|
+ // 发送服务权限变更通知
|
|
|
+ map.forEach((key, list) -> {
|
|
|
+ this.sendPermssionService(key, list, Collections.emptyList());
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private void setAuthSysSecurityUser() {
|