优化账户/仓库/经手人等模块的排序

This commit is contained in:
季圣华
2022-08-28 00:20:50 +08:00
parent 01e85bd477
commit e9ac176e5f
7 changed files with 15 additions and 13 deletions

View File

@@ -63,6 +63,7 @@ public class RoleService {
public List<Role> allList()throws Exception {
RoleExample example = new RoleExample();
example.createCriteria().andEnabledEqualTo(true).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
example.setOrderByClause("sort asc, id desc");
List<Role> list=null;
try{
list=roleMapper.selectByExample(example);