Răsfoiți Sursa

授权申请修改

mazq 1 an în urmă
părinte
comite
0c211564e8

+ 8 - 1
dcuc-auth-service/src/main/java/com/dragoninfo/dcuc/auth/auth/service/impl/ServiceAuthResultServiceImpl.java

@@ -608,10 +608,17 @@ public class ServiceAuthResultServiceImpl implements IServiceAuthResultService {
         setAuthSysSecurityUser();
         setAuthSysSecurityUser();
 
 
         List<ServiceAuthResult> serviceAuthResult = getServiceAuthResult(authApplies);
         List<ServiceAuthResult> serviceAuthResult = getServiceAuthResult(authApplies);
-        serviceAuthResult.forEach(e-> {
+        serviceAuthResult.forEach(e -> {
             serviceAuthResultBPO.save(e);
             serviceAuthResultBPO.save(e);
             logInfoFillService.sendServiceAuthLog(AuthResultEnum.SUC, e.getAppId(), e.getServiceCode(), "");
             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() {
     private void setAuthSysSecurityUser() {

+ 3 - 0
dcuc-auth-service/src/main/resources/application-auth.yml

@@ -13,6 +13,9 @@ dcuc:
         base-url: http://10.11.0.168:8866/approve-gateway/approve-core/
         base-url: http://10.11.0.168:8866/approve-gateway/approve-core/
         call-back-url: http://10.11.0.240:8861/dcucauth/api/auth-service/v1/approval/call-back
         call-back-url: http://10.11.0.240:8861/dcucauth/api/auth-service/v1/approval/call-back
         role-operate-def-id: dcuc-function-auth-apply
         role-operate-def-id: dcuc-function-auth-apply
+        role-auth-apply-def-id:
+        service-auth-apply-def-id:
+        role-auth-task-type: 111
         role-manage-task-type: 222
         role-manage-task-type: 222
     app-code: QXXT0000000000000001
     app-code: QXXT0000000000000001
     menu-noclear: true
     menu-noclear: true