migrate add field all tables #252
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s
This commit is contained in:
parent
6319f7206a
commit
7c77745d46
11 changed files with 371 additions and 0 deletions
|
|
@ -84,6 +84,10 @@ export class OrgRootController extends Controller {
|
|||
SECTION_CODE: orgRoot.SECTION_CODE,
|
||||
JOB_CODE: orgRoot.JOB_CODE,
|
||||
ROOT_CODE: orgRoot.ROOT_CODE,
|
||||
CHILD1_CODE: orgRoot.CHILD1_CODE,
|
||||
CHILD2_CODE: orgRoot.CHILD2_CODE,
|
||||
CHILD3_CODE: orgRoot.CHILD3_CODE,
|
||||
CHILD4_CODE: orgRoot.CHILD4_CODE,
|
||||
orgCode: orgRoot.orgRootCode + "00",
|
||||
};
|
||||
return new HttpSuccess(getOrgRoot);
|
||||
|
|
@ -352,6 +356,10 @@ export class OrgRootController extends Controller {
|
|||
SECTION_CODE: requestBody.SECTION_CODE != null ? requestBody.SECTION_CODE : _null,
|
||||
JOB_CODE: requestBody.JOB_CODE != null ? requestBody.JOB_CODE : _null,
|
||||
ROOT_CODE: requestBody.ROOT_CODE != null ? requestBody.ROOT_CODE : _null,
|
||||
CHILD1_CODE: requestBody.CHILD1_CODE != null ? requestBody.CHILD1_CODE : _null,
|
||||
CHILD2_CODE: requestBody.CHILD2_CODE != null ? requestBody.CHILD2_CODE : _null,
|
||||
CHILD3_CODE: requestBody.CHILD3_CODE != null ? requestBody.CHILD3_CODE : _null,
|
||||
CHILD4_CODE: requestBody.CHILD4_CODE != null ? requestBody.CHILD4_CODE : _null,
|
||||
});
|
||||
await this.orgRootRepository.save(orgRoot, { data: request });
|
||||
setLogDataDiff(request, { before, after: orgRoot });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue