处理部门排序问题

This commit is contained in:
TinyAnts 2022-09-16 09:28:08 +08:00
parent a26cb456f2
commit e412999ac2
1 changed files with 3 additions and 3 deletions

View File

@ -87,9 +87,9 @@ public class SystemAuthPostServiceImpl implements ISystemAuthPostService {
"=:isStop@is_stop:int" "=:isStop@is_stop:int"
}); });
Page<SystemAuthPost> objectPage = new Page<>(page, limit); // Page<SystemAuthPost> objectPage = new Page<>(page, limit);
objectPage.addOrder(OrderItem.asc("sort")); // objectPage.addOrder(OrderItem.asc("sort"));
IPage<SystemAuthPost> iPage = systemAuthPostMapper.selectPage(objectPage, queryWrapper); IPage<SystemAuthPost> iPage = systemAuthPostMapper.selectPage(new Page<>(page, limit), queryWrapper);
List<SystemAuthPostVo> list = new ArrayList<>(); List<SystemAuthPostVo> list = new ArrayList<>();
for (SystemAuthPost systemAuthPost : iPage.getRecords()) { for (SystemAuthPost systemAuthPost : iPage.getRecords()) {