From c1ef2d1fc4c0dae2bc8452924dcd77a0ff3a1ef5 Mon Sep 17 00:00:00 2001
From: cpT <1@123>
Date: 星期四, 19 六月 2025 15:02:52 +0800
Subject: [PATCH] #改造
---
src/main/resources/mapper/RoleMapper.xml | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/src/main/resources/mapper/RoleMapper.xml b/src/main/resources/mapper/RoleMapper.xml
index f346f81..1403569 100644
--- a/src/main/resources/mapper/RoleMapper.xml
+++ b/src/main/resources/mapper/RoleMapper.xml
@@ -12,19 +12,10 @@
</resultMap>
- <sql id="batchSeq">
- <if test="id != null and id != 0">
- and a.ID = #{id}
- </if>
- <if test="name != null and name != ''">
- and a.NAME = #{name}
- </if>
- </sql>
-
<select id="selectRoleList" resultMap="BaseResultMap">
SELECT * FROM "SOURCE"."sys_role"
WHERE 1=1
- <if test="leaderIdList != null and leaderIdList != ''">
+ <if test="leaderIdList != null">
and ID not in
<foreach collection="leaderIdList" item="item" index="index" separator="," open="(" close=")">
#{item}
@@ -35,9 +26,9 @@
</select>
<select id="selectRoleListTotal" resultType="Long">
- SELECT count(1) FROM "SOURCE"."wcs_api_config"
+ SELECT count(1) FROM "SOURCE"."sys_role"
WHERE 1=1
- <if test="leaderIdList != null and leaderIdList != ''">
+ <if test="leaderIdList != null">
and ID not in
<foreach collection="leaderIdList" item="item" index="index" separator="," open="(" close=")">
#{item}
--
Gitblit v1.9.1