浏览代码

用户\项目模块修改

anderx 2 年之前
父节点
当前提交
7500c96167
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -74,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
 		select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,d.max_duration,
+		       d.company_id,(select dept_name from sys_dept where dept_id = d.company_id) companyName,
 			(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
 		from sys_dept d
 		where d.dept_id = #{deptId}