Merge branch 'develop' into adiDev
This commit is contained in:
commit
bed7dbb896
4 changed files with 25 additions and 6 deletions
|
|
@ -178,6 +178,25 @@ export class ChangePositionController extends Controller {
|
||||||
return new HttpSuccess({ data: changePosition, total });
|
return new HttpSuccess({ data: changePosition, total });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API รายการรายชื่อผู้ที่ย้ายสับเปลี่ยนตำแหน่ง สถานะเลือกตำแหน่งแล้ว
|
||||||
|
*
|
||||||
|
* @summary รายการรายชื่อผู้ที่ย้ายสับเปลี่ยนตำแหน่ง สถานะเลือกตำแหน่งแล้ว (ADMIN)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Get("pending")
|
||||||
|
async getProfilePending() {
|
||||||
|
const profiles = await this.changePositionRepository.find({
|
||||||
|
relations: ["profileChangePosition"],
|
||||||
|
where: {
|
||||||
|
profileChangePosition: {
|
||||||
|
status: "PENDING"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return new HttpSuccess(profiles);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API รายละเอียดรอบย้ายสับเปลี่ยนตำแหน่ง
|
* API รายละเอียดรอบย้ายสับเปลี่ยนตำแหน่ง
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,11 @@ export class AuthRole extends EntityBase {
|
||||||
@OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForRole)
|
@OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForRole)
|
||||||
authRoles: AuthRoleAttr[];
|
authRoles: AuthRoleAttr[];
|
||||||
|
|
||||||
@OneToOne(() => PosMaster, (posMaster) => posMaster.authRole)
|
@OneToMany(() => PosMaster, (posMaster) => posMaster.authRole)
|
||||||
posMaster: PosMaster;
|
posMaster: PosMaster[];
|
||||||
|
|
||||||
@OneToOne(() => EmployeePosMaster, (posMasters) => posMasters.authRole)
|
@OneToMany(() => EmployeePosMaster, (posMasters) => posMasters.authRole)
|
||||||
posMasters: EmployeePosMaster;
|
posMasterEmp: EmployeePosMaster[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateAuthRole {
|
export class CreateAuthRole {
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ export class EmployeePosMaster extends EntityBase {
|
||||||
})
|
})
|
||||||
authRoleId: string;
|
authRoleId: string;
|
||||||
|
|
||||||
@OneToOne(() => AuthRole, (authRole) => authRole.posMasters)
|
@ManyToOne(() => AuthRole, (authRole) => authRole.posMasterEmp)
|
||||||
@JoinColumn({ name: "authRoleId" })
|
@JoinColumn({ name: "authRoleId" })
|
||||||
authRole: AuthRole;
|
authRole: AuthRole;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ export class PosMaster extends EntityBase {
|
||||||
})
|
})
|
||||||
authRoleId: string;
|
authRoleId: string;
|
||||||
|
|
||||||
@OneToOne(() => AuthRole, (authRole) => authRole.posMaster)
|
@ManyToOne(() => AuthRole, (authRole) => authRole.posMaster)
|
||||||
@JoinColumn({ name: "authRoleId" })
|
@JoinColumn({ name: "authRoleId" })
|
||||||
authRole: AuthRole;
|
authRole: AuthRole;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue