From 17d95f1d550560c89b77521f603047351bba6ec8 Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期二, 23 四月 2024 16:06:53 +0800
Subject: [PATCH] mapper 扫描范围
---
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