From 7f2ae0edca69de4e80925b79de36f31f29c138af Mon Sep 17 00:00:00 2001
From: zhs <zhs18203887318@163.com>
Date: 星期三, 05 十一月 2025 10:48:56 +0800
Subject: [PATCH] 少了个逗号

---
 smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
index 0608f36..dbdef40 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -195,7 +195,7 @@
                d.orgid,
                d.status as dept_status
         from sys_dept d
-                 left join sys_user_dept ud on d.dept_id = ud.dept_id
+                 left join sys_user_dept ud on d.dept_code = ud.dept_code
         where ud.user_id = #{userId}
           and ud.del_flag = 0
           and d.del_flag = 0

--
Gitblit v1.9.3