fix delete function
This commit is contained in:
parent
f7eab59cef
commit
595ff527a7
5 changed files with 95 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue