no message

This commit is contained in:
Kittapath 2024-06-17 13:27:11 +07:00
parent 30286317c6
commit 61b56a0d62
2 changed files with 41 additions and 40 deletions

View file

@ -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,

View file

@ -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;
} }