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/SysDeptMapper.xml | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
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>
--
Gitblit v1.9.3