按照状态排序

This commit is contained in:
kuang.yife 2023-12-18 17:20:25 +08:00
parent fa3e5d2c0b
commit 77b3757348
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
@Api(tags = "App*用户信息")
@RestController
@RequestMapping(value = "/app/user")
@CrossOrigin(origins = "*")
public class TbUserAppController {
@Autowired

View File

@ -119,6 +119,7 @@ public class TbUserSingleAppController {
PageHelper.startPage(pageNum, pageSize);
List<TbUserSingle> list = tbUserSingleService.lambdaQuery()
.ne(ObjectUtil.isNotEmpty(notExcludeSex), TbUserSingle::getSex, notExcludeSex)
.orderByDesc(TbUserSingle::getStatus)
.list();
list.forEach(model->{
//填充年纪