This commit is contained in:
Bright 2024-03-14 11:21:55 +07:00
parent 83406751c7
commit ac1599485a
4 changed files with 28 additions and 11 deletions

View file

@ -176,6 +176,7 @@ export class EmployeePosLevelController extends Controller {
const mapEmpPosLevel = {
id: getEmpPosLevel.id,
posLevelName: getEmpPosLevel.posLevelName,
posTypeId: getEmpPosLevel.posType == null ? null : getEmpPosLevel.posType.id,
posTypeName: getEmpPosLevel.posType == null ? null : getEmpPosLevel.posType.posTypeName, //กลุ่มงาน
commander: null, //ผู้มีอำนาจสั่งบรรจุ
};
@ -197,6 +198,7 @@ export class EmployeePosLevelController extends Controller {
const mapEmpPosLevel = empPosLevel.map((item) => ({
id: item.id,
posLevelName: item.posLevelName,
posTypeId: item.posType == null ? null : item.posType.id,
posTypeName: item.posType == null ? null : item.posType.posTypeName, //กลุ่มงาน
commander: null, //ผู้มีอำนาจสั่งบรรจุ
}));