เพิ่มเส้น point
This commit is contained in:
parent
98a28db920
commit
5f94e63503
1 changed files with 26 additions and 26 deletions
|
|
@ -234,30 +234,30 @@ export class KpiUserDevelopmentController extends Controller {
|
||||||
return new HttpSuccess(mapKpiUserDevelopment);
|
return new HttpSuccess(mapKpiUserDevelopment);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * API กรอกระดับคะแนนงานตามแผนปฏิบัติราชการประจำปี
|
* API กรอกระดับคะแนนพัฒนาตนเอง
|
||||||
// *
|
*
|
||||||
// * @summary กรอกระดับคะแนนงานตามแผนปฏิบัติราชการประจำปี
|
* @summary กรอกระดับคะแนนพัฒนาตนเอง
|
||||||
// *
|
*
|
||||||
// *
|
*
|
||||||
// */
|
*/
|
||||||
// @Post("point")
|
@Post("point")
|
||||||
// async CreateKpiUserDevelopmentPoint(
|
async CreateKpiUserDevelopmentPoint(
|
||||||
// @Body() requestBody: KpiUserDevelopmentDataPoint[],
|
@Body() requestBody: KpiUserDevelopmentDataPoint[],
|
||||||
// @Request() request: { user: Record<string, any> },
|
@Request() request: { user: Record<string, any> },
|
||||||
// ) {
|
) {
|
||||||
// for (const item of requestBody) {
|
for (const item of requestBody) {
|
||||||
// const kpiUserDevelopment = await this.kpiUserDevelopmentRepository.findOne({
|
const kpiUserDevelopment = await this.kpiUserDevelopmentRepository.findOne({
|
||||||
// where: { id: item.id },
|
where: { id: item.id },
|
||||||
// });
|
});
|
||||||
// if (!kpiUserDevelopment) {
|
if (!kpiUserDevelopment) {
|
||||||
// throw new HttpError(HttpStatusCode.NOT_FOUND, `ไม่พบข้อมูลพัฒนาตนเองนี้: ${item.id}`);
|
throw new HttpError(HttpStatusCode.NOT_FOUND, `ไม่พบข้อมูลพัฒนาตนเองนี้: ${item.id}`);
|
||||||
// }
|
}
|
||||||
// this.kpiUserDevelopmentRepository.merge(kpiUserDevelopment, item);
|
this.kpiUserDevelopmentRepository.merge(kpiUserDevelopment, item);
|
||||||
// kpiUserDevelopment.lastUpdateUserId = request.user.sub;
|
kpiUserDevelopment.lastUpdateUserId = request.user.sub;
|
||||||
// kpiUserDevelopment.lastUpdateFullName = request.user.name;
|
kpiUserDevelopment.lastUpdateFullName = request.user.name;
|
||||||
// await this.kpiUserDevelopmentRepository.save(kpiUserDevelopment);
|
await this.kpiUserDevelopmentRepository.save(kpiUserDevelopment);
|
||||||
// }
|
}
|
||||||
// return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue