api docs update
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ public class PermissionReadPlatformServiceImpl implements PermissionReadPlatform
|
||||
AppUser currentUser = context.authenticatedUser();
|
||||
|
||||
PermissionMapper mapper = new PermissionMapper();
|
||||
String sql = "select " + mapper.schema() + " where p.org_id = ?";
|
||||
String sql = "select " + mapper.schema() + " where p.org_id = ? order by p.id";
|
||||
|
||||
return this.jdbcTemplate.query(sql, mapper, new Object[] { currentUser
|
||||
.getOrganisation().getId() });
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ public class RoleReadPlatformServiceImpl implements RoleReadPlatformService {
|
||||
}
|
||||
|
||||
public String schema() {
|
||||
return " r.id as id, r.org_id as orgId, r.name as name, r.description as description from admin_role r ";
|
||||
return " r.id as id, r.org_id as orgId, r.name as name, r.description as description from admin_role r order by r.id";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user