Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop

This commit is contained in:
Kittapath 2024-05-16 11:43:38 +07:00
commit 6010cc662c
4 changed files with 4 additions and 32 deletions

View file

@ -34,24 +34,9 @@ export class ProfileDisciplineController extends Controller {
private disciplineHistoryRepository = AppDataSource.getRepository(ProfileDisciplineHistory);
@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) {
const lists = await this.disciplineRepository.find({
where: { profileId: profileId },
where: { profileEmployeeId: profileId },
select: [
"id",
"date",

View file

@ -40,7 +40,7 @@ export class ProfileLeaveEmployeeController extends Controller {
public async getLeave(@Path() profileId: string) {
const record = await this.leaveRepo.find({
relations: { leaveType: true },
where: { profileId },
where: { profileEmployeeId: profileId },
});
return new HttpSuccess(record);
}

View file

@ -34,23 +34,9 @@ export class ProfileNopaidEmployeeController extends Controller {
private nopaidHistoryRepository = AppDataSource.getRepository(ProfileNopaidHistory);
@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) {
const lists = await this.nopaidRepository.find({
where: { profileId },
where: { profileEmployeeId: profileId },
});
return new HttpSuccess(lists);
}

View file

@ -229,6 +229,7 @@ export class ProfileSalaryEmployee extends EntityBase {
// commandNo: string;
@Column({
nullable: true,
comment: "ประเภทคำสั่ง",
type: "text",
})