เพิ่มฟิลด์ Rank
This commit is contained in:
parent
33967dcd7c
commit
1ccb7f1588
5 changed files with 15 additions and 10 deletions
|
|
@ -44,16 +44,17 @@ export class OrgRootController extends Controller {
|
|||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล โครงสร้างระดับ Root");
|
||||
}
|
||||
const getOrgRoot = {
|
||||
orgRootId: orgRoot.id,
|
||||
orgRootName: orgRoot.orgRootName,
|
||||
orgRootShortName: orgRoot.orgRootShortName,
|
||||
orgRootCode: orgRoot.orgRootCode,
|
||||
orgRootOrder: orgRoot.orgRootOrder,
|
||||
orgRootPhoneEx: orgRoot.orgRootPhoneEx,
|
||||
orgRootPhoneIn: orgRoot.orgRootPhoneIn,
|
||||
orgRootFax: orgRoot.orgRootFax,
|
||||
orgRevisionId: orgRoot.orgRevisionId,
|
||||
orgCode: orgRoot.orgRootCode + "00",
|
||||
"orgRootId" : orgRoot.id,
|
||||
"orgRootName" : orgRoot.orgRootName,
|
||||
"orgRootShortName" : orgRoot.orgRootShortName,
|
||||
"orgRootCode" : orgRoot.orgRootCode,
|
||||
"orgRootRank" : orgRoot.orgRootRank,
|
||||
"orgRootOrder" : orgRoot.orgRootOrder,
|
||||
"orgRootPhoneEx" : orgRoot.orgRootPhoneEx,
|
||||
"orgRootPhoneIn" : orgRoot.orgRootPhoneIn,
|
||||
"orgRootFax" : orgRoot.orgRootFax,
|
||||
"orgRevisionId" : orgRoot.orgRevisionId,
|
||||
"orgCode" : orgRoot.orgRootCode + "00",
|
||||
};
|
||||
return new HttpSuccess(getOrgRoot);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue