ค้นหาทะเบียน by id

This commit is contained in:
Kittapath 2024-05-02 09:29:27 +07:00
parent 8dedce8b37
commit f7f6db43b1
2 changed files with 120 additions and 2 deletions

View file

@ -717,6 +717,7 @@ export class OrganizationUnauthorizeController extends Controller {
let _child2 = child2 == null ? "" : `${child2.orgChild2Name}/`;
let _child3 = child3 == null ? "" : `${child3.orgChild3Name}/`;
let _child4 = child4 == null ? "" : `${child4.orgChild4Name}/`;
let _root = root == null ? "" : `${root.orgRootName}`;
return new HttpSuccess({
rootId: root == null ? null : root.id,
@ -724,7 +725,7 @@ export class OrganizationUnauthorizeController extends Controller {
orgRootShortName: root == null ? null : root.orgRootShortName,
orgRevisionId: findRevision.id,
profileId: findProfile.id,
org: `${_child4}${_child3}${_child2}${_child1}${root?.orgRootName}`,
org: `${_child4}${_child3}${_child2}${_child1}${_root}`,
type: "OFFICER",
rank: findProfile.rank,
prefix: findProfile.prefix,
@ -808,6 +809,7 @@ export class OrganizationUnauthorizeController extends Controller {
let _child2 = child2 == null ? "" : `${child2.orgChild2Name}/`;
let _child3 = child3 == null ? "" : `${child3.orgChild3Name}/`;
let _child4 = child4 == null ? "" : `${child4.orgChild4Name}/`;
let _root = root == null ? "" : `${root.orgRootName}`;
return new HttpSuccess({
rootId: root == null ? null : root.id,
@ -815,7 +817,7 @@ export class OrganizationUnauthorizeController extends Controller {
orgRootShortName: root == null ? null : root.orgRootShortName,
orgRevisionId: findRevision.id,
profileId: findProfile.id,
org: `${_child4}${_child3}${_child2}${_child1}${root?.orgRootName}`,
org: `${_child4}${_child3}${_child2}${_child1}${_root}`,
type: "EMPLOYEE",
rank: findProfile.rank,
prefix: findProfile.prefix,