From a9674f2fdd767d37a920e08535d8ab7d88746796 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 11 十二月 2023 14:21:52 +0800
Subject: [PATCH] bug修改

---
 ycl-platform/src/main/java/com/ycl/service/auth/impl/AuthService.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/service/auth/impl/AuthService.java b/ycl-platform/src/main/java/com/ycl/service/auth/impl/AuthService.java
index 811aebb..c2ff7d1 100644
--- a/ycl-platform/src/main/java/com/ycl/service/auth/impl/AuthService.java
+++ b/ycl-platform/src/main/java/com/ycl/service/auth/impl/AuthService.java
@@ -62,9 +62,10 @@
             userParam.setPassword(encodePassword); //瀵嗙爜
             userParam.setStatus(1); //鐘舵��
             adminService.save(userParam);
-            dingCommon.getEmpInfoByCode(dingUserInfo.getEmployeeCode());
+            DingUserInfo empInfoByCode = dingCommon.getEmpInfoByCode(dingUserInfo.getEmployeeCode());
             //鏌ヨ閮ㄩ棬鏄惁瀛樺湪锛�
-            UmsDepart depart = departService.getById(dingUserInfo.getOrgId());
+            UmsDepart depart = departService.getById(empInfoByCode.getOrgId());
+            log.info("閮ㄩ棬---------------->{}",depart);
             //鍛樺伐淇℃伅锛屽叧鑱旂粍缁�
             if (Objects.nonNull(depart)) {
                 UmsDepartManage departManage = new UmsDepartManage();

--
Gitblit v1.8.0