refactor(系统设置): 优化用户查询限制到1000

This commit is contained in:
wxg0103 2024-04-23 10:40:30 +08:00 committed by 刘瑞斌
parent 519e41d1d1
commit 6852d6199b
8 changed files with 17 additions and 17 deletions

View File

@ -37,7 +37,7 @@
organization_id = #{organizationId}
order by create_time desc
limit 100
limit 1000
</select>
<select id="getProjectByOrgId" resultType="io.metersphere.project.domain.Project">
@ -52,7 +52,7 @@
and user.deleted = 0
and p.organization_id = #{organizationId}
order by p.create_time desc
limit 100
limit 1000
</select>
<select id="resourcePoolIsExist" resultType="int">
select count(t.id) from test_resource_pool t left join project_test_resource_pool p on

View File

@ -29,7 +29,7 @@
and (u.name like concat('%', #{keyword}, '%') or u.email like concat('%', #{keyword}, '%'))
</if>
order by u.name
limit 100
limit 1000
</select>
<select id="getCommentAtUserInfoByParam" resultType="io.metersphere.system.dto.CommentUserInfo">
@ -43,7 +43,7 @@
<if test="keyword != null and keyword != ''">
and u.name like concat('%', #{keyword}, '%')
</if>
limit 100
limit 1000
</select>
<sql id="filter">

View File

@ -61,7 +61,7 @@
</if>
and u.deleted = false
order by u.update_time desc
limit 100
limit 1000
</select>
<select id="getProjectRoleMemberIds" resultType="java.lang.String">

View File

@ -110,7 +110,7 @@
<if test="keyword != null and keyword != ''">
and (name LIKE CONCAT('%', #{keyword}, '%') or email like CONCAT('%', #{keyword}, '%'))
</if>
limit 100
limit 1000
</select>
<select id="getSelectOptionByIdsWithDeleted" resultType="io.metersphere.system.dto.sdk.OptionDTO">
SELECT id, name

View File

@ -111,7 +111,7 @@
or u.phone like CONCAT('%', #{keyword},'%'))
</if>
order by u.update_time desc
limit 100
limit 1000
</select>
<select id="getOrgAdminList" resultType="io.metersphere.system.domain.User">

View File

@ -11,7 +11,7 @@
and name LIKE CONCAT('%', #{keyword}, '%')
</if>
order by update_time desc
limit 100
limit 1000
</select>
</mapper>

View File

@ -125,7 +125,7 @@
and (LOCATE(#{keyword},u.name)>0 or LOCATE(#{keyword},u.email)>0)
</if>
order by u.create_time desc
limit 100
limit 1000
</select>
@ -148,7 +148,7 @@
</where>
group by u.id
order by u.create_time desc
limit 100
limit 1000
</select>
<select id="getProjectExtendDTOList" resultType="io.metersphere.system.dto.ProjectDTO">
select p.id, count(distinct temp.id) as memberCount
@ -207,7 +207,7 @@
and (u.name like concat('%', #{keyword}, '%') or u.email like concat('%', #{keyword}, '%'))
</if>
order by u.name
limit 100
limit 1000
</select>
<select id="getProjectMemberByUserId" resultType="io.metersphere.system.domain.User">

View File

@ -9,7 +9,7 @@
and (u.name like concat('%', #{keyword}, '%') or u.email like concat('%', #{keyword}, '%'))
</if>
group by u.id
limit 100
limit 1000
</select>
<select id="getUserListByOrgId" resultType="io.metersphere.system.domain.User">
@ -26,7 +26,7 @@
and (LOCATE(#{keyword},name)>0 or LOCATE(#{keyword},email)>0)
</if>
order by u.create_time desc
limit 100
limit 1000
</select>
<select id="selectUserList" resultType="io.metersphere.system.domain.User">
@ -42,7 +42,7 @@
and (LOCATE(#{keyword},name)>0 or LOCATE(#{keyword},email)>0)
</if>
order by u.create_time desc
limit 100
limit 1000
</select>
<select id="getRoleUserByParam" resultType="io.metersphere.system.domain.User">
@ -54,7 +54,7 @@
<if test="keyword != null and keyword != ''">
and (name like concat('%', #{keyword}, '%') or email like concat('%', #{keyword}, '%'))
</if>
limit 100
limit 1000
</select>
@ -69,7 +69,7 @@
AND (name LIKE concat('%', #{keyword}, '%') OR email LIKE concat('%', #{keyword}, '%'))
</if>
GROUP BY urr.user_id
limit 100
limit 1000
</select>
<select id="getUserByKeyword" resultType="io.metersphere.system.dto.user.UserDTO">
@ -83,7 +83,7 @@
</if>
and u.deleted = false
GROUP BY urr.user_id
limit 100
limit 1000
</select>
<select id="countByIdAndPassword" resultType="java.lang.Long">