授权菜单按排序字段排序

This commit is contained in:
shuzheng 2017-03-18 22:18:24 +08:00
parent 79205f7493
commit 672a156c6d
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public class UpmsPermissionController extends BaseController {
UpmsPermissionExample upmsPermissionExample = new UpmsPermissionExample();
upmsPermissionExample.createCriteria()
.andStatusEqualTo((byte) 1);
upmsPermissionExample.setOrderByClause("orders asc");
List<UpmsPermission> permissions = upmsPermissionService.selectByExample(upmsPermissionExample);
// 角色已有权限
List<UpmsRolePermission> rolePermissions = upmsApiService.selectUpmsRolePermisstionByUpmsRoleId(id);