map sort org
This commit is contained in:
parent
8fc10639f5
commit
48737c094e
1 changed files with 4 additions and 4 deletions
|
|
@ -7564,7 +7564,7 @@ export class OrganizationController extends Controller {
|
|||
where: {
|
||||
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
|
||||
},
|
||||
order: { isDeputy: "ASC", orgRootOrder: "ASC" },
|
||||
order: { isDeputy: "DESC", orgRootOrder: "ASC" },
|
||||
select: ["orgRootName"],
|
||||
});
|
||||
const posType = await this.posTypeRepository.find({
|
||||
|
|
@ -7576,9 +7576,9 @@ export class OrganizationController extends Controller {
|
|||
select: ["posLevelName"],
|
||||
});
|
||||
return new HttpSuccess({
|
||||
root: root,
|
||||
posTypeNameOrder: posType,
|
||||
posLevelNameOrder: posLevel,
|
||||
root: root.map((x) => x.orgRootName),
|
||||
posTypeNameOrder: posType.map((x) => x.posTypeName),
|
||||
posLevelNameOrder: posLevel.map((x) => x.posLevelName),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue