add hospital
This commit is contained in:
parent
fdf76131f8
commit
89744233bd
1 changed files with 16 additions and 1 deletions
|
|
@ -7564,7 +7564,21 @@ export class OrganizationController extends Controller {
|
|||
where: {
|
||||
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
|
||||
},
|
||||
order: { isDeputy: "DESC", orgRootOrder: "ASC" },
|
||||
order: { isDeputy: "DESC", DEPARTMENT_CODE: "ASC", orgRootName: "ASC" },
|
||||
select: ["orgRootName"],
|
||||
});
|
||||
const hospital = await this.orgRootRepository.find({
|
||||
where: [
|
||||
{
|
||||
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
|
||||
isDeputy: true,
|
||||
},
|
||||
{
|
||||
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
|
||||
orgRootRankSub: "HOSPITAL",
|
||||
},
|
||||
],
|
||||
order: { isDeputy: "DESC", DEPARTMENT_CODE: "ASC", orgRootName: "ASC" },
|
||||
select: ["orgRootName"],
|
||||
});
|
||||
const posType = await this.posTypeRepository.find({
|
||||
|
|
@ -7577,6 +7591,7 @@ export class OrganizationController extends Controller {
|
|||
});
|
||||
return new HttpSuccess({
|
||||
root: root.map((x) => x.orgRootName),
|
||||
hospital: hospital.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