migrate เพิ่มฟิลด์บันทึกที่โครงสร้าง orgRoot, orgChild1, ..., orgChild4 #252
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s

This commit is contained in:
harid 2026-06-15 17:17:36 +07:00
parent c398354208
commit b722068758
11 changed files with 102 additions and 0 deletions

View file

@ -85,6 +85,7 @@ export class OrgChild2Controller extends Controller {
DIVISION_CODE: orgChild2.DIVISION_CODE,
SECTION_CODE: orgChild2.SECTION_CODE,
JOB_CODE: orgChild2.JOB_CODE,
CHILD2_CODE: orgChild2.CHILD2_CODE,
orgCode: orgChild2.orgRoot.orgRootCode + orgChild2.orgChild2Code,
};
return new HttpSuccess(getOrgChild2);
@ -252,6 +253,7 @@ export class OrgChild2Controller extends Controller {
DIVISION_CODE: requestBody.DIVISION_CODE != null ? requestBody.DIVISION_CODE : _null,
SECTION_CODE: requestBody.SECTION_CODE != null ? requestBody.SECTION_CODE : _null,
JOB_CODE: requestBody.JOB_CODE != null ? requestBody.JOB_CODE : _null,
CHILD2_CODE: requestBody.CHILD2_CODE != null ? requestBody.CHILD2_CODE : _null,
orgChild2PhoneEx: requestBody.orgChild2PhoneEx,
orgChild2PhoneIn: requestBody.orgChild2PhoneIn,
orgChild2Fax: requestBody.orgChild2Fax,