From 1e1b131df46f6be8da0fbd3344124517e6011d79 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Sun, 14 May 2023 08:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=81=E4=B8=9A=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=89=AB=E7=A0=81=E7=99=BB=E5=BD=95=E6=97=B6=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E8=8B=A5=E4=B8=BA309=E5=88=99=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAadminorg=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/QyWxOperationController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java b/src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java index b10fa32b..4b251b55 100644 --- a/src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java +++ b/src/main/java/com/dreamchaser/depository_manage/controller/QyWxOperationController.java @@ -270,10 +270,16 @@ public class QyWxOperationController { // 如果成功获取userid Map portInfo = PublicConfig.findUserByQyWxUserId(userId); UserByPort userByPort = (UserByPort) portInfo.get("user"); + String key = (String) portInfo.get("key"); String token = (String) portInfo.get("token"); if (userByPort != null) { // 如果数据库中存在该用户 + // 获取当前用户所在主部门 + int maindeparment = userByPort.getMaindeparment(); + if(maindeparment == 309){ + userByPort.setMaindeparment(userByPort.getAdminorg()); + } // 设置放入时间 userByPort.setInstant(Instant.now()); AuthenticationTokenPool.addUserToken(token, userByPort);