系统设置下信息列表按照时间排序查询
This commit is contained in:
parent
79c7ac49a6
commit
1b12e870d0
|
@ -31,6 +31,7 @@
|
|||
AND u.email like CONCAT('%', #{userRequest.email},'%')
|
||||
</if>
|
||||
</where>
|
||||
order by u.update_time desc
|
||||
</select>
|
||||
|
||||
<!--修改密码-->
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
<if test="member.name != null">
|
||||
AND `user`.name like CONCAT('%', #{member.name},'%')
|
||||
</if>
|
||||
order by user_role.update_time desc
|
||||
</select>
|
||||
|
||||
<select id="getOrgMemberList" resultType="io.metersphere.base.domain.User">
|
||||
|
@ -51,6 +52,7 @@
|
|||
<if test="orgMember.name != null">
|
||||
AND `user`.name like CONCAT('%', #{orgMember.name},'%')
|
||||
</if>
|
||||
order by user_role.update_time desc
|
||||
</select>
|
||||
|
||||
<select id="getOrganizationMemberDTO" resultMap="BaseOrganizationMemberDTOMap">
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
AND w.name LIKE #{request.name,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</where>
|
||||
order by w.update_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -63,6 +63,7 @@ public class OrganizationService {
|
|||
if (StringUtils.isNotBlank(request.getName())) {
|
||||
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
|
||||
}
|
||||
example.setOrderByClause("update_time desc");
|
||||
return organizationMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@ public class TestResourcePoolService {
|
|||
if (StringUtils.isNotBlank(request.getName())) {
|
||||
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
|
||||
}
|
||||
example.setOrderByClause("update_time desc");
|
||||
List<TestResourcePool> testResourcePools = testResourcePoolMapper.selectByExample(example);
|
||||
List<TestResourcePoolDTO> testResourcePoolDTOS = new ArrayList<>();
|
||||
testResourcePools.forEach(pool -> {
|
||||
|
|
|
@ -83,6 +83,7 @@ public class WorkspaceService {
|
|||
if (StringUtils.isNotBlank(request.getName())) {
|
||||
criteria.andNameLike(StringUtils.wrapIfMissing(request.getName(), "%"));
|
||||
}
|
||||
example.setOrderByClause("update_time desc");
|
||||
return workspaceMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue