| | |
| | | |
| | | </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} |
| | |
| | | </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} |