Explorar o código

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

ZhangWenQiang %!s(int64=6) %!d(string=hai) anos
pai
achega
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 companyAuthentication = new CompanyAuthentication();
             companyAuthentication.setUserId(Integer.parseInt(userId));
             companyAuthentication.setUserId(Integer.parseInt(userId));
             List<CompanyAuthentication> companyAuthenticationList = companyAuthenticationMapper.getEnterpriseList(companyAuthentication);
             List<CompanyAuthentication> companyAuthenticationList = companyAuthenticationMapper.getEnterpriseList(companyAuthentication);
+            CompanyAuthentication companyAuthentication1 = new CompanyAuthentication();
             if (companyAuthenticationList.size() > 0) {
             if (companyAuthenticationList.size() > 0) {
-                companyAuthentication = companyAuthenticationList.get(0);
+                companyAuthentication1 = companyAuthenticationList.get(0);
             }
             }
             returnMap.put("userInfo", user);
             returnMap.put("userInfo", user);
-            returnMap.put("companyAuthentication", companyAuthentication);
+            returnMap.put("companyAuthentication", companyAuthentication1);
         } else {
         } else {
             returnMap.put("success", "1004");
             returnMap.put("success", "1004");
         }
         }