From e07922d3b2501465e38e9fb4d9d318911f03acd9 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Thu, 29 Dec 2022 14:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E7=BC=BA=E6=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/mapper/auth/AuthAdminDao.xml | 60 ++++++++++++++++++- .../resources/mybatis/mapper/auth/DeptDao.xml | 13 +++- 2 files changed, 69 insertions(+), 4 deletions(-) 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}