fix delete function

This commit is contained in:
AdisakKanthawilang 2024-02-06 15:18:20 +07:00
parent f7eab59cef
commit 595ff527a7
5 changed files with 95 additions and 30 deletions

View file

@ -127,7 +127,7 @@ export class PosMaster extends EntityBase {
"คนครองปัจจุบัน เมื่อทำสำเนาโครงสร้างและตำแหน่งพร้อมกับคนครองมา คนครองจะอยู่ในฟิลด์นี้",
default: null,
})
profileIdCurrentHolder: string;
current_holderId: string;
@Column({
nullable: true,
@ -136,7 +136,7 @@ export class PosMaster extends EntityBase {
"คนที่กำลังจะมาครอง ตอนปรับโครงสร้าง ถ้าเลือกให้ใครมาครอง ProfileId ของคนนั้นจะมาอยู่ในช่องนี้ รวมทั้งตอนเลือกตำแหน่งเพื่อบรรจุ แต่งตั้ง เลื่อน ย้าย ในระบบบรรจุแต่งตั้งด้วย",
default: null,
})
profileIdNextHolder: string;
next_holderId: string;
@Column({
length: 40,
@ -169,11 +169,11 @@ export class PosMaster extends EntityBase {
orgChild4: OrgChild4;
@OneToOne(() => Profile)
@JoinColumn()
@JoinColumn({ name: "current_holderId" })
current_holder: Profile;
@OneToOne(() => Profile)
@JoinColumn()
@JoinColumn({ name: "next_holderId" })
next_holder: Profile;
@OneToMany(() => Position, (position) => position.posMaster)