หมายเหตุ

This commit is contained in:
Kittapath 2024-05-08 23:48:19 +07:00
parent 709300ea8b
commit 4419222086
8 changed files with 912 additions and 82 deletions

View file

@ -190,57 +190,6 @@ export class KpiUserEvaluationController extends Controller {
return new HttpSuccess(kpiUserEvaluation.id);
}
// /**
// * API แก้ไขหมายเหตุ (USER)
// *
// * @summary แก้ไขหมายเหตุ (USER)
// *
// * @param {string} id Guid, *Id คนประเมิน (USER)
// */
// @Put("{type}/{id}")
// async updateKpiUserEvaluatorEvaluation(
// @Path() id: string,
// @Path() type: string,
// @Body() requestBody: updateKpiUserReasonEvaluation,
// @Request() request: { user: Record<string, any> },
// ) {
// const kpiUserEvaluation = await this.kpiUserEvalutionRepository.findOne({
// where: { id: id },
// });
// if (!kpiUserEvaluation) {
// throw new HttpError(
// HttpStatusCode.NOT_FOUND,
// "ไม่พบข้อมูลรายการประเมินผลการปฏิบัติราชการระดับบุคคลนี้",
// );
// }
// const kpiUserEvaluationReason = Object.assign(new KpiUserEvaluationReason(), requestBody);
// kpiUserEvaluationReason.type = type.trim().toUpperCase();
// kpiUserEvaluationReason.kpiUserEvaluationId = id;
// kpiUserEvaluationReason.createdUserId = request.user.sub;
// kpiUserEvaluationReason.createdFullName = request.user.name;
// kpiUserEvaluationReason.lastUpdateUserId = request.user.sub;
// kpiUserEvaluationReason.lastUpdateFullName = request.user.name;
// await this.kpiUserEvaluationReasonRepository.save(kpiUserEvaluationReason);
// return new HttpSuccess(kpiUserEvaluation.id);
// }
// /**
// * API list หมายเหตุ (USER)
// *
// * @summary list หมายเหตุ (USER)
// *
// * @param {string} id Guid, *Id คนประเมิน (USER)
// */
// @Get("{type}/{id}")
// async listKpiUserCommanderEvaluation(@Path() id: string, @Path() type: string) {
// const kpiUserEvaluationReason = await this.kpiUserEvaluationReasonRepository.find({
// where: { kpiUserEvaluationId: id, type: type.trim().toUpperCase() },
// order: { createdAt: "ASC" },
// });
// return new HttpSuccess(kpiUserEvaluationReason);
// }
/**
* API (USER)
*