From 4bb883b400073aeaeb234900fd6b0c8a0b9889a7 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期四, 15 五月 2025 14:59:34 +0800
Subject: [PATCH] system: 优化mapper xml
---
aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysDictTypeMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml | 12 +++---
aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml | 6 +-
aps-modules/aps-system/src/main/resources/mapper/system/SysUserPostMapper.xml | 2
aps-modules/aps-system/src/main/resources/mapper/system/SysPostMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml | 2
aps-modules/aps-system/src/main/resources/mapper/system/SysOperLogMapper.xml | 6 +-
aps-modules/aps-system/src/main/resources/mapper/system/SysUserRoleMapper.xml | 4 +-
aps-modules/aps-system/src/main/resources/mapper/system/SysNoticeMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysConfigMapper.xml | 10 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysDeptMapper.xml | 8 ++--
aps-modules/aps-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml | 2
aps-modules/aps-system/src/main/resources/mapper/system/SysUserMapper.xml | 24 ++++++------
15 files changed, 58 insertions(+), 58 deletions(-)
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysConfigMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysConfigMapper.xml
index 2baf673..d5704a2 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysConfigMapper">
- <resultMap type="SysConfig" id="SysConfigResult">
+ <resultMap type="com.aps.system.domain.SysConfig" id="SysConfigResult">
<id property="configId" column="config_id" />
<result property="configName" column="config_name" />
<result property="configKey" column="config_key" />
@@ -33,12 +33,12 @@
</where>
</sql>
- <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
+ <select id="selectConfig" parameterType="com.aps.system.domain.SysConfig" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
<include refid="sqlwhereSearch"/>
</select>
- <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
+ <select id="selectConfigList" parameterType="com.aps.system.domain.SysConfig" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
<where>
<if test="configName != null and configName != ''">
@@ -69,7 +69,7 @@
where config_key = #{configKey} limit 1
</select>
- <insert id="insertConfig" parameterType="SysConfig">
+ <insert id="insertConfig" parameterType="com.aps.system.domain.SysConfig">
insert into sys_config (
<if test="configName != null and configName != '' ">config_name,</if>
<if test="configKey != null and configKey != '' ">config_key,</if>
@@ -89,7 +89,7 @@
)
</insert>
- <update id="updateConfig" parameterType="SysConfig">
+ <update id="updateConfig" parameterType="com.aps.system.domain.SysConfig">
update sys_config
<set>
<if test="configName != null and configName != ''">config_name = #{configName},</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysDeptMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysDeptMapper.xml
index 76e6110..e631c42 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysDeptMapper">
- <resultMap type="SysDept" id="SysDeptResult">
+ <resultMap type="com.aps.system.api.domain.SysDept" id="SysDeptResult">
<id property="deptId" column="dept_id" />
<result property="parentId" column="parent_id" />
<result property="ancestors" column="ancestors" />
@@ -30,7 +30,7 @@
from sys_dept d
</sql>
- <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
+ <select id="selectDeptList" parameterType="com.aps.system.api.domain.SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where d.del_flag = '0'
<if test="deptId != null and deptId != 0">
@@ -88,7 +88,7 @@
where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
</select>
- <insert id="insertDept" parameterType="SysDept">
+ <insert id="insertDept" parameterType="com.aps.system.api.domain.SysDept">
insert into sys_dept(
<if test="deptId != null and deptId != 0">dept_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
@@ -118,7 +118,7 @@
)
</insert>
- <update id="updateDept" parameterType="SysDept">
+ <update id="updateDept" parameterType="com.aps.system.api.domain.SysDept">
update sys_dept
<set>
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
index 88d8803..a2bc0e1 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysDictDataMapper">
- <resultMap type="SysDictData" id="SysDictDataResult">
+ <resultMap type="com.aps.system.api.domain.SysDictData" id="SysDictDataResult">
<id property="dictCode" column="dict_code" />
<result property="dictSort" column="dict_sort" />
<result property="dictLabel" column="dict_label" />
@@ -25,7 +25,7 @@
from sys_dict_data
</sql>
- <select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
+ <select id="selectDictDataList" parameterType="com.aps.system.api.domain.SysDictData" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
<where>
<if test="dictType != null and dictType != ''">
@@ -89,7 +89,7 @@
</foreach>
</delete>
- <update id="updateDictData" parameterType="SysDictData">
+ <update id="updateDictData" parameterType="com.aps.system.api.domain.SysDictData">
update sys_dict_data
<set>
<if test="dictSort != null">dict_sort = #{dictSort},</if>
@@ -111,7 +111,7 @@
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
</update>
- <insert id="insertDictData" parameterType="SysDictData">
+ <insert id="insertDictData" parameterType="com.aps.system.api.domain.SysDictData">
insert into sys_dict_data(
<if test="dictSort != null">dict_sort,</if>
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
index be69fa6..c88c11c 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysDictTypeMapper">
- <resultMap type="SysDictType" id="SysDictTypeResult">
+ <resultMap type="com.aps.system.api.domain.SysDictType" id="SysDictTypeResult">
<id property="dictId" column="dict_id" />
<result property="dictName" column="dict_name" />
<result property="dictType" column="dict_type" />
@@ -20,7 +20,7 @@
from sys_dict_type
</sql>
- <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
+ <select id="selectDictTypeList" parameterType="com.aps.system.api.domain.SysDictType" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
<where>
<if test="dictName != null and dictName != ''">
@@ -71,7 +71,7 @@
</foreach>
</delete>
- <update id="updateDictType" parameterType="SysDictType">
+ <update id="updateDictType" parameterType="com.aps.system.api.domain.SysDictType">
update sys_dict_type
<set>
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
@@ -84,7 +84,7 @@
where dict_id = #{dictId}
</update>
- <insert id="insertDictType" parameterType="SysDictType">
+ <insert id="insertDictType" parameterType="com.aps.system.api.domain.SysDictType">
insert into sys_dict_type(
<if test="dictName != null and dictName != ''">dict_name,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml
index 150db83..92c03bb 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysLogininforMapper">
- <resultMap type="SysLogininfor" id="SysLogininforResult">
+ <resultMap type="com.aps.system.api.domain.SysLogininfor" id="SysLogininforResult">
<id property="infoId" column="info_id" />
<result property="userName" column="user_name" />
<result property="status" column="status" />
@@ -13,12 +13,12 @@
<result property="accessTime" column="access_time" />
</resultMap>
- <insert id="insertLogininfor" parameterType="SysLogininfor">
+ <insert id="insertLogininfor" parameterType="com.aps.system.api.domain.SysLogininfor">
insert into sys_logininfor (user_name, status, ipaddr, msg, access_time)
values (#{userName}, #{status}, #{ipaddr}, #{msg}, now())
</insert>
- <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
+ <select id="selectLogininforList" parameterType="com.aps.system.api.domain.SysLogininfor" resultMap="SysLogininforResult">
select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor
<where>
<if test="ipaddr != null and ipaddr != ''">
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml
index 3454e67..64f0ebd 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysMenuMapper">
- <resultMap type="SysMenu" id="SysMenuResult">
+ <resultMap type="com.aps.system.domain.SysMenu" id="SysMenuResult">
<id property="menuId" column="menu_id" />
<result property="menuName" column="menu_name" />
<result property="parentName" column="parent_name" />
@@ -33,7 +33,7 @@
from sys_menu
</sql>
- <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
+ <select id="selectMenuList" parameterType="com.aps.system.domain.SysMenu" resultMap="SysMenuResult">
<include refid="selectMenuVo"/>
<where>
<if test="menuName != null and menuName != ''">
@@ -55,7 +55,7 @@
order by m.parent_id, m.order_num
</select>
- <select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
+ <select id="selectMenuListByUserId" parameterType="com.aps.system.domain.SysMenu" resultMap="SysMenuResult">
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.route_name, m.visible, m.status, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
@@ -128,12 +128,12 @@
select count(1) from sys_menu where parent_id = #{menuId}
</select>
- <select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
+ <select id="checkMenuNameUnique" parameterType="com.aps.system.domain.SysMenu" resultMap="SysMenuResult">
<include refid="selectMenuVo"/>
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
</select>
- <update id="updateMenu" parameterType="SysMenu">
+ <update id="updateMenu" parameterType="com.aps.system.domain.SysMenu">
update sys_menu
<set>
<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
@@ -157,7 +157,7 @@
where menu_id = #{menuId}
</update>
- <insert id="insertMenu" parameterType="SysMenu">
+ <insert id="insertMenu" parameterType="com.aps.system.domain.SysMenu">
insert into sys_menu(
<if test="menuId != null and menuId != 0">menu_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysNoticeMapper.xml
index 322af0c..d0e9bc4 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysNoticeMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysNoticeMapper">
- <resultMap type="SysNotice" id="SysNoticeResult">
+ <resultMap type="com.aps.system.domain.SysNotice" id="SysNoticeResult">
<result property="noticeId" column="notice_id" />
<result property="noticeTitle" column="notice_title" />
<result property="noticeType" column="notice_type" />
@@ -27,7 +27,7 @@
where notice_id = #{noticeId}
</select>
- <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
+ <select id="selectNoticeList" parameterType="com.aps.system.domain.SysNotice" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
<where>
<if test="noticeTitle != null and noticeTitle != ''">
@@ -42,7 +42,7 @@
</where>
</select>
- <insert id="insertNotice" parameterType="SysNotice">
+ <insert id="insertNotice" parameterType="com.aps.system.domain.SysNotice">
insert into sys_notice (
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
@@ -62,7 +62,7 @@
)
</insert>
- <update id="updateNotice" parameterType="SysNotice">
+ <update id="updateNotice" parameterType="com.aps.system.domain.SysNotice">
update sys_notice
<set>
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysOperLogMapper.xml
index cbe3983..a0f2da4 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysOperLogMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysOperLogMapper">
- <resultMap type="SysOperLog" id="SysOperLogResult">
+ <resultMap type="com.aps.system.api.domain.SysOperLog" id="SysOperLogResult">
<id property="operId" column="oper_id" />
<result property="title" column="title" />
<result property="businessType" column="business_type" />
@@ -28,12 +28,12 @@
from sys_oper_log
</sql>
- <insert id="insertOperlog" parameterType="SysOperLog">
+ <insert id="insertOperlog" parameterType="com.aps.system.api.domain.SysOperLog">
insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_param, json_result, status, error_msg, cost_time, oper_time)
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, now())
</insert>
- <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
+ <select id="selectOperLogList" parameterType="com.aps.system.api.domain.SysOperLog" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
<where>
<if test="operIp != null and operIp != ''">
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysPostMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysPostMapper.xml
index 3a68bd2..16a83e7 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysPostMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysPostMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysPostMapper">
- <resultMap type="SysPost" id="SysPostResult">
+ <resultMap type="com.aps.system.domain.SysPost" id="SysPostResult">
<id property="postId" column="post_id" />
<result property="postCode" column="post_code" />
<result property="postName" column="post_name" />
@@ -22,7 +22,7 @@
from sys_post
</sql>
- <select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
+ <select id="selectPostList" parameterType="com.aps.system.domain.SysPost" resultMap="SysPostResult">
<include refid="selectPostVo"/>
<where>
<if test="postCode != null and postCode != ''">
@@ -72,7 +72,7 @@
where post_code=#{postCode} limit 1
</select>
- <update id="updatePost" parameterType="SysPost">
+ <update id="updatePost" parameterType="com.aps.system.domain.SysPost">
update sys_post
<set>
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
@@ -86,7 +86,7 @@
where post_id = #{postId}
</update>
- <insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
+ <insert id="insertPost" parameterType="com.aps.system.domain.SysPost" useGeneratedKeys="true" keyProperty="postId">
insert into sys_post(
<if test="postId != null and postId != 0">post_id,</if>
<if test="postCode != null and postCode != ''">post_code,</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
index 76abcfd..7581f2c 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysRoleDeptMapper">
- <resultMap type="SysRoleDept" id="SysRoleDeptResult">
+ <resultMap type="com.aps.system.domain.SysRoleDept" id="SysRoleDeptResult">
<result property="roleId" column="role_id" />
<result property="deptId" column="dept_id" />
</resultMap>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml
index 72a9ded..d4c9a3c 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysRoleMapper">
- <resultMap type="SysRole" id="SysRoleResult">
+ <resultMap type="com.aps.system.api.domain.SysRole" id="SysRoleResult">
<id property="roleId" column="role_id" />
<result property="roleName" column="role_name" />
<result property="roleKey" column="role_key" />
@@ -30,7 +30,7 @@
left join sys_dept d on u.dept_id = d.dept_id
</sql>
- <select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
+ <select id="selectRoleList" parameterType="com.aps.system.api.domain.SysRole" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.del_flag = '0'
<if test="roleId != null and roleId != 0">
@@ -93,7 +93,7 @@
where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
</select>
- <insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
+ <insert id="insertRole" parameterType="com.aps.system.api.domain.SysRole" useGeneratedKeys="true" keyProperty="roleId">
insert into sys_role(
<if test="roleId != null and roleId != 0">role_id,</if>
<if test="roleName != null and roleName != ''">role_name,</if>
@@ -121,7 +121,7 @@
)
</insert>
- <update id="updateRole" parameterType="SysRole">
+ <update id="updateRole" parameterType="com.aps.system.api.domain.SysRole">
update sys_role
<set>
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml
index 75423b4..a0691ee 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysRoleMenuMapper">
- <resultMap type="SysRoleMenu" id="SysRoleMenuResult">
+ <resultMap type="com.aps.system.domain.SysRoleMenu" id="SysRoleMenuResult">
<result property="roleId" column="role_id" />
<result property="menuId" column="menu_id" />
</resultMap>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserMapper.xml
index 84f48cb..53e4bf1 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysUserMapper">
- <resultMap type="SysUser" id="SysUserResult">
+ <resultMap type="com.aps.system.api.domain.SysUser" id="SysUserResult">
<id property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
<result property="userName" column="user_name" />
@@ -23,11 +23,11 @@
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
- <association property="dept" javaType="SysDept" resultMap="deptResult" />
+ <association property="dept" javaType="com.aps.system.api.domain.SysDept" resultMap="deptResult" />
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
</resultMap>
- <resultMap id="deptResult" type="SysDept">
+ <resultMap id="deptResult" type="com.aps.system.api.domain.SysDept">
<id property="deptId" column="dept_id" />
<result property="parentId" column="parent_id" />
<result property="deptName" column="dept_name" />
@@ -37,7 +37,7 @@
<result property="status" column="dept_status" />
</resultMap>
- <resultMap id="RoleResult" type="SysRole">
+ <resultMap id="RoleResult" type="com.aps.system.api.domain.SysRole">
<id property="roleId" column="role_id" />
<result property="roleName" column="role_name" />
<result property="roleKey" column="role_key" />
@@ -56,7 +56,7 @@
left join sys_role r on r.role_id = ur.role_id
</sql>
- <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
+ <select id="selectUserList" parameterType="com.aps.system.api.domain.SysUser" resultMap="SysUserResult">
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
where u.del_flag = '0'
@@ -85,7 +85,7 @@
${params.dataScope}
</select>
- <select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
+ <select id="selectAllocatedList" parameterType="com.aps.system.api.domain.SysUser" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
@@ -102,7 +102,7 @@
${params.dataScope}
</select>
- <select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
+ <select id="selectUnallocatedList" parameterType="com.aps.system.api.domain.SysUser" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
@@ -142,7 +142,7 @@
select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
</select>
- <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
+ <insert id="insertUser" parameterType="com.aps.system.api.domain.SysUser" useGeneratedKeys="true" keyProperty="userId">
insert into sys_user(
<if test="userId != null and userId != 0">user_id,</if>
<if test="deptId != null and deptId != 0">dept_id,</if>
@@ -174,7 +174,7 @@
)
</insert>
- <update id="updateUser" parameterType="SysUser">
+ <update id="updateUser" parameterType="com.aps.system.api.domain.SysUser">
update sys_user
<set>
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
@@ -194,15 +194,15 @@
where user_id = #{userId}
</update>
- <update id="updateUserStatus" parameterType="SysUser">
+ <update id="updateUserStatus" parameterType="com.aps.system.api.domain.SysUser">
update sys_user set status = #{status} where user_id = #{userId}
</update>
- <update id="updateUserAvatar" parameterType="SysUser">
+ <update id="updateUserAvatar" parameterType="com.aps.system.api.domain.SysUser">
update sys_user set avatar = #{avatar} where user_name = #{userName}
</update>
- <update id="resetUserPwd" parameterType="SysUser">
+ <update id="resetUserPwd" parameterType="com.aps.system.api.domain.SysUser">
update sys_user set password = #{password} where user_name = #{userName}
</update>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserPostMapper.xml
index b0c7975..00db930 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserPostMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserPostMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysUserPostMapper">
- <resultMap type="SysUserPost" id="SysUserPostResult">
+ <resultMap type="com.aps.system.domain.SysUserPost" id="SysUserPostResult">
<result property="userId" column="user_id" />
<result property="postId" column="post_id" />
</resultMap>
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
index 80fc2c8..a1ee1e4 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.system.mapper.SysUserRoleMapper">
- <resultMap type="SysUserRole" id="SysUserRoleResult">
+ <resultMap type="com.aps.system.domain.SysUserRole" id="SysUserRoleResult">
<result property="userId" column="user_id" />
<result property="roleId" column="role_id" />
</resultMap>
@@ -31,7 +31,7 @@
</foreach>
</insert>
- <delete id="deleteUserRoleInfo" parameterType="SysUserRole">
+ <delete id="deleteUserRoleInfo" parameterType="com.aps.system.domain.SysUserRole">
delete from sys_user_role where user_id=#{userId} and role_id=#{roleId}
</delete>
--
Gitblit v1.9.3