diff --git a/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml b/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml
index f5f3aca0..8b43ebbc 100644
--- a/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml
+++ b/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml
@@ -120,7 +120,8 @@
#{CustomerId},
#{locInvCode},
#{locSubInvCode},
- #{dept},#{comments}
+ #{dept},
+ #{comments}
)
@@ -153,4 +154,61 @@
from auth_user
where userFlag != 0
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mybatis/mapper/auth/DeptDao.xml b/src/main/resources/mybatis/mapper/auth/DeptDao.xml
index 55c39264..40273651 100644
--- a/src/main/resources/mybatis/mapper/auth/DeptDao.xml
+++ b/src/main/resources/mybatis/mapper/auth/DeptDao.xml
@@ -8,9 +8,15 @@
SELECT *
FROM auth_dept
-
+
+ and id = #{id}
+
+
and flag = #{flag}
+
+ and parentId = #{parentId}
+
AND `name` LIKE CONCAT('%',#{name},'%')
@@ -22,10 +28,10 @@
- INSERT INTO auth_dept(`name`, `flag`, `remark`, updateTime, code)
+ INSERT INTO auth_dept(`name`, `flag`, `remark`, updateTime, code, parentId)
values (#{name},
#{flag},
- #{remark}, #{updateTime}, #{code})
+ #{remark}, #{updateTime}, #{code}, #{parentId})
@@ -36,6 +42,7 @@
remark=#{remark},
code=#{code},
updateTime=#{updateTime},
+ parentId=#{parentId},
WHERE id=#{id}