Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
6010cc662c
4 changed files with 4 additions and 32 deletions
|
|
@ -34,24 +34,9 @@ export class ProfileDisciplineController extends Controller {
|
||||||
private disciplineHistoryRepository = AppDataSource.getRepository(ProfileDisciplineHistory);
|
private disciplineHistoryRepository = AppDataSource.getRepository(ProfileDisciplineHistory);
|
||||||
|
|
||||||
@Get("{profileId}")
|
@Get("{profileId}")
|
||||||
@Example({
|
|
||||||
status: 200,
|
|
||||||
message: "สำเร็จ",
|
|
||||||
result: [
|
|
||||||
{
|
|
||||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
|
||||||
date: "2024-03-12T10:09:47.000Z",
|
|
||||||
level: "string",
|
|
||||||
detail: "string",
|
|
||||||
unStigma: "string",
|
|
||||||
refCommandNo: "string",
|
|
||||||
refCommandDate: "2024-03-12T10:09:47.000Z",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
public async getDiscipline(@Path() profileId: string) {
|
public async getDiscipline(@Path() profileId: string) {
|
||||||
const lists = await this.disciplineRepository.find({
|
const lists = await this.disciplineRepository.find({
|
||||||
where: { profileId: profileId },
|
where: { profileEmployeeId: profileId },
|
||||||
select: [
|
select: [
|
||||||
"id",
|
"id",
|
||||||
"date",
|
"date",
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export class ProfileLeaveEmployeeController extends Controller {
|
||||||
public async getLeave(@Path() profileId: string) {
|
public async getLeave(@Path() profileId: string) {
|
||||||
const record = await this.leaveRepo.find({
|
const record = await this.leaveRepo.find({
|
||||||
relations: { leaveType: true },
|
relations: { leaveType: true },
|
||||||
where: { profileId },
|
where: { profileEmployeeId: profileId },
|
||||||
});
|
});
|
||||||
return new HttpSuccess(record);
|
return new HttpSuccess(record);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,23 +34,9 @@ export class ProfileNopaidEmployeeController extends Controller {
|
||||||
private nopaidHistoryRepository = AppDataSource.getRepository(ProfileNopaidHistory);
|
private nopaidHistoryRepository = AppDataSource.getRepository(ProfileNopaidHistory);
|
||||||
|
|
||||||
@Get("{profileId}")
|
@Get("{profileId}")
|
||||||
@Example({
|
|
||||||
status: 200,
|
|
||||||
message: "สำเร็จ",
|
|
||||||
result: [
|
|
||||||
{
|
|
||||||
id: "debfa8a7-83fb-4801-a940-8ae74e7638d3",
|
|
||||||
date: "2024-03-12T10:09:47.000Z",
|
|
||||||
reference: "string",
|
|
||||||
detail: "string",
|
|
||||||
refCommandNo: "string",
|
|
||||||
refCommandDate: "2024-03-12T10:09:47.000Z",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
public async getNopaid(@Path() profileId: string) {
|
public async getNopaid(@Path() profileId: string) {
|
||||||
const lists = await this.nopaidRepository.find({
|
const lists = await this.nopaidRepository.find({
|
||||||
where: { profileId },
|
where: { profileEmployeeId: profileId },
|
||||||
});
|
});
|
||||||
return new HttpSuccess(lists);
|
return new HttpSuccess(lists);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -229,6 +229,7 @@ export class ProfileSalaryEmployee extends EntityBase {
|
||||||
// commandNo: string;
|
// commandNo: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
nullable: true,
|
||||||
comment: "ประเภทคำสั่ง",
|
comment: "ประเภทคำสั่ง",
|
||||||
type: "text",
|
type: "text",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue