update 优化 调整 system entity 实体与 controller 包结构

This commit is contained in:
疯狂的狮子li
2023-01-16 11:16:37 +08:00
parent df6867ee05
commit f3aff34602
54 changed files with 80 additions and 79 deletions

View File

@ -5,17 +5,17 @@
<mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
<!-- 多结构嵌套自动映射需带上每个实体的主键id 否则映射会失败 -->
<resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult">
<resultMap type="com.ruoyi.system.domain.SysUser" id="SysUserResult">
<id property="userId" column="user_id"/>
<association property="dept" column="dept_id" resultMap="deptResult"/>
<collection property="roles" javaType="java.util.List" resultMap="RoleResult"/>
</resultMap>
<resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept">
<resultMap id="deptResult" type="com.ruoyi.system.domain.SysDept">
<id property="deptId" column="dept_id"/>
</resultMap>
<resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole">
<resultMap id="RoleResult" type="com.ruoyi.system.domain.SysRole">
<id property="roleId" column="role_id"/>
</resultMap>