เหตุผล kpi

This commit is contained in:
Kittapath 2024-06-26 23:27:33 +07:00
parent ae87b678d1
commit 047ebd5bb1
5 changed files with 196 additions and 28 deletions

View file

@ -80,7 +80,7 @@ export class kpiReasonController extends Controller {
let kpiUserEvaluationReason = Object.assign(new KpiUserEvaluationReasonPlan(), requestBody);
kpiUserEvaluationReason.type = type.trim().toUpperCase();
if (type.trim().toUpperCase() == "PROBLEM") {
if (type.trim().toUpperCase() == "PROGRESS") {
const _kpiUserEvaluationReason = await this.kpiUserEvaluationReasonPlan.findOne({
where: { id: id },
relations: ["kpiUserPlanned", "kpiUserPlanned.kpiUserEvaluation"],
@ -267,7 +267,7 @@ export class kpiReasonController extends Controller {
});
let kpiUserEvaluationReason = Object.assign(new KpiUserEvaluationReasonRole(), requestBody);
kpiUserEvaluationReason.type = type.trim().toUpperCase();
if (type.trim().toUpperCase() == "PROBLEM") {
if (type.trim().toUpperCase() == "PROGRESS") {
const _kpiUserEvaluationReason = await this.kpiUserEvaluationReasonRole.findOne({
where: { id: id },
relations: ["kpiUserRole", "kpiUserRole.kpiUserEvaluation"],
@ -458,7 +458,7 @@ export class kpiReasonController extends Controller {
requestBody,
);
kpiUserEvaluationReason.type = type.trim().toUpperCase();
if (type.trim().toUpperCase() == "PROBLEM") {
if (type.trim().toUpperCase() == "PROGRESS") {
const _kpiUserEvaluationReason = await this.kpiUserEvaluationReasonSpecial.findOne({
where: { id: id },
relations: ["kpiUserSpecial", "kpiUserSpecial.kpiUserEvaluation"],
@ -648,7 +648,7 @@ export class kpiReasonController extends Controller {
requestBody,
);
kpiUserEvaluationReason.type = type.trim().toUpperCase();
if (type.trim().toUpperCase() == "PROBLEM") {
if (type.trim().toUpperCase() == "PROGRESS") {
const _kpiUserEvaluationReason = await this.kpiUserEvaluationReasonDevelopment.findOne({
where: { id: id },
relations: ["kpiUserDevelopment", "kpiUserDevelopment.kpiUserEvaluation"],
@ -842,7 +842,7 @@ export class kpiReasonController extends Controller {
requestBody,
);
kpiUserEvaluationReason.type = type.trim().toUpperCase();
if (type.trim().toUpperCase() == "PROBLEM") {
if (type.trim().toUpperCase() == "PROGRESS") {
const _kpiUserEvaluationReason = await this.kpiUserEvaluationReasonCapacity.findOne({
where: { id: id },
relations: ["kpiUserCapacity", "kpiUserCapacity.kpiUserEvaluation"],