From f5412313edae1ffae3d5471e5eca8dde4695f0d2 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 07 十一月 2025 17:46:35 +0800
Subject: [PATCH] 代码提交

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

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
index dbdef40..0c57056 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -15,6 +15,7 @@
         <result property="deptType" column="dept_type"/>
         <result property="createTime" column="create_time"/>
         <result property="updateTime" column="update_time"/>
+        <result property="campusid" column="campusid"/>
     </resultMap>
 
     <resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept">
@@ -25,6 +26,7 @@
         <result property="orderNum" column="order_num"/>
         <result property="leader" column="leader"/>
         <result property="status" column="dept_status"/>
+        <result property="campusid" column="campusid"/>
     </resultMap>
 
     <sql id="selectSysUserDeptVo">
@@ -32,6 +34,7 @@
                user_id,
                dept_id,
                del_flag,
+               campusid,
                orgid,
                create_time,
                update_time,
@@ -67,6 +70,9 @@
             </if>
             <if test="deptCode != null ">
                 and dept_code = #{deptCode}
+            </if>
+            <if test="campusid != null ">
+                and campusid = #{campusid}
             </if>
         </where>
     </select>
@@ -109,6 +115,9 @@
             <if test="userCode != null ">
                 user_code,
             </if>
+            <if test="campusid != null ">
+                campusid,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="userId != null">#{userId},
@@ -138,6 +147,9 @@
             </if>
             <if test="userCode != null ">
                 #{userCode},
+            </if>
+            <if test="campusid != null ">
+                #{campusid},
             </if>
         </trim>
     </insert>
@@ -172,6 +184,9 @@
             <if test="orgid != null ">
                 orgid = #{orgid},
             </if>
+            <if test="campusid != null ">
+                campusid = #{campusid},
+            </if>
         </trim>
         where id = #{id}
     </update>
@@ -191,6 +206,7 @@
                d.ancestors,
                d.dept_name,
                d.order_num,
+               d.campusid,
                d.leader,
                d.orgid,
                d.status as dept_status

--
Gitblit v1.9.3