Fix ข้อมูลที่อยู่ไม่อัปเดตในระบบทะเบียนประวัติ issue #1619

This commit is contained in:
Bright 2025-07-15 18:39:48 +07:00
parent 0113b9bb59
commit c729526f0f

View file

@ -5575,6 +5575,7 @@ export class CommandController extends Controller {
profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : []; profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : [];
profile.keycloak = profile.keycloak =
userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : ""; userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : "";
profile.registrationAddress = item.bodyProfile.registrationAddress;
profile.registrationProvinceId = registrationProvinceId profile.registrationProvinceId = registrationProvinceId
? registrationProvinceId.id ? registrationProvinceId.id
: _null; : _null;
@ -5584,9 +5585,12 @@ export class CommandController extends Controller {
profile.registrationSubDistrictId = registrationSubDistrictId profile.registrationSubDistrictId = registrationSubDistrictId
? registrationSubDistrictId.id ? registrationSubDistrictId.id
: _null; : _null;
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
profile.currentAddress = item.bodyProfile.currentAddress;
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null; profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null; profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null; profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
profile.currentZipCode = item.bodyProfile.currentZipCode;
profile.email = item.bodyProfile.email; profile.email = item.bodyProfile.email;
profile.dateStart = item.bodyProfile.dateStart; profile.dateStart = item.bodyProfile.dateStart;
profile.amount = item.bodyProfile.amount ?? null; profile.amount = item.bodyProfile.amount ?? null;
@ -5624,6 +5628,7 @@ export class CommandController extends Controller {
profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : []; profile.roleKeycloaks = result && roleKeycloak ? [roleKeycloak] : [];
profile.keycloak = profile.keycloak =
userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : ""; userKeycloakId && typeof userKeycloakId === "string" ? userKeycloakId : "";
profile.registrationAddress = item.bodyProfile.registrationAddress;
profile.registrationProvinceId = registrationProvinceId profile.registrationProvinceId = registrationProvinceId
? registrationProvinceId.id ? registrationProvinceId.id
: _null; : _null;
@ -5633,9 +5638,12 @@ export class CommandController extends Controller {
profile.registrationSubDistrictId = registrationSubDistrictId profile.registrationSubDistrictId = registrationSubDistrictId
? registrationSubDistrictId.id ? registrationSubDistrictId.id
: _null; : _null;
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
profile.currentAddress = item.bodyProfile.currentAddress;
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null; profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null; profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null; profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
profile.currentZipCode = item.bodyProfile.currentZipCode;
profile.email = item.bodyProfile.email; profile.email = item.bodyProfile.email;
profile.dateStart = item.bodyProfile.dateStart; profile.dateStart = item.bodyProfile.dateStart;
profile.amount = item.bodyProfile.amount ?? null; profile.amount = item.bodyProfile.amount ?? null;
@ -5665,6 +5673,7 @@ export class CommandController extends Controller {
profile.dateLeave = _null; profile.dateLeave = _null;
profile.dateRetire = _dateRetire; profile.dateRetire = _dateRetire;
profile.dateRetireLaw = _dateRetireLaw; profile.dateRetireLaw = _dateRetireLaw;
profile.registrationAddress = item.bodyProfile.registrationAddress;
profile.registrationProvinceId = registrationProvinceId profile.registrationProvinceId = registrationProvinceId
? registrationProvinceId.id ? registrationProvinceId.id
: _null; : _null;
@ -5674,9 +5683,12 @@ export class CommandController extends Controller {
profile.registrationSubDistrictId = registrationSubDistrictId profile.registrationSubDistrictId = registrationSubDistrictId
? registrationSubDistrictId.id ? registrationSubDistrictId.id
: _null; : _null;
profile.registrationZipCode = item.bodyProfile.registrationZipCode;
profile.currentAddress = item.bodyProfile.currentAddress;
profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null; profile.currentProvinceId = currentProvinceId ? currentProvinceId.id : _null;
profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null; profile.currentDistrictId = currentDistrictId ? currentDistrictId.id : _null;
profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null; profile.currentSubDistrictId = currentSubDistrictId ? currentSubDistrictId.id : _null;
profile.currentZipCode = item.bodyProfile.currentZipCode;
profile.email = item.bodyProfile.email; profile.email = item.bodyProfile.email;
profile.telephoneNumber = item.bodyProfile.telephoneNumber; profile.telephoneNumber = item.bodyProfile.telephoneNumber;
profile.phone = item.bodyProfile.phone; profile.phone = item.bodyProfile.phone;