Fix ข้อมูลที่อยู่ไม่อัปเดตในระบบทะเบียนประวัติ issue #1619
This commit is contained in:
parent
0113b9bb59
commit
c729526f0f
1 changed files with 12 additions and 0 deletions
|
|
@ -5575,6 +5575,7 @@ export class CommandController extends Controller {
|
|||
profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : [];
|
||||
profile.keycloak =
|
||||
userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : "";
|
||||
profile.registrationAddress = item.bodyProfile.registrationAddress;
|
||||
profile.registrationProvinceId = registrationProvinceId
|
||||
? registrationProvinceId.id
|
||||
: _null;
|
||||
|
|
@ -5584,9 +5585,12 @@ export class CommandController extends Controller {
|
|||
profile.registrationSubDistrictId = registrationSubDistrictId
|
||||
? registrationSubDistrictId.id
|
||||
: _null;
|
||||
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
|
||||
profile.currentAddress = item.bodyProfile.currentAddress;
|
||||
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
|
||||
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
|
||||
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
|
||||
profile.currentZipCode = item.bodyProfile.currentZipCode;
|
||||
profile.email = item.bodyProfile.email;
|
||||
profile.dateStart = item.bodyProfile.dateStart;
|
||||
profile.amount = item.bodyProfile.amount ?? null;
|
||||
|
|
@ -5624,6 +5628,7 @@ export class CommandController extends Controller {
|
|||
profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : [];
|
||||
profile.keycloak =
|
||||
userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : "";
|
||||
profile.registrationAddress = item.bodyProfile.registrationAddress;
|
||||
profile.registrationProvinceId = registrationProvinceId
|
||||
? registrationProvinceId.id
|
||||
: _null;
|
||||
|
|
@ -5633,9 +5638,12 @@ export class CommandController extends Controller {
|
|||
profile.registrationSubDistrictId = registrationSubDistrictId
|
||||
? registrationSubDistrictId.id
|
||||
: _null;
|
||||
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
|
||||
profile.currentAddress = item.bodyProfile.currentAddress;
|
||||
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
|
||||
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
|
||||
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
|
||||
profile.currentZipCode = item.bodyProfile.currentZipCode;
|
||||
profile.email = item.bodyProfile.email;
|
||||
profile.dateStart = item.bodyProfile.dateStart;
|
||||
profile.amount = item.bodyProfile.amount ?? null;
|
||||
|
|
@ -5665,6 +5673,7 @@ export class CommandController extends Controller {
|
|||
profile.dateLeave = _null;
|
||||
profile.dateRetire = _dateRetire;
|
||||
profile.dateRetireLaw = _dateRetireLaw;
|
||||
profile.registrationAddress = item.bodyProfile.registrationAddress;
|
||||
profile.registrationProvinceId = registrationProvinceId
|
||||
? registrationProvinceId.id
|
||||
: _null;
|
||||
|
|
@ -5674,9 +5683,12 @@ export class CommandController extends Controller {
|
|||
profile.registrationSubDistrictId = registrationSubDistrictId
|
||||
? registrationSubDistrictId.id
|
||||
: _null;
|
||||
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
|
||||
profile.currentAddress = item.bodyProfile.currentAddress;
|
||||
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
|
||||
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
|
||||
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
|
||||
profile.currentZipCode = item.bodyProfile.currentZipCode;
|
||||
profile.email = item.bodyProfile.email;
|
||||
profile.telephoneNumber = item.bodyProfile.telephoneNumber;
|
||||
profile.phone = item.bodyProfile.phone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue