|
|
@@ -169,7 +169,9 @@ public class UserClient implements IUserClient {
|
|
|
public String selectUserByNames(String adminProfilesName) {
|
|
|
List<Long> ids = service.list(new LambdaQueryWrapper<User>().eq(User::getIsDeleted, 0)
|
|
|
.eq(User::getTenantId,AuthUtil.getTenantId())
|
|
|
- .apply("find_in_set(real_name,'" + adminProfilesName + "')")).stream().map(User::getId).collect(Collectors.toList());
|
|
|
+ .apply("find_in_set(real_name,'" + adminProfilesName + "')")
|
|
|
+ .last("ORDER BY find_in_set(real_name,'"+ adminProfilesName + "')")
|
|
|
+ ).stream().map(User::getId).collect(Collectors.toList());
|
|
|
List<String> idLists = new ArrayList<>();
|
|
|
for (Long id : ids) {
|
|
|
idLists.add(id + "");
|