Browse Source

角色管理 获取不到角色归属机构id

user5 4 years ago
parent
commit
63ef1656c9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/jeeplus/modules/sys/mapper/xml/RoleMapper.xml

+ 2 - 1
src/main/java/com/jeeplus/modules/sys/mapper/xml/RoleMapper.xml

@@ -10,6 +10,7 @@
 		<result property="remarks" column="remarks" />
 		<result property="remarks" column="remarks" />
 		<result property="useable" column="useable" />
 		<result property="useable" column="useable" />
 		<result property="office.name" column="office.name" />
 		<result property="office.name" column="office.name" />
+		<result property="office.id" column="office.id" />
 		<result property="sysData" column="sysData" />
 		<result property="sysData" column="sysData" />
 		<collection property="menuList" ofType="Menu">
 		<collection property="menuList" ofType="Menu">
 			<id property="id" column="menuList.id" />
 			<id property="id" column="menuList.id" />
@@ -48,7 +49,7 @@
 		LEFT JOIN sys_role_datarule rd ON rd.role_id = a.id
 		LEFT JOIN sys_role_datarule rd ON rd.role_id = a.id
 		WHERE a.id = #{id}
 		WHERE a.id = #{id}
 	</select>
 	</select>
-	
+
 	<select id="getByName" resultType="Role">
 	<select id="getByName" resultType="Role">
 		SELECT
 		SELECT
 			<include refid="roleColumns"/>
 			<include refid="roleColumns"/>