Explorar el Código

同步企业信息,把管理员分开传

wangmh hace 7 años
padre
commit
9ef5654847

+ 2 - 0
sso-server/src/main/java/com/uas/sso/service/impl/UserspaceServiceImpl.java

@@ -111,6 +111,7 @@ public class UserspaceServiceImpl implements UserspaceService {
 
     private void syncUserSpaceInfo(final UserSpaceView userSpaceView, final String msg) {
         List<String> apps = appService.findUid();
+        final UserView admin = userSpaceView.getAdmin();
         userSpaceView.setAdminUU(userSpaceView.getAdmin().getUserUU());
         userSpaceView.setAdmin(null);
 
@@ -122,6 +123,7 @@ public class UserspaceServiceImpl implements UserspaceService {
                         && !StringUtils.isEmpty(tempApp.getBackSpaceUrl())) {
                     String url = tempApp.getBackSpaceUrl();
                     JSONObject formData = JSON.parseObject(JSON.toJSONString(userSpaceView));
+                    formData.putAll(JSON.parseObject(JSON.toJSONString(admin)));
                     HttpUtil.ResponseWrap res = null;
                     try {
                         res = HttpUtil.doPost(url, formData, 30000);