org root add responsibility
This commit is contained in:
parent
11c79abc31
commit
856315b7bc
8 changed files with 74 additions and 45 deletions
|
|
@ -67,6 +67,7 @@ export class OrgChild2Controller extends Controller {
|
|||
}
|
||||
const getOrgChild2 = {
|
||||
orgChild2Id: orgChild2.id,
|
||||
responsibility: orgChild2.responsibility,
|
||||
orgRootName: orgChild2.orgRoot.orgRootName,
|
||||
orgName: `${orgChild2.orgChild2Name}/${orgChild2.orgChild1.orgChild1Name}/${orgChild2.orgRoot.orgRootName}`,
|
||||
orgChild2Name: orgChild2.orgChild2Name,
|
||||
|
|
@ -230,7 +231,7 @@ export class OrgChild2Controller extends Controller {
|
|||
if (!child2) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "not found.");
|
||||
}
|
||||
const _null:any = null;
|
||||
const _null: any = null;
|
||||
const before = structuredClone(child2);
|
||||
child2.lastUpdateUserId = request.user.sub;
|
||||
child2.lastUpdateFullName = request.user.name;
|
||||
|
|
@ -244,10 +245,10 @@ export class OrgChild2Controller extends Controller {
|
|||
orgChild2Code: requestBody.orgChild2Code,
|
||||
orgChild2Rank: requestBody.orgChild2Rank != null ? requestBody.orgChild2Rank : _null,
|
||||
orgChild2RankSub: requestBody.orgChild2RankSub,
|
||||
DEPARTMENT_CODE: requestBody.DEPARTMENT_CODE != null ? requestBody.DEPARTMENT_CODE : _null,
|
||||
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,
|
||||
DEPARTMENT_CODE: requestBody.DEPARTMENT_CODE != null ? requestBody.DEPARTMENT_CODE : _null,
|
||||
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,
|
||||
orgChild2PhoneEx: requestBody.orgChild2PhoneEx,
|
||||
orgChild2PhoneIn: requestBody.orgChild2PhoneIn,
|
||||
orgChild2Fax: requestBody.orgChild2Fax,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue