diff --git a/src/main/resources/mybatis/mapper/auth/DeptHisStatusDao.xml b/src/main/resources/mybatis/mapper/auth/DeptHisStatusDao.xml
new file mode 100644
index 00000000..3002544b
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/DeptHisStatusDao.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+ delete
+ from auth_dept_status
+ where deptId = #{id}
+
+
+
+ delete
+ from auth_dept_status
+ where deptId in
+
+ #{item}
+
+
+
+
+
+
+ insert INTO auth_dept_status
+ (
+ deptId,statusId
+ )
+ values
+
+ (
+ #{item.deptId},
+ #{item.statusId}
+ )
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/DeptUserDao.xml b/src/main/resources/mybatis/mapper/auth/DeptUserDao.xml
new file mode 100644
index 00000000..24d8e278
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/DeptUserDao.xml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ delete
+ from auth_dept_user
+ where deptId = #{id}
+
+
+
+ delete
+ from auth_dept_user
+ where deptId in
+
+ #{item}
+
+
+
+
+
+
+ insert INTO auth_dept_user
+ (
+ deptId,userId
+ )
+ values
+
+ (
+ #{item.deptId},
+ #{item.userId}
+ )
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysDictDataMapper.xml b/src/main/resources/mybatis/mapper/auth/SysDictDataMapper.xml
new file mode 100644
index 00000000..6ba977d9
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysDictDataMapper.xml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete
+ from sys_dict_data
+ where dict_code = #{dictCode}
+
+
+
+
+ INSERT INTO sys_dict_data(`dict_code`, `dict_sort`, dict_label, dict_value
+ , dict_type, css_class, list_class, is_default, status, remark,
+ create_by, create_time, update_by)
+ values (#{dictCode},
+ #{dictSort}, #{dictLabel}, #{dictValue}, #{dictType}, #{cssClass}, #{listClass}
+ , #{isDefault}, #{status}, #{remark}, #{createBy}, #{createTime}, #{updateBy})
+
+
+
+
+ UPDATE sys_dict_data
+
+ `dict_code`=#{dictCode},
+ `dict_sort`=#{dictSort},
+ dict_label=#{dictLabel},
+ `dict_value`=#{dictValue},
+ dict_type=#{dictType},
+ `css_class`=#{cssClass},
+ `list_class`=#{listClass},
+ is_default=#{isDefault},
+ status=#{status},
+ remark=#{remark},
+ create_by=#{createBy},
+ `create_time`=#{createTime},
+ `update_by`=#{updateBy},
+
+ WHERE dict_code=#{dictCode}
+
+
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysDictTypeMapper.xml b/src/main/resources/mybatis/mapper/auth/SysDictTypeMapper.xml
new file mode 100644
index 00000000..a79ab3fa
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysDictTypeMapper.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete
+ from sys_dict_type
+ where dict_id = #{dictId}
+
+
+
+
+ delete
+ from sys_dict_type
+ where dict_id in
+
+ #{item}
+
+
+
+
+
+
+
+
+
+ INSERT INTO sys_dict_type(`dict_id`, dict_name, `dict_type`, status
+ create_by, create_time, update_by, update_time)
+ values (#{dictId},
+ #{dictName}, #{dictType}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime})
+
+
+
+
+ UPDATE sys_dict_type
+
+ `dict_name`=#{dictName},
+ dict_type=#{dictType},
+ `status`=#{status},
+ update_time=#{updateTime},
+ create_by=#{createBy},
+ `create_time`=#{createTime},
+ `update_by`=#{updateBy},
+
+ WHERE dict_id=#{dictId}
+
+
+
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysHisStatusDao.xml b/src/main/resources/mybatis/mapper/auth/SysHisStatusDao.xml
new file mode 100644
index 00000000..db315bec
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysHisStatusDao.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+ INSERT INTO sys_his_status(`type`, `typeName`, `parentId`, status, remark, updateTime)
+ values (#{type},
+ #{typeName},
+ #{parentId}, #{status}, #{remark}, #{updateTime})
+
+
+
+ UPDATE sys_his_status
+
+ `type`=#{type},
+ `typeName`=#{typeName},
+ parentId=#{parentId},
+ status=#{status},
+ updateTime=#{updateTime},
+ remark=#{remark},
+
+ WHERE id=#{id}
+
+
+
+ delete
+ from sys_his_status
+ where id = #{id}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mybatis/mapper/auth/SysMenuDao.xml b/src/main/resources/mybatis/mapper/auth/SysMenuDao.xml
new file mode 100644
index 00000000..82ebe534
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysMenuDao.xml
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO sys_menu(`menu_id`, `menu_name`, parent_id, `order_num`, `path`, component
+ , query_param, is_frame, is_cache, menu_type, visible, status, perms, icon,
+ remark, create_by, create_time, update_time, update_by)
+ values (#{menuId},
+ #{menuName}, #{parentId},
+ #{orderNum}, #{path}, #{component}, #{queryParam}, #{isFrame}, #{isCache}
+ , #{menuType}, #{visible}, #{status}, #{perms}, #{icon}, #{remark}
+ , #{createBy}, #{createTime}, #{updateTime}, #{updateBy})
+
+
+
+ UPDATE sys_menu
+
+ `menu_name`=#{menuName},
+ `parent_id`=#{parentId},
+ order_num=#{orderNum},
+ `path`=#{path},
+ component=#{component},
+ `query_param`=#{queryParam},
+ is_frame=#{isFrame},
+ is_cache=#{isCache},
+ updateTime=#{updateTime},
+ `menu_type`=#{menuType},
+ `visible`=#{visible},
+ status=#{status},
+ perms=#{perms},
+ icon=#{icon},
+ remark=#{remark},
+ create_by=#{createBy},
+ create_time=#{createTime},
+ update_time=#{updateTime},
+ update_by=#{updateBy},
+
+ WHERE menu_id=#{menuId}
+
+
+
+ delete
+ from sys_menu
+ where menu_id = #{id}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysRoleMapper.xml b/src/main/resources/mybatis/mapper/auth/SysRoleMapper.xml
new file mode 100644
index 00000000..7f6eac42
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysRoleMapper.xml
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO sys_role(`role_name`, `role_key`, role_sort, data_scope
+ , menu_check_strictly, dept_check_strictly, status, del_flag, remark,
+ create_by, create_time, update_by)
+ values (#{roleName},
+ #{roleKey}, #{roleSort}, #{dataScope}, #{menuCheckStrictly}, #{deptCheckStrictly}, #{status}
+ , #{delFlag}, #{remark}, #{createBy}, #{createTime}, #{updateBy})
+
+
+
+
+ UPDATE sys_role
+
+ `role_name`=#{roleName},
+ `role_key`=#{roleKey},
+ role_sort=#{roleSort},
+ `data_scope`=#{dataScope},
+ menu_check_strictly=#{menuCheckStrictly},
+ `dept_check_strictly`=#{deptCheckStrictly},
+ `status`=#{status},
+ del_flag=#{delFlag},
+ remark=#{remark},
+ create_by=#{createBy},
+ `create_time`=#{createTime},
+ `update_by`=#{updateBy},
+ `update_time`=#{updateTime},
+
+ WHERE role_id=#{roleId}
+
+
+
+ delete
+ from sys_role
+ where role_id in
+
+ #{item}
+
+
+
+
+
+
+ delete
+ from sys_role
+ where role_id = #{id}
+
+
+
+
+
+
+ select distinct r.role_id,
+ r.role_name,
+ r.role_key,
+ r.role_sort,
+ r.data_scope,
+ r.menu_check_strictly,
+ r.dept_check_strictly,
+ r.status,
+ r.del_flag,
+ r.create_time,
+ r.remark
+ from sys_role r
+ left join sys_user_role sur on sur.role_id = r.role_id
+ left join auth_user u on u.id = sur.user_id
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysRoleMenuMapper.xml b/src/main/resources/mybatis/mapper/auth/SysRoleMenuMapper.xml
new file mode 100644
index 00000000..dc0dd778
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysRoleMenuMapper.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+ delete
+ from sys_role_menu
+ where role_id = #{id}
+
+
+
+ delete
+ from sys_role_menu
+ where role_id in
+
+ #{item}
+
+
+
+
+
+
+ insert INTO sys_role_menu
+ (
+ role_id,menu_id
+ )
+ values
+
+ (
+ #{item.roleId},
+ #{item.menuId}
+ )
+
+
+
+
diff --git a/src/main/resources/mybatis/mapper/auth/SysUserRoleMapper.xml b/src/main/resources/mybatis/mapper/auth/SysUserRoleMapper.xml
new file mode 100644
index 00000000..41fa8d77
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/auth/SysUserRoleMapper.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE
+ FROM sys_user_role
+
+
+ AND user_id = #{userId}
+
+
+ AND role_id = #{roleId}
+
+
+
+
+
+
+ insert INTO sys_user_role
+ (
+ user_id,role_id
+ )
+ values
+
+ (
+ #{item.userId},
+ #{item.roleId}
+ )
+
+
+