no message
This commit is contained in:
parent
30286317c6
commit
61b56a0d62
2 changed files with 41 additions and 40 deletions
|
|
@ -1631,6 +1631,7 @@ export class ProfileController extends Controller {
|
||||||
profileId: profile.id,
|
profileId: profile.id,
|
||||||
prefix: profile.prefix,
|
prefix: profile.prefix,
|
||||||
rank: profile.rank,
|
rank: profile.rank,
|
||||||
|
isProbation: profile.isProbation,
|
||||||
firstName: profile.firstName,
|
firstName: profile.firstName,
|
||||||
lastName: profile.lastName,
|
lastName: profile.lastName,
|
||||||
citizenId: profile.citizenId,
|
citizenId: profile.citizenId,
|
||||||
|
|
|
||||||
|
|
@ -809,6 +809,20 @@ export class ProfileEmployeeController extends Controller {
|
||||||
return new HttpSuccess(historyProfile);
|
return new HttpSuccess(historyProfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API ออกคำสั่งลูกจ้าง
|
||||||
|
*
|
||||||
|
* @summary ORG_038 - ออกคำสั่งลูกจ้าง (ADMIN) #
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Get("report")
|
||||||
|
async getReport(@Request() request: RequestWithUser) {
|
||||||
|
const profiles = await this.profileRepo.find({
|
||||||
|
where: { statusTemp: "REPORT", employeeClass: "TEMP" },
|
||||||
|
});
|
||||||
|
return new HttpSuccess(profiles);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API รายละเอียดรายการทะเบียนประวัติ
|
* API รายละเอียดรายการทะเบียนประวัติ
|
||||||
*
|
*
|
||||||
|
|
@ -2853,20 +2867,6 @@ export class ProfileEmployeeController extends Controller {
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* API ออกคำสั่งลูกจ้าง
|
|
||||||
*
|
|
||||||
* @summary ORG_038 - ออกคำสั่งลูกจ้าง (ADMIN) #
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Get("report")
|
|
||||||
async getReport(@Request() request: RequestWithUser) {
|
|
||||||
const profiles = await this.profileRepo.find({
|
|
||||||
where: { statusTemp: "REPORT", employeeClass: "TEMP" },
|
|
||||||
});
|
|
||||||
return new HttpSuccess(profiles);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API ออกคำสั่งลูกจ้าง
|
* API ออกคำสั่งลูกจ้าง
|
||||||
*
|
*
|
||||||
|
|
@ -2957,38 +2957,38 @@ export class ProfileEmployeeController extends Controller {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "firstname":
|
case "firstname":
|
||||||
[findProfile, total] = await this.profileRepo.findAndCount({
|
[findProfile, total] = await this.profileRepo.findAndCount({
|
||||||
where: {
|
where: {
|
||||||
keycloak: IsNull(),
|
keycloak: IsNull(),
|
||||||
firstName: Like(`%${body.keyword}%`),
|
firstName: Like(`%${body.keyword}%`),
|
||||||
},
|
},
|
||||||
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
||||||
skip,
|
skip,
|
||||||
take,
|
take,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "lastname":
|
case "lastname":
|
||||||
[findProfile, total] = await this.profileRepo.findAndCount({
|
[findProfile, total] = await this.profileRepo.findAndCount({
|
||||||
where: {
|
where: {
|
||||||
keycloak: IsNull(),
|
keycloak: IsNull(),
|
||||||
lastName: Like(`%${body.keyword}%`),
|
lastName: Like(`%${body.keyword}%`),
|
||||||
},
|
},
|
||||||
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
||||||
skip,
|
skip,
|
||||||
take,
|
take,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
[findProfile, total] = await this.profileRepo.findAndCount({
|
[findProfile, total] = await this.profileRepo.findAndCount({
|
||||||
where: {
|
where: {
|
||||||
keycloak: IsNull(),
|
keycloak: IsNull(),
|
||||||
},
|
},
|
||||||
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
relations: ["posType", "posLevel", "current_holders", "profileSalarys"],
|
||||||
skip,
|
skip,
|
||||||
take,
|
take,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue