เพิ่มฟิวตำแหน่งในแบบประเมิน
This commit is contained in:
parent
0a6760a276
commit
0d292ee22b
3 changed files with 77 additions and 1 deletions
|
|
@ -204,6 +204,10 @@ export class KpiUserEvaluationController extends Controller {
|
|||
kpiUserEvaluation.prefix = x.prefix;
|
||||
kpiUserEvaluation.firstName = x.firstName;
|
||||
kpiUserEvaluation.lastName = x.lastName;
|
||||
kpiUserEvaluation.position = x.position;
|
||||
kpiUserEvaluation.posLevelName = x.posLevelName;
|
||||
kpiUserEvaluation.posTypeName = x.posTypeName;
|
||||
kpiUserEvaluation.posExecutiveName = x.posExecutiveName;
|
||||
})
|
||||
.catch((x) => {});
|
||||
kpiUserEvaluation.evaluationStatus = "NEW";
|
||||
|
|
@ -309,7 +313,7 @@ export class KpiUserEvaluationController extends Controller {
|
|||
|
||||
kpiUserEvaluation.lastUpdateUserId = request.user.sub;
|
||||
kpiUserEvaluation.lastUpdateFullName = request.user.name;
|
||||
this.kpiUserEvalutionRepository.merge(kpiUserEvaluation, requestBody);
|
||||
Object.assign(kpiUserEvaluation, requestBody);
|
||||
await this.kpiUserEvalutionRepository.save(kpiUserEvaluation);
|
||||
return new HttpSuccess(kpiUserEvaluation.id);
|
||||
}
|
||||
|
|
@ -426,6 +430,10 @@ export class KpiUserEvaluationController extends Controller {
|
|||
prefix: kpiUserEvaluation.prefix,
|
||||
firstName: kpiUserEvaluation.firstName,
|
||||
lastName: kpiUserEvaluation.lastName,
|
||||
position: kpiUserEvaluation.position,
|
||||
posLevelName: kpiUserEvaluation.posLevelName,
|
||||
posTypeName: kpiUserEvaluation.posTypeName,
|
||||
posExecutiveName: kpiUserEvaluation.posExecutiveName,
|
||||
evaluationStatus: kpiUserEvaluation.evaluationStatus,
|
||||
evaluationResults: kpiUserEvaluation.evaluationResults,
|
||||
evaluationReqEdit: kpiUserEvaluation.evaluationReqEdit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue