fix ส่งรายชื่อบรรจุ คำนำหน้าไม่แสดง #2506
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s

This commit is contained in:
harid 2026-05-20 15:53:10 +07:00
parent 5dafd13124
commit ddf0309b0b

View file

@ -6594,8 +6594,8 @@ export class CommandController extends Controller {
profile.amountSpecial = item.bodyProfile.amountSpecial ?? null; profile.amountSpecial = item.bodyProfile.amountSpecial ?? null;
profile.isProbation = item.bodyProfile.isProbation; profile.isProbation = item.bodyProfile.isProbation;
//เพิ่มใหม่จากรับโอน //เพิ่มใหม่จากรับโอน
profile.rank = item?.bodyProfile?.rank ?? null; profile.rank = item?.bodyProfile?.rank || null;
profile.prefix = item?.bodyProfile?.rank ?? item?.bodyProfile?.prefix ?? null; profile.prefix = item?.bodyProfile?.rank || item?.bodyProfile?.prefix || null;
profile.prefixMain = item?.bodyProfile?.prefix ?? null; profile.prefixMain = item?.bodyProfile?.prefix ?? null;
profile.firstName = item.bodyProfile.firstName ?? null; profile.firstName = item.bodyProfile.firstName ?? null;
profile.lastName = item.bodyProfile.lastName ?? null; profile.lastName = item.bodyProfile.lastName ?? null;
@ -6658,8 +6658,8 @@ export class CommandController extends Controller {
profile.amount = item.bodyProfile.amount ?? null; profile.amount = item.bodyProfile.amount ?? null;
profile.amountSpecial = item.bodyProfile.amountSpecial ?? null; profile.amountSpecial = item.bodyProfile.amountSpecial ?? null;
profile.isProbation = item.bodyProfile.isProbation; profile.isProbation = item.bodyProfile.isProbation;
profile.rank = item?.bodyProfile?.rank ?? null; profile.rank = item?.bodyProfile?.rank || null;
profile.prefix = item?.bodyProfile?.rank ?? item?.bodyProfile?.prefix ?? null; profile.prefix = item?.bodyProfile?.rank || item?.bodyProfile?.prefix || null;
profile.prefixMain = item?.bodyProfile?.prefix ?? null; profile.prefixMain = item?.bodyProfile?.prefix ?? null;
profile.firstName = item.bodyProfile.firstName ?? null; profile.firstName = item.bodyProfile.firstName ?? null;
profile.lastName = item.bodyProfile.lastName ?? null; profile.lastName = item.bodyProfile.lastName ?? null;
@ -6717,8 +6717,8 @@ export class CommandController extends Controller {
profile.lastUpdateFullName = req.user.name; profile.lastUpdateFullName = req.user.name;
profile.lastUpdatedAt = new Date(); profile.lastUpdatedAt = new Date();
//เพิ่มใหม่จากรับโอน //เพิ่มใหม่จากรับโอน
profile.rank = item?.bodyProfile?.rank ?? null; profile.rank = item?.bodyProfile?.rank || null;
profile.prefix = item?.bodyProfile?.rank ?? item?.bodyProfile?.prefix ?? null; profile.prefix = item?.bodyProfile?.rank || item?.bodyProfile?.prefix || null;
profile.prefixMain = item?.bodyProfile?.prefix ?? null; profile.prefixMain = item?.bodyProfile?.prefix ?? null;
profile.firstName = profile.firstName =
item.bodyProfile.firstName && item.bodyProfile.firstName != "" item.bodyProfile.firstName && item.bodyProfile.firstName != ""