소스 검색

修复bug

xiaochan 4 달 전
부모
커밋
b2572a2959
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/thyyxxk/webserver/service/LoginService.java

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

@@ -72,7 +72,7 @@ public class LoginService {
         } catch (Exception ignored) {
         }
         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);
         if (!deptList.isEmpty()) {
             Map<String, String> tempMap = new HashMap<>(deptList.size());