系统设置下信息列表按照时间排序查询

This commit is contained in:
shiziyuan9527 2020-06-04 17:57:36 +08:00
parent 79c7ac49a6
commit 1b12e870d0
6 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@
AND u.email like CONCAT('%', #{userRequest.email},'%') AND u.email like CONCAT('%', #{userRequest.email},'%')
</if> </if>
</where> </where>
order by u.update_time desc
</select> </select>
<!--修改密码--> <!--修改密码-->

View File

@ -43,6 +43,7 @@
<if test="member.name != null"> <if test="member.name != null">
AND `user`.name like CONCAT('%', #{member.name},'%') AND `user`.name like CONCAT('%', #{member.name},'%')
</if> </if>
order by user_role.update_time desc
</select> </select>
<select id="getOrgMemberList" resultType="io.metersphere.base.domain.User"> <select id="getOrgMemberList" resultType="io.metersphere.base.domain.User">
@ -51,6 +52,7 @@
<if test="orgMember.name != null"> <if test="orgMember.name != null">
AND `user`.name like CONCAT('%', #{orgMember.name},'%') AND `user`.name like CONCAT('%', #{orgMember.name},'%')
</if> </if>
order by user_role.update_time desc
</select> </select>
<select id="getOrganizationMemberDTO" resultMap="BaseOrganizationMemberDTOMap"> <select id="getOrganizationMemberDTO" resultMap="BaseOrganizationMemberDTOMap">

View File

@ -10,6 +10,7 @@
AND w.name LIKE #{request.name,jdbcType=VARCHAR} AND w.name LIKE #{request.name,jdbcType=VARCHAR}
</if> </if>
</where> </where>
order by w.update_time desc
</select> </select>
</mapper> </mapper>

View File

@ -63,6 +63,7 @@ public class OrganizationService {
if (StringUtils.isNotBlank(request.getName())) { if (StringUtils.isNotBlank(request.getName())) {
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%")); criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
} }
example.setOrderByClause("update_time desc");
return organizationMapper.selectByExample(example); return organizationMapper.selectByExample(example);
} }

View File

@ -125,6 +125,7 @@ public class TestResourcePoolService {
if (StringUtils.isNotBlank(request.getName())) { if (StringUtils.isNotBlank(request.getName())) {
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%")); criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
} }
example.setOrderByClause("update_time desc");
List<TestResourcePool> testResourcePools = testResourcePoolMapper.selectByExample(example); List<TestResourcePool> testResourcePools = testResourcePoolMapper.selectByExample(example);
List<TestResourcePoolDTO> testResourcePoolDTOS = new ArrayList<>(); List<TestResourcePoolDTO> testResourcePoolDTOS = new ArrayList<>();
testResourcePools.forEach(pool -> { testResourcePools.forEach(pool -> {

View File

@ -83,6 +83,7 @@ public class WorkspaceService {
if (StringUtils.isNotBlank(request.getName())) { if (StringUtils.isNotBlank(request.getName())) {
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%")); criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
} }
example.setOrderByClause("update_time desc");
return workspaceMapper.selectByExample(example); return workspaceMapper.selectByExample(example);
} }