แก้ไขบัค employeeSalary
This commit is contained in:
parent
067231d291
commit
6f74d3ddcc
3 changed files with 5 additions and 8 deletions
|
|
@ -67,7 +67,7 @@ export class ProfileSalaryEmployeeController extends Controller {
|
|||
}
|
||||
|
||||
const dest_item = await this.salaryRepo.findOne({
|
||||
where: { profileId: body.profileEmployeeId },
|
||||
where: { profileEmployeeId: body.profileEmployeeId },
|
||||
order: { order: "DESC" },
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -148,6 +148,10 @@ export class ProfileSalary extends EntityBase {
|
|||
@ManyToOne(() => Profile, (profile) => profile.profileSalary)
|
||||
@JoinColumn({ name: "profileId" })
|
||||
profile: Profile;
|
||||
|
||||
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileSalarys)
|
||||
@JoinColumn({ name: "profileEmployeeId" })
|
||||
profileEmployee: ProfileEmployee;
|
||||
}
|
||||
|
||||
export class CreateProfileSalary {
|
||||
|
|
|
|||
|
|
@ -14,13 +14,6 @@ import { ProfileSalary } from "./ProfileSalary";
|
|||
|
||||
@Entity("profileSalaryHistory")
|
||||
export class ProfileSalaryHistory extends EntityBase {
|
||||
@Column({
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง profile",
|
||||
type: "uuid",
|
||||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
comment: "วันที่",
|
||||
type: "datetime",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue