From 44475dca374251fdf32762ab7ab4266b28c6a8a4 Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期一, 22 四月 2024 08:54:22 +0800
Subject: [PATCH] 角色管理功能

---
 pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
index a452108..37fa18a 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaPrivilegeMapper.xml
@@ -54,6 +54,15 @@
     </if>
   </select>
 
+<!--  <select id="selectByRole" resultType="com.dy.pmsGlobal.pojoBa.BaPrivilege">-->
+<!--    select p.id,p.num,p.name,p.type-->
+<!--    from ba_privilege p-->
+<!--    inner join ba_role_privilege rp on p.id = rp.privilege_id-->
+<!--    <if test="roleId != null">-->
+<!--      where rp.role_id = #{roleId, jdbcType=BIGINT}-->
+<!--    </if>-->
+<!--  </select>-->
+
 
 
   <insert id="insert" parameterType="com.dy.pmsGlobal.pojoBa.BaPrivilege">
@@ -123,4 +132,13 @@
     delete from ba_privilege
     where id = #{id}
   </delete>
+
+  <select id="selectByIds" parameterType="arraylist" resultMap="BaseResultMap">
+    select
+    <include refid="Base_Column_List" />
+    from ba_privilege where id in
+    <foreach item="id" collection="ids" open="(" separator="," close=")">
+      #{id}
+    </foreach>
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0