sort root
This commit is contained in:
parent
97c1f07a6a
commit
23cc373e33
1 changed files with 7 additions and 0 deletions
|
|
@ -5626,6 +5626,9 @@ export class OrganizationController extends Controller {
|
||||||
|
|
||||||
const data = await this.orgRootRepository.find({
|
const data = await this.orgRootRepository.find({
|
||||||
where: { orgRevisionId: orgRevisionActive.id },
|
where: { orgRevisionId: orgRevisionActive.id },
|
||||||
|
order: {
|
||||||
|
orgRootOrder: "ASC",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
return new HttpSuccess(data.map((x) => x.id));
|
return new HttpSuccess(data.map((x) => x.id));
|
||||||
}
|
}
|
||||||
|
|
@ -5647,6 +5650,9 @@ export class OrganizationController extends Controller {
|
||||||
|
|
||||||
const data = await this.orgRootRepository.find({
|
const data = await this.orgRootRepository.find({
|
||||||
where: { orgRevisionId: orgRevisionActive.id },
|
where: { orgRevisionId: orgRevisionActive.id },
|
||||||
|
order: {
|
||||||
|
orgRootOrder: "ASC",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
return new HttpSuccess(data);
|
return new HttpSuccess(data);
|
||||||
}
|
}
|
||||||
|
|
@ -5686,6 +5692,7 @@ export class OrganizationController extends Controller {
|
||||||
"orgChild1s.orgChild2s.orgChild3s.orgChild4s",
|
"orgChild1s.orgChild2s.orgChild3s.orgChild4s",
|
||||||
],
|
],
|
||||||
order: {
|
order: {
|
||||||
|
orgRootOrder: "ASC",
|
||||||
orgChild1s: {
|
orgChild1s: {
|
||||||
orgChild1Order: "ASC",
|
orgChild1Order: "ASC",
|
||||||
orgChild2s: {
|
orgChild2s: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue