Ver Fonte

修复bug

xiaochan há 4 meses atrás
pai
commit
b2572a2959

+ 1 - 1
src/main/java/thyyxxk/webserver/service/LoginService.java

@@ -72,7 +72,7 @@ public class LoginService {
         } catch (Exception ignored) {
         } catch (Exception ignored) {
         }
         }
         tempUserInfo = userCache.get(tempUserInfo.getCode());
         tempUserInfo = userCache.get(tempUserInfo.getCode());
-        userInfo.setDeptName(deptCache.get(userInfo.getDeptCode()).getName());
+        userInfo.setDeptName(deptCache.get(tempUserInfo.getDeptCode()).getName());
         Set<String> deptList = publicServer.getDept(true, userInfo);
         Set<String> deptList = publicServer.getDept(true, userInfo);
         if (!deptList.isEmpty()) {
         if (!deptList.isEmpty()) {
             Map<String, String> tempMap = new HashMap<>(deptList.size());
             Map<String, String> tempMap = new HashMap<>(deptList.size());