diff --git a/backend/src/main/java/io/metersphere/base/domain/UserGroup.java b/backend/src/main/java/io/metersphere/base/domain/UserGroup.java index 72a004b9da..0ef3e5ecca 100644 --- a/backend/src/main/java/io/metersphere/base/domain/UserGroup.java +++ b/backend/src/main/java/io/metersphere/base/domain/UserGroup.java @@ -1,9 +1,14 @@ package io.metersphere.base.domain; -import java.io.Serializable; +import lombok.AllArgsConstructor; import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; @Data +@AllArgsConstructor +@NoArgsConstructor public class UserGroup implements Serializable { private String id; diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtUserMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtUserMapper.xml index ffc4e27dcb..445ab5f0a7 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtUserMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtUserMapper.xml @@ -52,7 +52,12 @@ AND u.email like CONCAT('%', #{userRequest.email},'%') - order by u.update_time desc + + ORDER BY + + ${order.name} ${order.type} + +