Ver Fonte

优化会议室获取用户信息

longmeizhen@avic-s.com há 9 meses atrás
pai
commit
34e8e2d5fa

+ 6 - 2
src/main/java/com/palmnest/webapp/controller/wechat/SuperAppController.java

@@ -286,8 +286,12 @@ public class SuperAppController {
 				//returnMap.put("headimgUrl", wxUser.getHeadimgUrl());
 				dto.setUserName(userName);
 
-
-				AppUser appUer = appUserManager.getAppUserByWxUserAndOrg(wxUser.getId(), Integer.decode(orgId));
+				AppUser appUer = null;
+				if(StringUtils.isNotEmpty(userId)){
+					appUer = appUserManager.get(Integer.parseInt(userId));
+				}else{
+					appUer = appUserManager.getAppUserByWxUserAndOrg(wxUser.getId(), Integer.decode(orgId));
+				}
 				if (null != appUer && StringUtils.isNotEmpty(appUer.getUserMobile())) {
 					dto.setMobile(appUer.getUserMobile());
 				} else {