เพิ่ม/แก้ไขตำแหน่ง ปรับให้ส่ง null บางฟิลด์ได้

This commit is contained in:
Bright 2024-06-04 16:49:52 +07:00
parent 43a1dfe8d2
commit 9d205caa1f
2 changed files with 19 additions and 11 deletions

View file

@ -40,7 +40,7 @@ export class PosDict extends EntityBase {
comment: "ตำแหน่งทางการบริหาร",
default: null,
})
posExecutiveId: string;
posExecutiveId?: string|null;
@Column({
nullable: true,
@ -94,10 +94,10 @@ export class CreatePosDict {
posExecutiveId?: string | null;
@Column()
posDictExecutiveField: string | null;
posDictExecutiveField?: string | null;
@Column()
posDictArea: string | null;
posDictArea?: string | null;
@Column()
isSpecial: boolean;
@ -146,13 +146,13 @@ export class UpdatePosDict {
posLevelId: string;
@Column()
posExecutiveId?: string | undefined;
posExecutiveId?: string | null;
@Column()
posDictExecutiveField: string;
posDictExecutiveField?: string | null;
@Column()
posDictArea: string;
posDictArea?: string | null;
@Column()
isSpecial: boolean;