Parcourir la source

日常获取用户信息和企业信息

ZhangWenQiang il y a 6 ans
Parent
commit
9503a6edb0

+ 3 - 2
happy-boot-module-hppay/src/main/java/org/jeecg/modules/user/service/impl/UserServiceImpl.java

@@ -281,11 +281,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
             CompanyAuthentication companyAuthentication = new CompanyAuthentication();
             companyAuthentication.setUserId(Integer.parseInt(userId));
             List<CompanyAuthentication> companyAuthenticationList = companyAuthenticationMapper.getEnterpriseList(companyAuthentication);
+            CompanyAuthentication companyAuthentication1 = new CompanyAuthentication();
             if (companyAuthenticationList.size() > 0) {
-                companyAuthentication = companyAuthenticationList.get(0);
+                companyAuthentication1 = companyAuthenticationList.get(0);
             }
             returnMap.put("userInfo", user);
-            returnMap.put("companyAuthentication", companyAuthentication);
+            returnMap.put("companyAuthentication", companyAuthentication1);
         } else {
             returnMap.put("success", "1004");
         }